Skip to content

Commit

Permalink
更新版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
aaa1115910 committed Aug 5, 2024
1 parent ef5671c commit d2279de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/AppConfiguration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ object AppConfiguration {
const val targetSdk = 34
private const val major = 0
private const val minor = 2
private const val patch = 8
private const val bugFix = 0
private const val patch = 9
private const val hotFix = 0

@Suppress("KotlinConstantConditions")
val versionName: String by lazy {
"$major.$minor.$patch${".$bugFix".takeIf { bugFix != 0 } ?: ""}" +
"$major.$minor.$patch${".$hotFix".takeIf { hotFix != 0 } ?: ""}" +
".r${versionCode}.${"git rev-list HEAD --abbrev-commit --max-count=1".exec()}"
}
val versionCode: Int by lazy { "git rev-list --count HEAD".exec().toInt() }
Expand Down

0 comments on commit d2279de

Please sign in to comment.