chore: update build.gradle (add a new signingConfig - release)
This commit is contained in:
parent
bb4337f5fd
commit
6cac16ce45
|
@ -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"
|
||||
}
|
||||
|
|
Reference in New Issue