Skip to content

Commit

Permalink
fix: publishing android artifact by disabling javadoc generation
Browse files Browse the repository at this point in the history
Since we moved the generated uniffi code into separate library (uniffi-android)
the Dokka javadoc generation fails with:

java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9

Since we haven't found a solution for this bug we are disabling javadoc generation
for the time being.
  • Loading branch information
typfel committed Jan 31, 2025
1 parent 229ce89 commit 68af2b3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion crypto-ffi/bindings/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.gradle.jvm.tasks.Jar
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary

plugins {
id("com.android.library")
kotlin("android")
id("com.vanniktech.maven.publish")
id("com.vanniktech.maven.publish.base")
}

val kotlinSources = projectDir.resolve("../jvm/src")
Expand Down Expand Up @@ -36,6 +37,15 @@ dependencies {
androidTestImplementation(libs.assertj.core)
}

mavenPublishing {
pomFromGradleProperties()
configure(AndroidSingleVariantLibrary(
variant = "release",
sourcesJar = true,
publishJavadocJar = false,
))
}

android {
namespace = "com.wire.crypto"

Expand Down

0 comments on commit 68af2b3

Please sign in to comment.