1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2025-09-09 10:19:42 +02:00

Copy & filter repo files into android app resources

This commit is contained in:
Gregor Santner 2016-08-27 15:17:02 +02:00
parent 8ae74d97d4
commit 89ee0450e9
4 changed files with 33 additions and 10 deletions

View file

@ -49,5 +49,18 @@ dependencies {
compile 'info.guardianproject.netcipher:netcipher:2.0.0-alpha1'
compile 'info.guardianproject.netcipher:netcipher-webkit:2.0.0-alpha1'
apt 'com.jakewharton:butterknife-compiler:8.0.1'
}
task copyRepoFiles(type: Copy) {
String[] copyFiles = ["README.md", "CONTRIBUTORS.md", "LICENSE.md", "CHANGELOG.md"]
from rootProject.files(copyFiles)
into 'src/main/res/raw'
rename { String fileName ->
fileName.replace(fileName, fileName.toLowerCase())
}
filter { line -> (line.toString().matches("..l>>.*") || line.toString().startsWith("## 99l CONTRIBUTORS")) \
? null : line.toString().trim()
}
}
tasks.copyRepoFiles.execute()