Create task for updating docs

This commit is contained in:
Kevin Gorham 2019-03-31 19:34:06 -04:00
parent afa142e1c9
commit 92a91c1e81
1 changed files with 18 additions and 0 deletions

View File

@ -109,4 +109,22 @@ tasks.register("copyLibArmeabi", Copy) {
}
tasks.register("copyAllJniLibs") {
dependsOn copyLibX86, copyLibArm64, copyLibArmeabi
}
tasks.register("updateDocs", Copy) {
dependsOn dokka
from("$buildDir/docs/zcash-android-wallet-sdk/cash.z.wallet.sdk.data/") {
include '-synchronizer/'
include '-sdk-synchronizer/'
include '-mock-synchronizer/'
include '-twig/'
rename 'index.md', 'README.md'
}
from("$buildDir/docs/zcash-android-wallet-sdk/cash.z.wallet.sdk.secure/") {
include '-wallet/'
rename 'index.md', 'README.md'
}
into "docs"
includeEmptyDirs = false
}