Commit fd87caed authored by Matyáš Latner's avatar Matyáš Latner

Application version naming fix

parent 9d7896ca
......@@ -76,7 +76,7 @@ android {
if (!variant.buildType.name.equals("devel")) {
variant.outputs.each { output ->
def file = output.outputFile
output.outputFile = new File(file.parent, file.name.replace(".apk", "-" + tablexiaVersionName + ".apk").replace("android", appName))
output.outputFile = new File(file.parent, file.name.replace(".apk", "-" + tablexiaVersionName + ".apk").replace("android", tablexiaAppName))
}
}
}
......
......@@ -286,8 +286,10 @@ def getVersionNameFromGit() {
}
String numberOfCommits = stdout.toString().trim()
// add branch name and number of commits
result = "${result}-${numberOfCommits}"
if (!"0".equals(numberOfCommits)) {
// add branch name and number of commits
result = "${result}-${numberOfCommits}"
}
}
return result
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment