mirror of
https://github.com/gsantner/dandelion
synced 2025-09-09 10:19:42 +02:00
Update SimpleMarkdownParser
This commit is contained in:
parent
0e7ff63c9a
commit
99e369088a
10 changed files with 161 additions and 101 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue