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

Update SimpleMarkdownParser

This commit is contained in:
Gregor Santner 2017-07-29 04:44:28 +02:00
parent 0e7ff63c9a
commit 99e369088a
No known key found for this signature in database
GPG key ID: 7E83A7834AECB009
10 changed files with 161 additions and 101 deletions

View file

@ -9,8 +9,8 @@ android {
minSdkVersion 17
targetSdkVersion 24
versionCode 20
versionName "1.0.0"
versionCode 21
versionName "1.0.1-dev"
applicationId "com.github.dfa.diaspora_android"
resValue 'string', 'app_name', "dandelion*"
@ -86,7 +86,7 @@ dependencies {
// Groovy Coding Area
// #####################
final String RAW_DIR = "app/src/main/res/raw"
final String[] ROOT_TO_RAW_COPYFILES = ["README.md", "LICENSE.md", "CHANGELOG.md", "CONTRIBUTORS.txt"]
final String[] ROOT_TO_RAW_COPYFILES = ["README.md", "LICENSE.md", "CHANGELOG.md", "CONTRIBUTORS.md"]
// Called before building
task copyRepoFiles(type: Copy) {
@ -97,16 +97,5 @@ task copyRepoFiles(type: Copy) {
rename { String fileName ->
fileName.replace(fileName, fileName.toLowerCase())
}
// Filter Contributors file
from(rootProject.file("CONTRIBUTORS.txt")) {
into '.' // Target already changed to '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().replaceAll(" \\(.*\\)", "")
}
}
}
tasks.copyRepoFiles.execute()