Release 2.6.0: fix AmneziaWG key parsing for awg://, JSON and vpn://.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Navis
2026-07-29 14:46:21 +03:00
co-authored by Cursor
parent ffb3ef7512
commit 99bbac20e2
25 changed files with 479 additions and 133 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ android {
applicationId = "win.evilfox.navis"
minSdk = 26
targetSdk = 35
versionCode = 230
versionName = "2.3.0"
versionCode = 260
versionName = "2.6.0"
vectorDrawables.useSupportLibrary = true
ndk {
abiFilters += listOf("arm64-v8a", "armeabi-v7a", "x86_64")
@@ -61,7 +61,7 @@ class ProfileStore(context: Context) {
fun getSubUrl(): String = prefs.getString("sub_url", "") ?: ""
fun setSubUrl(url: String) = prefs.edit().putString("sub_url", url).apply()
fun autoBest(): Boolean = prefs.getBoolean("auto_best", true)
fun autoBest(): Boolean = prefs.getBoolean("auto_best", false)
fun setAutoBest(v: Boolean) = prefs.edit().putBoolean("auto_best", v).apply()
suspend fun importSubscription(url: String): List<Profile> = withContext(Dispatchers.IO) {
@@ -22,7 +22,7 @@ data class UiState(
val connected: Boolean = false,
val connectedName: String? = null,
val subUrl: String = "",
val autoBest: Boolean = true,
val autoBest: Boolean = false,
val busy: Boolean = false,
val meta: String = "Готово",
val metaErr: Boolean = false,
@@ -97,7 +97,7 @@ fun NavisScreen(
Text("Navis", fontSize = 28.sp, fontWeight = FontWeight.Black, color = Ink)
Spacer(Modifier.width(8.dp))
Surface(color = Soft, shape = RoundedCornerShape(999.dp)) {
Text("2.3", Modifier.padding(horizontal = 8.dp, vertical = 2.dp), fontSize = 12.sp, fontWeight = FontWeight.Bold, color = AccentDeep)
Text("2.6", Modifier.padding(horizontal = 8.dp, vertical = 2.dp), fontSize = 12.sp, fontWeight = FontWeight.Bold, color = AccentDeep)
}
}
Text("Android · Naive · Hy2 · AWG · Xray", color = Muted, fontSize = 13.sp)