mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
add useful stuff to build-info.txt inside .apk
This commit is contained in:
parent
9374260c59
commit
83b8169a6b
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