chore: update build.gradle (add a new signingConfig - release)

This commit is contained in:
Dawid Wysokiński 2021-06-06 14:57:49 +02:00
parent bb4337f5fd
commit 6cac16ce45
1 changed files with 9 additions and 3 deletions

View File

@ -154,15 +154,21 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
if (project.hasProperty('UPLOAD_STORE_FILE')) {
storeFile file(UPLOAD_STORE_FILE)
storePassword UPLOAD_STORE_PASSWORD
keyAlias UPLOAD_KEY_ALIAS
keyPassword UPLOAD_KEY_PASSWORD
}
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
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.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}