Skip to content
Snippets Groups Projects
Commit fd87caed authored by Matyáš Latner's avatar Matyáš Latner
Browse files

Application version naming fix

parent 9d7896ca
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment