Add commit ID to about screen

This commit is contained in:
Udi Finkelstein 2015-07-09 21:21:12 +03:00
parent 0d2f99a1a7
commit 184ac34500
2 changed files with 3 additions and 1 deletions

View File

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

View File

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