mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-21 07:53:56 +00:00
beta updater fix
This commit is contained in:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user