42f657bc0a
- Map markers: replace osmdroid's default teardrop pin (which reads as a 'click me' affordance the map doesn't actually offer) with simple red dots for ALPRs, matching the blue user-position dot. Drawables share a single dotDrawable() helper. - Live re-eval on proximity slider change. Bug: moving the DeFlock or Citizen distance slider while scanning updated the map's visible radius but didn't trigger a re-evaluation of which detections fire, so events outside a tightened radius lingered until restart and events inside a widened radius wouldn't appear until the next fix/poll cycle. Fix: add DetectionStore.clearSource(), add refresh() to DeflockScanner + CitizenScanner that clear the source and re-emit against cached state, observe the proximity StateFlows in DetectionService (drop initial replay so we don't redundantly clear+re-emit on first scan start). - COMMERCIAL row label was clipping under the Switch. Shorten to 'COMMERCIAL • Nest, Ring, Echo' (drop 'devices') and give every SourceToggle's Text Modifier.weight(1f) so labels wrap gracefully on narrow displays instead of getting truncated.
68 lines
1.6 KiB
Kotlin
68 lines
1.6 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "org.soulstone.overwatch"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "org.soulstone.overwatch"
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
versionCode = 11
|
|
versionName = "0.2.2"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.lifecycle.service)
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.compose.ui)
|
|
implementation(libs.androidx.compose.ui.graphics)
|
|
implementation(libs.androidx.compose.ui.tooling.preview)
|
|
implementation(libs.androidx.compose.material3)
|
|
implementation(libs.androidx.compose.material.icons.extended)
|
|
|
|
implementation(libs.play.services.location)
|
|
implementation(libs.osmdroid.android)
|
|
|
|
debugImplementation(libs.androidx.compose.ui.tooling)
|
|
}
|