diff options
Diffstat (limited to 'runners/android-gradle-plugin/src/main')
-rw-r--r-- | runners/android-gradle-plugin/src/main/kotlin/mainAndroid.kt | 5 |
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) |