Skip to content

Commit

Permalink
Update VersionCheckerUtilsImpl.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
diyaps authored Sep 20, 2024
1 parent 70b3ac6 commit 7106640
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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) }
}
*/
*/

0 comments on commit 7106640

Please sign in to comment.