Little cleanup of filterAbout task
This commit is contained in:
parent
611d8c9e45
commit
073ddced41
|
@ -189,21 +189,14 @@ if (project.hasProperty("antennaPodServiceAccountEmail")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// about.html is templatized so that we can automatically insert
|
task filterAbout(type: Copy) {
|
||||||
// our version string in to it at build time.
|
from "src/main/templates/about.html"
|
||||||
task filterAbout {
|
into "src/main/assets"
|
||||||
inputs.files files(["src/main/templates/about.html",
|
filter(ReplaceTokens, tokens: [
|
||||||
"src/main/AndroidManifest.xml"])
|
versionname: android.defaultConfig.versionName,
|
||||||
outputs.file "src/main/assets/about.html"
|
commit : "git rev-parse --short HEAD".execute().text,
|
||||||
|
year : new Date().format('yyyy')])
|
||||||
outputs.upToDateWhen { false }
|
outputs.upToDateWhen { false }
|
||||||
} doLast {
|
|
||||||
copy {
|
|
||||||
from "src/main/templates/about.html"
|
|
||||||
into "src/main/assets"
|
|
||||||
filter(ReplaceTokens, tokens: [versionname: android.defaultConfig.versionName,
|
|
||||||
commit : "git rev-parse --short HEAD".execute().text,
|
|
||||||
year : new Date().format('yyyy')])
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyTextFiles(type: Copy) {
|
task copyTextFiles(type: Copy) {
|
||||||
|
|
Loading…
Reference in New Issue