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