Andee lives on your phone or Mac and uses any app like you do—no integrations, no root, any model; memory and passwords never leave your device | Andee 住进你的手机或 Mac,像你一样操作任何 App——无需集成、无需 Root、支持任意模型,记忆和密码绝不离开设备。
fix: the upgrade link is codeflying.net/andee (zh) / codeflying.app/andee; the Mac logs its launch version check
booboosui4744268cc8f0
diff --git a/core/src/main/kotlin/net/kuafuai/andee/config/Upgrade.kt b/core/src/main/kotlin/net/kuafuai/andee/config/Upgrade.ktindex f7b5dc6..78c12fe 100644--- a/core/src/main/kotlin/net/kuafuai/andee/config/Upgrade.kt+++ b/core/src/main/kotlin/net/kuafuai/andee/config/Upgrade.kt@@ -28,5 +28,5 @@ object Upgrade {.map { it.toIntOrNull() ?: return null }.takeIf { it.isNotEmpty() }/** Where the upgrade button goes: CodeFlying's Chinese site for a Chinese interface, the international one otherwise. */- fun url(lang: String): String = if (lang.startsWith("zh")) "https://www.codeflying.net" else "https://www.codeflying.app"+ fun url(lang: String): String = if (lang.startsWith("zh")) "https://www.codeflying.net/andee" else "https://www.codeflying.app/andee"}diff --git a/core/src/test/kotlin/net/kuafuai/andee/config/UpgradeTest.kt b/core/src/test/kotlin/net/kuafuai/andee/config/UpgradeTest.ktindex be86894..3b65f3f 100644--- a/core/src/test/kotlin/net/kuafuai/andee/config/UpgradeTest.kt+++ b/core/src/test/kotlin/net/kuafuai/andee/config/UpgradeTest.kt@@ -17,7 +17,7 @@ class UpgradeTest {}@Test fun theLinkFollowsTheLanguage() {- assertEquals("https://www.codeflying.net", Upgrade.url("zh"))- assertEquals("https://www.codeflying.app", Upgrade.url("en"))+ assertEquals("https://www.codeflying.net/andee", Upgrade.url("zh"))+ assertEquals("https://www.codeflying.app/andee", Upgrade.url("en"))}}diff --git a/desktop/src/main/kotlin/net/kuafuai/andee/desktop/VersionCheck.kt b/desktop/src/main/kotlin/net/kuafuai/andee/desktop/VersionCheck.ktindex 1439e8f..c11831d 100644--- a/desktop/src/main/kotlin/net/kuafuai/andee/desktop/VersionCheck.kt+++ b/desktop/src/main/kotlin/net/kuafuai/andee/desktop/VersionCheck.kt@@ -1,5 +1,6 @@package net.kuafuai.andee.desktop+import net.kuafuai.andee.util.Logimport okhttp3.HttpUrl.Companion.toHttpUrlOrNullimport okhttp3.OkHttpClientimport okhttp3.Request@@ -99,11 +100,14 @@ object VersionCheck {fun remindAtLaunch() {Thread({Thread.sleep(LAUNCH_DELAY_MS)- val r = probe() as? Result.Behind ?: return@Thread- if (AskGate.current != null) return@Thread+ val p = probe()+ Log.i("Version", "launch check: ${current()} → $p")+ val r = p as? Result.Behind ?: return@Thread+ if (AskGate.current != null) [email protected] { Log.i("Version", "a card is up; not reminding this launch") }val zh = Strings.lang() == "zh"val go = if (zh) "去升级" else "Upgrade"val a = AskGate.ask(behindText(r), listOf(go, if (zh) "以后再说" else "Later"), REMIND_MS, speak = false)+ Log.i("Version", "reminder answered: ${a.button ?: a.how}")if (a.button == go) runCatching { net.kuafuai.andee.desktop.mac.Bridge.open(upgradeUrl()) }}, "version-remind").apply { isDaemon = true }.start()}