Add custom server config and remember-me login.

Allow runtime API/Web/WebSocket URLs via DataStore, plus a remember-login
toggle that clears tokens when the app stops if it is off.
This commit is contained in:
klinsmaya
2026-09-15 00:46:18 +08:00
parent 5800000268
commit bbcb2f9ec0
9 changed files with 845 additions and 499 deletions
+4 -3
View File
@@ -51,8 +51,8 @@ android {
applicationId "ai.multicasual.app"
minSdk 24
targetSdk 36
versionCode 5
versionName "0.1.4"
versionCode 3
versionName "0.1.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
@@ -89,7 +89,7 @@ android {
applicationId "ai.multicasual.app"
resValue "string", "app_name", "Multi-Casual"
manifestPlaceholders = [
usesCleartextTraffic: "false",
usesCleartextTraffic: "true",
deepLinkScheme: "multi-casual",
umengDeepLinkScheme: "um.${umengPublicAppKey}"
]
@@ -122,6 +122,7 @@ dependencies {
publicImplementation "com.umeng.umsdk:common:9.9.2"
publicImplementation "com.umeng.umsdk:asms:1.8.7.2"
publicImplementation "com.posthog:posthog-android:3.47.0"
implementation "androidx.datastore:datastore-preferences:1.1.1"
implementation platform("androidx.compose:compose-bom:2024.10.01")
implementation "androidx.activity:activity-compose:1.9.3"
implementation "androidx.compose.foundation:foundation"