From 94bcab0d76eec110cc4dcd46b29419f99affa056 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Tue, 15 Aug 2017 10:21:20 -0300 Subject: [PATCH] Add build configuration for release --- android/app/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/android/app/build.gradle b/android/app/build.gradle index 704e8266f..7129e4ac0 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -103,6 +103,16 @@ android { abiFilters "armeabi-v7a", "x86" } } + signingConfigs { + release { + if (project.hasProperty('ROCKETCHAT_RN_RELEASE_STORE_FILE')) { + storeFile file(ROCKETCHAT_RN_RELEASE_STORE_FILE) + storePassword ROCKETCHAT_RN_RELEASE_STORE_PASSWORD + keyAlias ROCKETCHAT_RN_RELEASE_KEY_ALIAS + keyPassword ROCKETCHAT_RN_RELEASE_KEY_PASSWORD + } + } + } splits { abi { reset() @@ -115,6 +125,7 @@ android { release { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + signingConfig signingConfigs.release } } // applicationVariants are e.g. debug, release