Skip to content

Commit

Permalink
sync: trim lite version (fixes #3656) (#3657)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Jun 19, 2024
1 parent 15ca9be commit c8a83d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c8a83d6

Please sign in to comment.