Add build configuration for release

This commit is contained in:
Rodrigo Nascimento 2017-08-15 10:21:20 -03:00
parent ea1172606d
commit 94bcab0d76
1 changed files with 11 additions and 0 deletions

View File

@ -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