Klottr v2.2.0. Flyttat info i Hittat till klottrets sida. Infosida. Två debugloggnivåer istället för 0. Använder POST istället för GET av integritetsskäl. Första versionen på Google Play, där den publicerades igår.

This commit is contained in:
2025-08-27 16:49:33 +02:00
parent cc498ac55f
commit e42ebef5ed
57 changed files with 521 additions and 146 deletions

View File

@@ -1,4 +1,7 @@
import java.time.Instant
import java.util.Properties
// import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
plugins {
id("org.jetbrains.kotlin.plugin.compose")
@@ -7,6 +10,9 @@ plugins {
kotlin("kapt")
}
// === Läs local.properties utan java.util.Properties ===
val localProps: Map<String, String> = run {
val file = rootProject.file("local.properties")
@@ -24,6 +30,10 @@ val localProps: Map<String, String> = run {
.toMap()
}
val klLogDebug = localProps["KLLOG_DEBUG"]?.toBoolean() ?: false
val klLogHttpDebug = localProps["KLLOG_HTTP_DEBUG"]?.toBoolean() ?: false
fun propOrEmpty(key: String) = localProps[key] ?: ""
// ======================================================
@@ -36,8 +46,8 @@ android {
applicationId = "app.klottr"
minSdk = 26
targetSdk = 35
versionCode = 8
versionName = "0.2.1"
versionCode = 9
versionName = "0.2.2"
// Byggtid i UTC (ISO 8601) genereras vid build-konfiguration
val buildTimeUtc = Instant.now().toString()
@@ -50,8 +60,11 @@ android {
buildConfigField("String", "SERVER_API_KEY", "\"${propOrEmpty("SERVER_API_KEY")}\"")
buildConfigField("String", "WEB_CLIENT_ID", "\"${propOrEmpty("WEB_CLIENT_ID")}\"")
// Skicka Maps‑nyckeln som manifest‑placeholder (används i AndroidManifest.xml)
// Skicka Maps‑nyckeln som manifest‑placeholder (används i AndroidManifest.xml)
manifestPlaceholders["MAPS_API_KEY"] = propOrEmpty("MAPS_API_KEY")
buildConfigField("boolean", "KLLOG_DEBUG", klLogDebug.toString())
buildConfigField("boolean", "KLLOG_HTTP_DEBUG", klLogHttpDebug.toString())
}
buildFeatures {