Skip to content

Commit

Permalink
Merge pull request #39 from techmaved/feature/version-name-tags
Browse files Browse the repository at this point in the history
control versioning with git tags
  • Loading branch information
techmaved authored Dec 22, 2023
2 parents 2a81e4a + 373ee86 commit 0bff3d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.google.devtools.ksp")
id("io.github.reactivecircus.app-versioning")
}

android {
Expand Down Expand Up @@ -73,6 +74,13 @@ android {
versionNameSuffix = ".debug"
}
}

appVersioning {
overrideVersionName { gitTag, _, _ ->
gitTag.rawTagName.replaceFirst("v", "")
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ plugins {
id("com.android.application") version "8.2.0" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
id("com.google.devtools.ksp") version "1.9.20-1.0.14" apply false
id("io.github.reactivecircus.app-versioning") version "1.3.1" apply false
}

0 comments on commit 0bff3d6

Please sign in to comment.