Skip to content

Commit d740c0a

Browse files
Fixed release publishing failing to build the javadoc jar
AGP generates the published javadoc with Dokka 1.4.32, which cannot read the sealed classes in livekit-uniffi-android and fails with "PermittedSubclasses requires ASM9". Disabled AGP's javadoc generation and packaged the javadoc jar from the project's Dokka 1.9.20 dokkaJavadoc task instead.
1 parent 12433f2 commit d740c0a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎livekit-android-sdk/build.gradle‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ dokkaHtml {
113113
}
114114
}
115115

116+
// AGP generates the published javadoc with Dokka 1.4.32, which fails to read the sealed classes
117+
// in livekit-uniffi-android ("PermittedSubclasses requires ASM9"). Package the javadoc jar from
118+
// this project's Dokka instead.
119+
tasks.withType(com.android.build.gradle.tasks.JavaDocGenerationTask).configureEach {
120+
enabled = false
121+
}
122+
tasks.withType(com.android.build.gradle.tasks.JavaDocJarTask).configureEach {
123+
from(tasks.named("dokkaJavadoc"))
124+
}
125+
116126
dependencies {
117127
//api fileTree(dir: 'libs', include: ['*.jar'])
118128
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

0 commit comments

Comments
 (0)