Changed automatic version-numbering to be of format yyMMdd####, where #### is the build-number from the CI (which now allows up to 10k builds)

This commit is contained in:
Alexander Pacha
2016-09-25 21:45:10 +02:00
parent 4b513794fe
commit b321594d46

View File

@@ -1,8 +1,8 @@
apply plugin: 'com.android.application'
def date = new Date()
def formattedDate = date.format('yyyyMMdd')
def code = formattedDate.toInteger() * 100
def formattedDate = date.format('yyMMdd')
def code = formattedDate.toInteger() * 10000
def buildNumber = System.getenv("BITRISE_BUILD_NUMBER") as Integer ?: 0
android {