diff --git a/android/app/build.gradle b/android/app/build.gradle index 680ea2e..25d310b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -151,6 +151,14 @@ android { keyAlias 'androiddebugkey' keyPassword 'android' } + 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 + } + } } buildTypes { debug { @@ -159,7 +167,8 @@ 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.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 04ca0ef..f4757ca 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -26,3 +26,7 @@ android.enableJetifier=true # Version of flipper SDK to use with React Native FLIPPER_VERSION=0.37.0 +MYAPP_UPLOAD_STORE_FILE=gpsline-rn-demo-keystore01.keystore +MYAPP_UPLOAD_KEY_ALIAS=gpsline-rn-demo-keystore01alias +MYAPP_UPLOAD_STORE_PASSWORD=666676 +MYAPP_UPLOAD_KEY_PASSWORD=666676 \ No newline at end of file