1
0

chore: change default URL

This commit is contained in:
Sweetbread 2025-05-22 00:12:25 +03:00
parent 52816c155b
commit d6f352be29
Signed by: Sweetbread
GPG Key ID: 17A5CB9A7DD85319
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,6 @@ package ru.risdeveau.geotracker
import splitties.preferences.Preferences
object SettingsPreferences : Preferences("settings") {
var username by stringPref("username", "anonimous")
var url by stringPref("url", "https://example.com")
var username by stringPref("username", "")
var url by stringPref("url", "https://geo.tmp.codrs.ru")
}

View File

@ -89,6 +89,7 @@ class MainActivity : ComponentActivity() {
launch {
screen = if (
health(SettingsPreferences.url)
&& SettingsPreferences.username.isNotBlank()
&& hasPermission(ACCESS_FINE_LOCATION)
&& (
(Build.VERSION.SDK_INT < 33)