From 71066401633e830277ff6cdba5109f3016089be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=9E=8B=E7=A0=81=E5=86=9CLex?= Date: Fri, 20 Sep 2024 10:21:16 +0800 Subject: [PATCH] Update VersionCheckerUtilsImpl.kt --- .../constraints/versionChecker/VersionCheckerUtilsImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/constraints/src/main/kotlin/app/aaps/plugins/constraints/versionChecker/VersionCheckerUtilsImpl.kt b/plugins/constraints/src/main/kotlin/app/aaps/plugins/constraints/versionChecker/VersionCheckerUtilsImpl.kt index 72e69ac6d56..dbda941ec9b 100644 --- a/plugins/constraints/src/main/kotlin/app/aaps/plugins/constraints/versionChecker/VersionCheckerUtilsImpl.kt +++ b/plugins/constraints/src/main/kotlin/app/aaps/plugins/constraints/versionChecker/VersionCheckerUtilsImpl.kt @@ -50,7 +50,7 @@ class VersionCheckerUtilsImpl @Inject constructor( if (isConnected()) { Thread { try { - val definition: String = URL("https://raw.githubusercontent.com/nightscout/AndroidAPS/versions/definition.json").readText() + val definition: String = URL("https://gitee.com/diyaps/AndroidAPS/raw/versions/definition.json").readText() val version: String? = AllowedVersions().findByApi(definition, Build.VERSION.SDK_INT)?.optString("supported") compareWithCurrentVersion(version, config.get().VERSION_NAME) @@ -171,4 +171,4 @@ fun String.numericVersionPart(): String = val regex = "(.*)version(.*)\"(((\\d+)\\.)+(\\d+))\"(.*)".toRegex() return file?.lines()?.filter { regex.matches(it) }?.firstNotNullOfOrNull { regex.matchEntire(it)?.groupValues?.getOrNull(3) } } -*/ \ No newline at end of file +*/