(Again) fixed auto version number.

This commit is contained in:
Amine Bou 2018-01-01 07:27:10 +01:00
parent 9050f5a56f
commit 87ad6f2826

View File

@ -20,7 +20,8 @@ def gitVersion() {
}
def versionCodeFromGit() {
def versionCode = gitVersion() + (ext.configuration.buildDate.format("yyMMD")).toInteger()
def dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0')
def versionCode = gitVersion() + (ext.configuration.buildDate.format("yyMM") + dayInYear).toInteger()
println "version code " + versionCode
return versionCode.toInteger()
}