AS update.

This commit is contained in:
Amine Bou 2018-04-10 20:48:47 +02:00
parent 53a8716b51
commit eb5672901b
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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