Fixes: - Multi-IP discovery: Try both primary (AP) and alt (home WiFi) IPs in parallel with 3-4s timeouts each. First responder wins. - Exponential backoff: When Bee is offline, retry with increasing delays (5s → 60s max) instead of hammering every 10s - Clean offline state: Show 'Bee offline' status instead of ugly red errors - Retry queue: Failed ADAMaps sends are queued and retried (up to 5 attempts) instead of being silently dropped - Camera shows 'Bee offline' instead of spinning 'Awaiting frame...' - Settings: Added 'Bee Alt URL' field for configuring home WiFi IP - Better connection status display showing which mode is active Fixes the '206 collected, 0 sent' bug - detections now queue and retry
73 lines
1.9 KiB
Kotlin
73 lines
1.9 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.adamaps.varroa"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.adamaps.varroa"
|
|
minSdk = 26
|
|
targetSdk = 34
|
|
versionCode = 4
|
|
versionName = "1.3.0"
|
|
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = 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.viewmodel.compose)
|
|
implementation(libs.androidx.lifecycle.service)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.ui)
|
|
implementation(libs.androidx.ui.graphics)
|
|
implementation(libs.androidx.ui.tooling.preview)
|
|
implementation(libs.androidx.material3)
|
|
implementation(libs.androidx.material.icons.extended)
|
|
implementation(libs.androidx.navigation.compose)
|
|
implementation(libs.okhttp)
|
|
implementation(libs.gson)
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
implementation(libs.osmdroid.android)
|
|
implementation(libs.datastore.preferences)
|
|
implementation(libs.coil.compose)
|
|
debugImplementation(libs.androidx.ui.tooling)
|
|
}
|