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
|
minSdk 23
|
||||||
targetSdk 34
|
targetSdk 34
|
||||||
versionCode ((System.currentTimeMillis() / 60000).toInteger())
|
versionCode ((System.currentTimeMillis() / 60000).toInteger())
|
||||||
versionName "1.0.0.1b"
|
versionName "1.0.0-beta02"
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
//applicationIdSuffix ".beta"
|
applicationIdSuffix ".beta"
|
||||||
debuggable true
|
debuggable true
|
||||||
versionNameSuffix "." + gitCommitHash
|
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
debuggable false
|
debuggable false
|
||||||
|
|
|
@ -95,8 +95,9 @@ object AppUpdater {
|
||||||
|
|
||||||
private fun compareVersion(version: String): Boolean {
|
private fun compareVersion(version: String): Boolean {
|
||||||
|
|
||||||
if(BuildConfig.DEBUG)
|
if(BuildConfig.DEBUG) {
|
||||||
return BuildConfig.VERSION_NAME != version
|
return BuildConfig.VERSION_NAME != version
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
fun toDouble(list: List<String>): Double {
|
fun toDouble(list: List<String>): Double {
|
||||||
return list.mapIndexed { i: Int, s: String ->
|
return list.mapIndexed { i: Int, s: String ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue