Skip to content

Commit

Permalink
forgot to define semver
Browse files Browse the repository at this point in the history
  • Loading branch information
compscidr committed Jun 16, 2023
1 parent 8c48276 commit 5cc9388
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 5cc9388

Please sign in to comment.