mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-14 14:53:07 +02:00
Version info: show only git describe --tags.
The commitId is included if there are commits after this tag.
This commit is contained in:
+2
-8
@@ -24,13 +24,8 @@ def getVersionName = { ->
|
|||||||
commandLine 'git', 'describe', '--tags'
|
commandLine 'git', 'describe', '--tags'
|
||||||
standardOutput = stdout
|
standardOutput = stdout
|
||||||
}
|
}
|
||||||
exec {
|
return stdout.toString().trim()
|
||||||
commandLine 'git', 'log', '--format="%h"', '-n 1'
|
} catch (ignored) {
|
||||||
standardOutput = stdout
|
|
||||||
}
|
|
||||||
return stdout.toString().replace('\n', '-').replace('"', '').trim()
|
|
||||||
}
|
|
||||||
catch (ignored) {
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -61,7 +56,6 @@ android {
|
|||||||
buildConfigField "String", "VERSION_NAME_FULL", "\"${getVersionName()}\""
|
buildConfigField "String", "VERSION_NAME_FULL", "\"${getVersionName()}\""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user