d26dce283d
- GITHUB_RELEASES_API ora punta a /releases/tags/kiosk-latest (non alla webapp latest) per confrontare versioni kiosk vs kiosk - checkForUpdates() estrae la versione reale dal body della release con regex kiosk-X.Y.Z invece di usare il tag non-semver 'kiosk-latest' - installApk() aggiunge validazione pre-install via PackageArchiveInfo: package name diverso → errore + issue report versionCode uguale/inferiore → banner dismesso + report install_no_upgrade - Bump versionCode 16→17, versionName 1.7.15→1.7.16 Fix: STATUS=1 causato da confronto versione webapp (1.7.22) vs kiosk (1.7.15) → falso update → scaricava stesso APK già installato → rifiuto
61 lines
1.6 KiB
Kotlin
61 lines
1.6 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 = 17
|
|
versionName = "1.7.16"
|
|
}
|
|
|
|
signingConfigs {
|
|
// Project keystore — same on every machine so OTA updates always work.
|
|
create("project") {
|
|
storeFile = file("../evershelf.jks")
|
|
storePassword = "evershelf123"
|
|
keyAlias = "evershelf"
|
|
keyPassword = "evershelf123"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
signingConfig = signingConfigs.getByName("project")
|
|
}
|
|
release {
|
|
isMinifyEnabled = false
|
|
signingConfig = signingConfigs.getByName("project")
|
|
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")
|
|
implementation("androidx.recyclerview:recyclerview:1.3.2")
|
|
implementation("org.java-websocket:Java-WebSocket:1.5.5")
|
|
}
|