diff --git a/app/build.gradle b/app/build.gradle index f4a2f62..8c2a241 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,14 +22,14 @@ def gitVersion() { } def versionCodeFromGit() { - def dayInYear = ext.configuration.buildDate.format("D").padLeft(2, '0') + def dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0').substring(1, 2) def versionCode = gitVersion() + (ext.configuration.buildDate.format("yyMM") + dayInYear + ext.todaysBuilds).toInteger() println "version code " + versionCode return versionCode.toInteger() } def versionNameFromGit() { - def dayInYear = ext.configuration.buildDate.format("D").padLeft(2, '0') + def dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0').substring(1, 2) def versionName = gitVersion() + ext.configuration.buildDate.format('yyMM') + dayInYear + ext.todaysBuilds println "version name " + versionName return versionName diff --git a/build.gradle b/build.gradle index 9f64143..169ef9e 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { } } dependencies { - classpath 'com.android.tools.build:gradle:3.1.0' + classpath 'com.android.tools.build:gradle:3.1.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong