Skip to content

Generating documentation for bindings to a kotlin library (KDoc/dokka). #10534

@LeadAssimilator

Description

@LeadAssimilator

Android framework version

net9.0-android

Affected platform version

.NET 9.0.304

Description

How is one supposed to generate documentation for bindings of android libraries written in kotlin? Am I missing something? Unless I'm blind, I didn't see anything related to kotlin in the docs.

Neither JavaSourceJar nor JavaDocJar appear to work.

I'm assuming that is because neither KDoc nor the javadoc format dokka produces (nor any other dokka output) is supported.

Steps to Reproduce

  1. Make an android library in Kotlin
  2. Add some documentation with KDoc comments to a class or function or somewhere
  3. Build the aar and either an androidSourcesJar or javadocJar with dokka
  4. Create a binding project
  5. Add item group entries for the AndroidLibrary to the aar and either JavaSourceJar or JavaDocJar to the corresponding jar.
  6. Set property group entries for GenerateDocumentationFile to true and AndroidJavadocVerbosity to full
  7. Build
  8. Observe no documentation in the output xml.

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssues that need to be assigned.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions