fix(kiosk): skip debug keystore config when file does not exist (CI fix)
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user