Build changes.
This commit is contained in:
parent
2ceb0f988b
commit
bd08b8aba3
@ -1,3 +1,9 @@
|
||||
**1.5.5.x**
|
||||
|
||||
- Completed Dutch and Indonesian translation !
|
||||
|
||||
- Changed versions handling.
|
||||
|
||||
**1.5.4.22**
|
||||
|
||||
- You can now scroll through the loaded articles !
|
||||
|
@ -8,19 +8,27 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
configuration = [
|
||||
buildDate: new Date()
|
||||
]
|
||||
}
|
||||
|
||||
def gitVersion() {
|
||||
def process = "git describe --abbrev=0 --tags".execute()
|
||||
return process.text.substring(1).replaceAll("\\.", "")
|
||||
return process.text.substring(1).replaceAll("\\.", "").trim()
|
||||
}
|
||||
|
||||
def versionCodeFromGit() {
|
||||
println "version code " + gitVersion().toInteger()
|
||||
return gitVersion().toInteger()
|
||||
def versionCode = gitVersion() + (ext.configuration.buildDate.format("SSssmm")).toInteger()
|
||||
println "version code " + versionCode
|
||||
return versionCode.toInteger()
|
||||
}
|
||||
|
||||
def versionNameFromGit() {
|
||||
println "version code " + gitVersion().trim()
|
||||
return gitVersion().trim()
|
||||
def versionName = gitVersion() + ext.configuration.buildDate.format('yyyyMMddHHmm')
|
||||
println "version name " + versionName
|
||||
return versionName
|
||||
}
|
||||
|
||||
apply plugin: 'org.sonarqube'
|
||||
|
Loading…
Reference in New Issue
Block a user