Skip to content

:ReactAndroid:androidJavadoc Gradle Task Fails Due to Excluding ReactBuildConfig #30415

@NickGerleman

Description

@NickGerleman

As part of the publish process, we indirectly run the androidJavadoc task in https://github.com/facebook/react-native/blob/master/ReactAndroid/release.gradle. This task specifically excludes the ReactBuildConfig class. seemingly because it is dependent on build-time sources (see

exclude("**/ReactBuildConfig.java")
). It does not seem like the gradle task ensures these sources are built.

e41ee42 added an import ReactBuildConfig which causes the task to fail with the following error:

error: cannot find symbol

  symbol:   variable ReactBuildConfig
  location: class ReactEditText
1 error
100 warnings

This blocks the ability to publish a new npm package.

A quick fix is to also exclude ReactEditText from Javadoc generation, but we should ideally fixup the task to import the build-time class to avoid usages of the class breaking doc generation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions