feat: Implement update checker and dialog for available app updates with localization support

This commit is contained in:
Janez T
2025-10-26 17:47:37 +01:00
parent 0eae963efc
commit 0f9974c1e9
26 changed files with 727 additions and 12 deletions

View File

@@ -10,6 +10,11 @@ android {
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
// Enable BuildConfig generation
buildFeatures {
buildConfig = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
@@ -31,6 +36,11 @@ android {
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
// Inject commit hash from environment variable (set by GitHub Actions)
// Falls back to "dev" for local development builds
val commitHash = System.getenv("COMMIT_HASH") ?: "dev"
buildConfigField("String", "COMMIT_HASH", "\"$commitHash\"")
}
buildTypes {