8ee6fe8770
- KioskActivity: move launchGatewayInBackground() BEFORE enableKioskLock() so Android's lock-task restriction does not block starting the gateway Activity - KioskActivity: webView.clearCache(true) before loadUrl — no caching - KioskActivity: checkForUpdates() uses proper semver > comparison (not !=) to avoid false-positive 'update available' when already up-to-date - KioskActivity: showNativeUpdateBanner() removed 30s auto-hide, now auto- triggers download immediately when update detected - SetupActivity: onResume() re-checks gateway status when returning from gateway config (user opens gateway, configures it, presses back → wizard refreshes) - SetupActivity: checkGatewayStatus() probes TCP 127.0.0.1:8765 to show whether gateway is actually running, with clear 'not running' warning to configure first - SettingsActivity: same TCP probe for live gateway status in settings screen - build.gradle.kts: versionCode 9, versionName 1.5.3
63 lines
1.7 KiB
Kotlin
63 lines
1.7 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "it.dadaloop.evershelf.kiosk"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "it.dadaloop.evershelf.kiosk"
|
|
minSdk = 24
|
|
targetSdk = 34
|
|
versionCode = 9
|
|
versionName = "1.5.3"
|
|
}
|
|
|
|
signingConfigs {
|
|
// 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") {
|
|
val ks = file("${System.getProperty("user.home")}/.android/debug.keystore")
|
|
if (ks.exists()) {
|
|
storeFile = ks
|
|
storePassword = "android"
|
|
keyAlias = "androiddebugkey"
|
|
keyPassword = "android"
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
}
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
implementation("com.google.android.material:material:1.11.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
implementation("androidx.webkit:webkit:1.10.0")
|
|
}
|