- Default API URL: 192.168.0.10 → 10.77.0.1 - BeeApiClient: apiToken field, bearer auth on POST endpoints, pair() method, getSshStatus(), setSshEnabled() — JSch/SSH-from-app removed entirely - Models: PairResponse, SshStatus, WifiStatus data classes - SettingsDataStore: deviceSerial, apiToken, isPaired persistence + deriveApiToken() - SettingsViewModel: pairDevice(), connectWifi(), toggleSsh(), refreshSshStatus(), refreshWifiStatus(), isPaired/deviceSerial/sshStatus/wifiStatus StateFlows - SettingsScreen: Pairing section, Home WiFi config section, SSH toggle section renamed BEE DEVICE → ADACAM DEVICE, hint URL updated - build.gradle: removed JSch dependency (no longer SSHing from app)
88 lines
2.5 KiB
Kotlin
88 lines
2.5 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
alias(libs.plugins.ksp)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.adamaps.varroa"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.adamaps.varroa"
|
|
minSdk = 26
|
|
targetSdk = 34
|
|
versionCode = 14
|
|
versionName = "1.7.9"
|
|
|
|
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)
|
|
// Room (local database)
|
|
implementation(libs.room.runtime)
|
|
implementation(libs.room.ktx)
|
|
ksp(libs.room.compiler)
|
|
// WorkManager (background uploads)
|
|
implementation(libs.work.runtime.ktx)
|
|
// SSH connectivity for device_id fallback
|
|
|
|
// QR Code scanning
|
|
implementation("com.google.zxing:core:3.5.2")
|
|
implementation("com.journeyapps:zxing-android-embedded:4.3.0")
|
|
implementation("androidx.camera:camera-camera2:1.3.0")
|
|
implementation("androidx.camera:camera-lifecycle:1.3.0")
|
|
implementation("androidx.camera:camera-view:1.3.0")
|
|
debugImplementation(libs.androidx.ui.tooling)
|
|
}
|