Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jmir1 committed Jun 15, 2021
1 parent 0f164c8 commit 419b5ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ android {
targetSdkVersion(AndroidConfig.targetSdk)
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
versionCode = 63
versionName = "0.11.1.5-mi"
versionName = "0.11.1.7"

buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"")
buildConfigField("String", "COMMIT_SHA", "\"${getGitSha()}\"")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ class GithubUpdateChecker {

private fun isNewVersion(versionTag: String): Boolean {
// Removes prefixes like "r" or "v"
val newVersion = versionTag.replace("[^\\d.\\-mi]".toRegex(), "")
val newVersion = versionTag.replace("[^\\d.]".toRegex(), "")

return if (BuildConfig.DEBUG) {
// Preview builds: based on releases in "jmir1/tachiyomi-preview" repo
// tagged as something like "r1234"
newVersion.toInt() > BuildConfig.COMMIT_COUNT.toInt()
} else {
// Release builds: based on releases in "jmir1/aniyomi" repo
// tagged as something like "v0.1.2-mi"
// tagged as something like "v0.1.2"
newVersion != BuildConfig.VERSION_NAME
}
}
Expand Down

0 comments on commit 419b5ab

Please sign in to comment.