Don't show version code, commit is short hash only (no tag)

This commit is contained in:
Martin Fietz 2015-07-20 11:35:26 +02:00
parent c38759ac0d
commit 4e8f9a13aa
2 changed files with 3 additions and 4 deletions

View File

@ -121,8 +121,7 @@ task filterAbout {
from 'src/main/templates/about.html'
into 'src/main/assets'
filter(ReplaceTokens, tokens: [versionname: android.defaultConfig.versionName,
versioncode: android.defaultConfig.versionCode.toString(),
commit: "git describe".execute().text])
commit: "git rev-parse --short HEAD".execute().text])
}
}

View File

@ -41,8 +41,8 @@
<div id="header" align="center">
<img src="logo.png" alt="Logo" width="100px" height="100px"/>
<p>AntennaPod, Version @versionname@, Build @versioncode@</p>
<p>commit: @commit@</p>
<p>AntennaPod, Version @versionname@</p>
<p>Commit: @commit@</p>
<p>Created by Daniel Oeh</p>