fix(kiosk): skip debug keystore config when file does not exist (CI fix)

This commit is contained in:
dadaloop82
2026-04-18 18:56:27 +00:00
parent 07bdfe6b87
commit 2edd5a6ebd
+10 -6
View File
@@ -16,13 +16,17 @@ android {
} }
signingConfigs { signingConfigs {
// Use the standard Android debug keystore so every machine produces // Use the standard Android debug keystore when building locally so the
// APKs with the same debug signature — required for over-the-air updates. // debug APK signature stays consistent across machines (needed for OTA updates).
// In CI the keystore doesn't exist — fall back to Gradle's auto-generated key.
getByName("debug") { getByName("debug") {
storeFile = file("${System.getProperty("user.home")}/.android/debug.keystore") val ks = file("${System.getProperty("user.home")}/.android/debug.keystore")
storePassword = "android" if (ks.exists()) {
keyAlias = "androiddebugkey" storeFile = ks
keyPassword = "android" storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
}
} }
} }