Skip to content

Commit a6dae0c

Browse files
committed
Fixes
1 parent 7345f9b commit a6dae0c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

plugins/src/main/java/com/google/firebase/gradle/plugins/DackkaGenerationTask.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,8 @@ constructor(private val workerExecutor: WorkerExecutor) : GenerateDocumentationT
121121
"java.lang.Override",
122122
)
123123
val annotationsNotToDisplayKotlin = listOf("kotlin.ExtensionFunctionType")
124-
var javadoc: String? = "android"
125-
if (kotlindocOnly.get()) {
126-
// A null path disables javadoc generation
127-
javadoc = null
128-
}
124+
// A null path disables javadoc generation
125+
val javadoc: String? = "android".takeUnless { kotlindocOnly.get() }
129126
val jsonMap =
130127
mapOf(
131128
"moduleName" to "",

plugins/src/main/java/com/google/firebase/gradle/plugins/FirebaseLibraryExtension.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ constructor(val project: Project, val type: LibraryType) {
7272
/**
7373
* Only publish Kotlindocs instead of also publishing Javadocs for this library.
7474
*
75+
* This property is only effective when `publishJavadoc` is `true`.
76+
*
7577
* Defaults to `false`.
7678
*
7779
* ```sh

0 commit comments

Comments
 (0)