diff --git a/android/mainSample/build.gradle b/android/mainSample/build.gradle index 3f6c1a644..6f2194265 100644 --- a/android/mainSample/build.gradle +++ b/android/mainSample/build.gradle @@ -67,18 +67,8 @@ dependencies { } static def getTag() { - def tagVersion = "$System.env.TAG_VERSION" - if (tagVersion == "null") { - println "No variable TAG_VERSION specified, I'm using 'git describe --abbrev=0'" - def process = "git describe --abbrev=0".execute() - tagVersion = process.text.toString().trim() - if (tagVersion.equals("")) { - println "abbrev failed, I'm using 'git --tags'" - def processT = "git describe --tags".execute() - tagVersion = processT.text.toString().trim() - } - } - return tagVersion + def process = "git describe --tags --abbrev=0".execute() + return process.text.toString().trim() } static def getGitCommitCount() {