Skip to content

Commit

Permalink
v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yueeng committed Apr 20, 2020
1 parent e2aadd0 commit b62e8f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "io.github.yueeng.hacg"
minSdkVersion 21
targetSdkVersion 29
versionCode 33
versionName "1.3.3"
versionCode 34
versionName "1.3.4"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/io/github/yueeng/hacg/Common.kt
Expand Up @@ -347,8 +347,8 @@ fun version(context: Context): String = try {
}

fun versionBefore(local: String, online: String): Boolean = try {
val l = local.split("""\.""").map { it.toInt() }.toList()
val o = online.split("""\.""").map { it.toInt() }.toList()
val l = local.split('.').map { it.toInt() }.toList()
val o = online.split('.').map { it.toInt() }.toList()
for (i in 0 until min(l.size, o.size)) {
(l[i] - o[i]).let { x ->
when {
Expand Down

0 comments on commit b62e8f3

Please sign in to comment.