diff --git a/android/app/build.gradle b/android/app/build.gradle index dfb0053..3f3b828 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -82,6 +82,14 @@ android { versionName "1.0" } signingConfigs { + release { + if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) { + storeFile file(MYAPP_UPLOAD_STORE_FILE) + storePassword MYAPP_UPLOAD_STORE_PASSWORD + keyAlias MYAPP_UPLOAD_KEY_ALIAS + keyPassword MYAPP_UPLOAD_KEY_PASSWORD + } + } debug { storeFile file('debug.keystore') storePassword 'android' @@ -96,7 +104,7 @@ android { 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" } diff --git a/android/gradle.properties b/android/gradle.properties index a3b2fa1..bd93724 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -42,3 +42,8 @@ newArchEnabled=false # Use this property to enable or disable the Hermes JS engine. # If set to false, you will be using JSC instead. hermesEnabled=true + +MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore +MYAPP_UPLOAD_KEY_ALIAS=my-key-alias +MYAPP_UPLOAD_STORE_PASSWORD=zee123 +MYAPP_UPLOAD_KEY_PASSWORD=zee123 \ No newline at end of file