From 684419e86e48ccb53c359d1549ee50e1a96b3bba Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Thu, 15 Jul 2021 19:30:30 +0200 Subject: [PATCH] Version info: show only `git describe --tags`. The commitId is included if there are commits after this tag. --- build.gradle | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 2c606dab8..bee25a153 100644 --- a/build.gradle +++ b/build.gradle @@ -24,13 +24,8 @@ def getVersionName = { -> commandLine 'git', 'describe', '--tags' standardOutput = stdout } - exec { - commandLine 'git', 'log', '--format="%h"', '-n 1' - standardOutput = stdout - } - return stdout.toString().replace('\n', '-').replace('"', '').trim() - } - catch (ignored) { + return stdout.toString().trim() + } catch (ignored) { return null } } @@ -61,7 +56,6 @@ android { buildConfigField "String", "VERSION_NAME_FULL", "\"${getVersionName()}\"" - minSdkVersion 21 targetSdkVersion 30