mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
add useful stuff to build-info.txt inside .apk
This commit is contained in:
parent
0f9fd24cb7
commit
3d5b4017e5
1 changed files with 11 additions and 1 deletions
|
@ -369,7 +369,17 @@ afterEvaluate {
|
|||
task makeBuildAssets() {
|
||||
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[0]
|
||||
String path = new File(assetsDir, BUILD_INFO_NAME).getAbsolutePath()
|
||||
String out = "git: ${GITREV}\n"
|
||||
String out = "git_describe: ${GITREV}\n"
|
||||
|
||||
String HEAD = "git rev-parse HEAD".execute().text.trim()
|
||||
out += "HEAD: ${HEAD}\n"
|
||||
|
||||
String date = "date".execute().text.trim()
|
||||
out += "date: ${date}\n"
|
||||
|
||||
// I want the variant, but that's harder. Here's a quick hack from SO.
|
||||
String target = gradle.startParameter.taskNames[-1]
|
||||
out += "target: ${target}\n"
|
||||
|
||||
String diff = "git diff".execute().text.trim()
|
||||
if (diff) {
|
||||
|
|
Loading…
Add table
Reference in a new issue