diff --git a/app/build.gradle b/app/build.gradle index cec2be7ad4..4cc477f9f9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1595 - versionName "0.15.95" + versionCode 1596 + versionName "0.15.96" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/datamanager/Service.kt b/app/src/main/java/org/ole/planet/myplanet/datamanager/Service.kt index 9d4e55ca3e..24cd4d02d3 100644 --- a/app/src/main/java/org/ole/planet/myplanet/datamanager/Service.kt +++ b/app/src/main/java/org/ole/planet/myplanet/datamanager/Service.kt @@ -357,7 +357,7 @@ class Service(private val context: Context) { } private fun compareVersions(version1: String, version2: String): Int { - val parts1 = version1.removePrefix("v").split(".").map { it.toInt() } + val parts1 = version1.removeSuffix("-lite").removePrefix("v").split(".").map { it.toInt() } val parts2 = version2.removePrefix("v").split(".").map { it.toInt() } for (i in 0 until min(parts1.size, parts2.size)) {