mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
tweak gradle-built apk name
This commit is contained in:
parent
83fed4da91
commit
929c4c811b
1 changed files with 5 additions and 4 deletions
|
@ -148,12 +148,13 @@ android {
|
|||
abortOnError false
|
||||
}
|
||||
|
||||
def gitrev = "git describe --tags".execute().text.trim()
|
||||
def gitrev = "git describe --tags --dirty".execute().text.trim()
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.each { output ->
|
||||
output.outputFile =
|
||||
new File(output.outputFile.parent,
|
||||
output.outputFile.name.replace(".apk", "-${gitrev}.apk"))
|
||||
def newName = output.outputFile.name
|
||||
newName = newName.replace(".apk","-${gitrev}.apk")
|
||||
newName = newName.replace("app-","")
|
||||
output.outputFile = new File(output.outputFile.parent, newName)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue