From 3927222ca89c6dcb2a19e19b7c5895f402a4a38d Mon Sep 17 00:00:00 2001 From: Amin Date: Sun, 13 Sep 2020 13:45:43 +0430 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20v1.0.0=20Released!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle | 11 ++++++++++- android/gradle.properties | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) 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