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 {
// Use the standard Android debug keystore so every machine produces
// APKs with the same debug signature — required for over-the-air updates.
// Use the standard Android debug keystore when building locally so the
// 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") {
storeFile = file("${System.getProperty("user.home")}/.android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
val ks = file("${System.getProperty("user.home")}/.android/debug.keystore")
if (ks.exists()) {
storeFile = ks
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
}
}
}