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'
|
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"
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue