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' keyAlias 'androiddebugkey'
keyPassword 'android' 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 { buildTypes {
debug { debug {
signingConfig signingConfigs.debug signingConfig signingConfigs.debug
} }
release { release {
// Caution! In production, you need to generate your own keystore file. signingConfig signingConfigs.release
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
} }