Merge pull request #1000 from udif/about_commit

Add git commit ID and version top the "About" screen
This commit is contained in:
Tom Hennen 2015-07-10 21:41:31 -04:00
commit cc8e470b8f
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -42,6 +42,7 @@
<img src="logo.png" alt="Logo" width="100px" height="100px"/>
<p>AntennaPod, Version @versionname@, Build @versioncode@</p>
<p>commit: @commit@</p>
<p>Created by Daniel Oeh</p>