fix: guard release signingConfig behind key.properties existence check

signingConfigs.create() was running unconditionally, casting null
properties to String before the buildTypes guard could take effect.
CI has no key.properties so the cast threw. Now falls back to debug
signing when the keystore file is absent.
This commit is contained in:
2026-03-12 07:51:11 -04:00
parent bae6597ec2
commit 97c049e453
+7 -5
View File
@@ -37,11 +37,13 @@ android {
} }
signingConfigs { signingConfigs {
create("release") { if (keystorePropertiesFile.exists()) {
keyAlias = keystoreProperties["keyAlias"] as String create("release") {
keyPassword = keystoreProperties["keyPassword"] as String keyAlias = keystoreProperties["keyAlias"] as String
storeFile = file(keystoreProperties["storeFile"] as String) keyPassword = keystoreProperties["keyPassword"] as String
storePassword = keystoreProperties["storePassword"] as String storeFile = file(keystoreProperties["storeFile"] as String)
storePassword = keystoreProperties["storePassword"] as String
}
} }
} }