diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-10-04 10:54:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 10:54:40 +0200 |
commit | e19b6e81e2d0c240d5c65ca100d7be5d25f18151 (patch) | |
tree | 0ada906cc14555f6107b1d206040b454ab47935b /app | |
parent | 5e31ecb253a97f5d4abdd46163c527cc6841279b (diff) | |
parent | 073ddced41b92d619d74b35d86731c5c4fb8a393 (diff) | |
download | AntennaPod-e19b6e81e2d0c240d5c65ca100d7be5d25f18151.zip |
Merge pull request #3490 from ByteHamster/fix-about-screen-update
Fix about screen update
Diffstat (limited to 'app')
-rw-r--r-- | app/build.gradle | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/app/build.gradle b/app/build.gradle index 0fdfd153e..34a384f88 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -189,20 +189,14 @@ if (project.hasProperty("antennaPodServiceAccountEmail")) { } } -// about.html is templatized so that we can automatically insert -// our version string in to it at build time. -task filterAbout { - inputs.files files(["src/main/templates/about.html", - "src/main/AndroidManifest.xml"]) - outputs.file "src/main/assets/about.html" -} 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 filterAbout(type: 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')]) + outputs.upToDateWhen { false } } task copyTextFiles(type: Copy) { @@ -212,6 +206,7 @@ task copyTextFiles(type: Copy) { rename { String fileName -> fileName + ".txt" } + outputs.upToDateWhen { false } } preBuild.dependsOn filterAbout, copyTextFiles |