AS update.
This commit is contained in:
parent
53a8716b51
commit
eb5672901b
@ -22,14 +22,14 @@ def gitVersion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def versionCodeFromGit() {
|
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()
|
def versionCode = gitVersion() + (ext.configuration.buildDate.format("yyMM") + dayInYear + ext.todaysBuilds).toInteger()
|
||||||
println "version code " + versionCode
|
println "version code " + versionCode
|
||||||
return versionCode.toInteger()
|
return versionCode.toInteger()
|
||||||
}
|
}
|
||||||
|
|
||||||
def versionNameFromGit() {
|
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
|
def versionName = gitVersion() + ext.configuration.buildDate.format('yyMM') + dayInYear + ext.todaysBuilds
|
||||||
println "version name " + versionName
|
println "version name " + versionName
|
||||||
return versionName
|
return versionName
|
||||||
|
@ -10,7 +10,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
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"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
Loading…
Reference in New Issue
Block a user