v7.9: fix SettingsDataStore default API key (mapnet -> adamaps)
This commit is contained in:
parent
c4328308f3
commit
d3cf0d5d47
2 changed files with 4 additions and 4 deletions
|
|
@ -13,8 +13,8 @@ android {
|
|||
applicationId = "com.adamaps.varroa"
|
||||
minSdk = 26
|
||||
targetSdk = 34
|
||||
versionCode = 13
|
||||
versionName = "1.7.7"
|
||||
versionCode = 14
|
||||
versionName = "1.7.9"
|
||||
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ private val Context.dataStore: DataStore<Preferences> by preferencesDataStore(na
|
|||
data class VarroaSettings(
|
||||
val beeApiUrl: String = "http://192.168.0.10:5000",
|
||||
val adamapsApiUrl: String = "https://api.adamaps.org",
|
||||
val adamapsApiKey: String = "mapnet-ingest-2026",
|
||||
val adamapsApiKey: String = "adamaps-ingest-2026",
|
||||
val pollIntervalSeconds: Int = 30,
|
||||
val cameraEndpoint: String = "/api/1/camera/frame",
|
||||
val cameraRefreshSeconds: Int = 30,
|
||||
|
|
@ -43,7 +43,7 @@ class SettingsDataStore(private val context: Context) {
|
|||
VarroaSettings(
|
||||
beeApiUrl = prefs[KEY_BEE_URL] ?: "http://192.168.0.10:5000",
|
||||
adamapsApiUrl = prefs[KEY_ADAMAPS_URL] ?: "https://api.adamaps.org",
|
||||
adamapsApiKey = prefs[KEY_ADAMAPS_KEY] ?: "mapnet-ingest-2026",
|
||||
adamapsApiKey = prefs[KEY_ADAMAPS_KEY] ?: "adamaps-ingest-2026",
|
||||
pollIntervalSeconds = prefs[KEY_POLL_INTERVAL] ?: 30,
|
||||
cameraEndpoint = prefs[KEY_CAMERA_ENDPOINT] ?: "/api/1/camera/frame",
|
||||
cameraRefreshSeconds = prefs[KEY_CAMERA_REFRESH] ?: 30,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue