Skip to content

Commit

Permalink
Merge pull request #787 from DroidKaigi/version_offset_adjust
Browse files Browse the repository at this point in the history
Add versionCode offset to avoid accidental versionCode duplication
  • Loading branch information
jmatsu committed Feb 4, 2019
2 parents 8694431 + 1ccafad commit 16689ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildSrc/src/main/java/dependencies/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ private object Versions {
private val versionMajor = 1
private val versionMinor = 0
private val versionPatch = 1
val androidVersionCode = versionMajor * 10000 + versionMinor * 100 + versionPatch
private val versionOffset = 0
val androidVersionCode =
(versionMajor * 10000 + versionMinor * 100 + versionPatch) * 100 + versionOffset

val androidVersionName = "$versionMajor.$versionMinor.$versionPatch"
}

0 comments on commit 16689ef

Please sign in to comment.