diff --git a/android/app/build.gradle b/android/app/build.gradle index 5b4c3b3..0cfb184 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -154,15 +154,21 @@ android { keyAlias 'androiddebugkey' keyPassword 'android' } + release { + if (project.hasProperty('UPLOAD_STORE_FILE')) { + storeFile file(UPLOAD_STORE_FILE) + storePassword UPLOAD_STORE_PASSWORD + keyAlias UPLOAD_KEY_ALIAS + keyPassword UPLOAD_KEY_PASSWORD + } + } } buildTypes { debug { signingConfig signingConfigs.debug } release { - // Caution! In production, you need to generate your own keystore file. - // see https://reactnative.dev/docs/signed-apk-android. - signingConfig signingConfigs.debug + signingConfig signingConfigs.release minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" }