Using bitrise build-number as version code instead of date

This commit is contained in:
Alexander Pacha
2016-09-20 22:55:30 +02:00
parent 842333b231
commit eb488dcf95

View File

@@ -1,8 +1,6 @@
apply plugin: 'com.android.application'
def date = new Date()
def formattedDate = date.format('yyMMdd')
def code = formattedDate.toInteger()
def code = System.getenv("BITRISE_BUILD_NUMBER") as Integer ?: 0
android {
compileSdkVersion 24
@@ -13,7 +11,7 @@ android {
minSdkVersion 18
targetSdkVersion 24
versionCode code
versionName "1.4." + formattedDate
versionName "1.4." + code
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}