beta updater fix
This commit is contained in:
parent
cfe7be5cdb
commit
c75df942f2
2 changed files with 4 additions and 4 deletions
|
@ -21,15 +21,14 @@ android {
|
|||
minSdk 23
|
||||
targetSdk 34
|
||||
versionCode ((System.currentTimeMillis() / 60000).toInteger())
|
||||
versionName "1.0.0.1b"
|
||||
versionName "1.0.0-beta02"
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
//applicationIdSuffix ".beta"
|
||||
applicationIdSuffix ".beta"
|
||||
debuggable true
|
||||
versionNameSuffix "." + gitCommitHash
|
||||
}
|
||||
release {
|
||||
debuggable false
|
||||
|
|
|
@ -95,8 +95,9 @@ object AppUpdater {
|
|||
|
||||
private fun compareVersion(version: String): Boolean {
|
||||
|
||||
if(BuildConfig.DEBUG)
|
||||
if(BuildConfig.DEBUG) {
|
||||
return BuildConfig.VERSION_NAME != version
|
||||
}
|
||||
else {
|
||||
fun toDouble(list: List<String>): Double {
|
||||
return list.mapIndexed { i: Int, s: String ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue