fix: only set signingConfig to release when a keystore is available

This commit is contained in:
Lei Nelissen
2023-04-10 17:42:51 +02:00
parent a8c0003fc1
commit 74d82eb77a

View File

@@ -233,7 +233,11 @@ android {
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.release
if (project.hasProperty('FINTUNES_UPLOAD_STORE_FILE')) {
signingConfig signingConfigs.release
} else {
signingConfig signingConfigs.release
}
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}