diff --git a/xwords4/android/app/build.gradle b/xwords4/android/app/build.gradle index e639a519f..21bc531e4 100644 --- a/xwords4/android/app/build.gradle +++ b/xwords4/android/app/build.gradle @@ -10,14 +10,11 @@ boolean forFDroid = hasProperty('forFDroid') // Get the git revision we're using. Since fdroid modifies files as // part of its build process -dirty will always be added, confusing // users. So add that for the non-fdroid case. - -def GITCMD = "git rev-parse HEAD" -// if (! forFDroid) { -// GITCMD += " --dirty" -// } -print "GITCMD: ${GITCMD}\n" -def GITREV = GITCMD.execute().text.trim() -print "GITREV: ${GITREV}\n" +def GITREV = "git describe --tags" +if (! forFDroid) { + GITREV += " --dirty" +} +GITREV = GITREV.execute().text.trim() apply plugin: 'com.android.application'