mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-27 05:23:00 +00:00
fixed build
This commit is contained in:
parent
a694b74e0f
commit
2272c21dd8
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ object InternetTools {
|
||||||
|
|
||||||
suspend fun isUpdateAvailable(): Boolean {
|
suspend fun isUpdateAvailable(): Boolean {
|
||||||
val result = JsonHelper.getJson("https://x1nto.github.io/VancedFiles/manager.json")
|
val result = JsonHelper.getJson("https://x1nto.github.io/VancedFiles/manager.json")
|
||||||
val remoteVersion = result.int("versionCode")
|
val remoteVersion = result.int("versionCode") ?: 0
|
||||||
|
|
||||||
return remoteVersion > BuildConfig.VERSION_CODE
|
return remoteVersion > BuildConfig.VERSION_CODE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue