aboutsummaryrefslogtreecommitdiff
path: root/runners/android-gradle-plugin/src
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-06-23 16:42:23 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-06-23 16:42:23 +0300
commit1121071276ca2ce0afeabf4d3e540d4d8103f311 (patch)
tree6499cd796a09ce2f097b522224cc3e0d1a4c6764 /runners/android-gradle-plugin/src
parentcb6928f9b823c7fde746f17da4834431de452c83 (diff)
downloaddokka-1121071276ca2ce0afeabf4d3e540d4d8103f311.tar.gz
dokka-1121071276ca2ce0afeabf4d3e540d4d8103f311.tar.bz2
dokka-1121071276ca2ce0afeabf4d3e540d4d8103f311.zip
Suppress output of android.R and other generated stuff in dokka-android
Diffstat (limited to 'runners/android-gradle-plugin/src')
-rw-r--r--runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt
index f392f1ab..f2261120 100644
--- a/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt
+++ b/runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt
@@ -22,6 +22,11 @@ open class DokkaAndroidTask : DokkaTask() {
@Input var noAndroidSdkLink: Boolean = false
+ override fun collectSuppressedFiles(sourceRoots: List<SourceRoot>): List<String> {
+ val generatedSubpath = "${project.buildDir}/generated/source".replace("/", File.separator)
+ return sourceRoots.filter { generatedSubpath in it.path }.flatMap { File(it.path).walk().toList() }.map { it.absolutePath }
+ }
+
init {
project.afterEvaluate {
if (!noAndroidSdkLink) externalDocumentationLinks.add(ANDROID_REFERENCE_URL)