build 6, watchdog

This commit is contained in:
sagiferi
2026-10-27 21:21:33 +01:00
parent b84eef0b53
commit 29528f561b
11 changed files with 492 additions and 30 deletions
+19 -3
View File
@@ -1,3 +1,5 @@
import java.util.Properties
plugins {
id("com.android.application")
id("kotlin-android")
@@ -5,6 +7,11 @@ plugins {
id("dev.flutter.flutter-gradle-plugin")
}
// Play upload key lives outside the repo (see README). Without it, release
// builds fall back to the debug key so `flutter run --release` still works.
val uploadKeyFile = File(System.getProperty("user.home"), ".googleplay/key.properties")
val uploadKey = Properties().apply { if (uploadKeyFile.exists()) uploadKeyFile.inputStream().use { load(it) } }
android {
namespace = "com.example.sfzenith"
compileSdk = flutter.compileSdkVersion
@@ -29,11 +36,20 @@ android {
versionName = flutter.versionName
}
signingConfigs {
if (uploadKeyFile.exists()) {
create("release") {
storeFile = file(uploadKey.getProperty("storeFile"))
storePassword = uploadKey.getProperty("storePassword")
keyAlias = uploadKey.getProperty("keyAlias")
keyPassword = uploadKey.getProperty("keyPassword")
}
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
signingConfig = signingConfigs.findByName("release") ?: signingConfigs.getByName("debug")
}
}
}