diff --git a/app/build.gradle b/app/build.gradle index c7f023f..ed70e16 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -158,9 +158,11 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { } // https://github.com/ReactiveCircus/app-versioning +import io.github.reactivecircus.appversioning.SemVer + appVersioning { overrideVersionCode { gitTag, providers, variantInfo -> - gitTag.commitsSinceLatestTag + def semVer = SemVer.fromGitTag(gitTag) semVer.major * 2000000 + semVer.minor * 20000 + semVer.patch * 200 + gitTag.commitsSinceLatestTag } }