update android app default server url to production

This commit is contained in:
Sanju Sivalingam
2026-02-18 10:25:42 +05:30
parent 22481c8834
commit 22b13bec2f
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ class SettingsStore(private val context: Context) {
} }
val serverUrl: Flow<String> = context.dataStore.data.map { prefs -> val serverUrl: Flow<String> = context.dataStore.data.map { prefs ->
prefs[SettingsKeys.SERVER_URL] ?: "ws://localhost:8080" prefs[SettingsKeys.SERVER_URL] ?: "wss://tunnel.droidclaw.ai"
} }
val deviceName: Flow<String> = context.dataStore.data.map { prefs -> val deviceName: Flow<String> = context.dataStore.data.map { prefs ->

View File

@@ -55,7 +55,7 @@ fun SettingsScreen() {
val scope = rememberCoroutineScope() val scope = rememberCoroutineScope()
val apiKey by app.settingsStore.apiKey.collectAsState(initial = "") val apiKey by app.settingsStore.apiKey.collectAsState(initial = "")
val serverUrl by app.settingsStore.serverUrl.collectAsState(initial = "ws://localhost:8080") val serverUrl by app.settingsStore.serverUrl.collectAsState(initial = "wss://tunnel.droidclaw.ai")
var editingApiKey by remember(apiKey) { mutableStateOf(apiKey) } var editingApiKey by remember(apiKey) { mutableStateOf(apiKey) }
var editingServerUrl by remember(serverUrl) { mutableStateOf(serverUrl) } var editingServerUrl by remember(serverUrl) { mutableStateOf(serverUrl) }