Using version number that is more meaningful (year/month/day/buildNumber)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
def offset = 1609201649;
|
||||
def code = System.getenv("BITRISE_BUILD_NUMBER") as Integer ?: 0
|
||||
def date = new Date()
|
||||
def formattedDate = date.format('yyyyMMdd')
|
||||
def code = formattedDate.toInteger() * 100
|
||||
def buildNumber = System.getenv("BITRISE_BUILD_NUMBER") as Integer ?: 0
|
||||
|
||||
android {
|
||||
compileSdkVersion 24
|
||||
@@ -11,8 +13,8 @@ android {
|
||||
applicationId "org.hitlabnz.sensor_fusion_demo"
|
||||
minSdkVersion 18
|
||||
targetSdkVersion 24
|
||||
versionCode code + offset
|
||||
versionName "1.4." + code
|
||||
versionCode code + buildNumber
|
||||
versionName "1.4." + buildNumber
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user