Add unit-tested update-version comparison logic

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LHgWjmEJXsJEi1EVAoTp4K
This commit is contained in:
GGB
2026-09-27 19:17:22 +02:00
co-authored by Claude Sonnet 5
parent 5cc18d760d
commit 286872c972
3 changed files with 214 additions and 1 deletions
+9 -1
View File
@@ -13,7 +13,7 @@ android {
targetSdk = 34
versionCode = 1
versionName = "1.0"
buildConfigField("String", "WEBSITE_URL", "\"https://kwaba.whodovoodoo.pasteaf.de/tv\"")
buildConfigField("String", "WEBSITE_URL", "\"https://kwaba-dev.whodovoodoo.pasteaf.de/tv\"")
}
buildTypes {
@@ -35,3 +35,11 @@ android {
jvmTarget = "1.8"
}
}
dependencies {
testImplementation("junit:junit:4.13.2")
// Android's org.json classes are stubbed out (throw at runtime) in plain JVM unit
// tests unless a real implementation is on the test classpath - this is that
// implementation, test-only, never shipped in the APK.
testImplementation("org.json:json:20231013")
}