Fix AppInfo#getVersionCode signature

This commit is contained in:
arkon 2022-06-06 21:16:21 -04:00
parent 3c3f173975
commit 77bc3ed7c9
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ sourceSets {
}
// should be bumped with each stable release
val inspectorVersion = "v0.7.0"
val inspectorVersion = "v0.7.1"
// counts commit count on master
val inspectorRevision = runCatching {

View File

@ -3,6 +3,6 @@ package eu.kanade.tachiyomi
class BuildConfig {
companion object {
const val VERSION_NAME = suwayomi.server.BuildConfig.NAME
const val VERSION_CODE = suwayomi.server.BuildConfig.REVISION
val VERSION_CODE = suwayomi.server.BuildConfig.REVISION.trimStart('r').toInt()
}
}

View File

@ -72,4 +72,4 @@ data class SourceJson(
)
}
private fun Boolean.toShort(): Short = if (this) 1 else 0
private fun Boolean.toShort(): Short = if (this) 1 else 0