diff --git a/Source/Android/app/build.gradle b/Source/Android/app/build.gradle index 870f6e71e1..44e5bc5644 100644 --- a/Source/Android/app/build.gradle +++ b/Source/Android/app/build.gradle @@ -94,5 +94,7 @@ dependencies { } def getVersion() { - return 'git describe --abbrev=0'.execute([], project.rootDir).text.trim() + return 'git describe --always --long'.execute([], project.rootDir).text + .trim() + .replaceAll(/(-0)?-[^-]+$/, "") }