Repository navigation
Configure AndroidX Test API generation for annotations and - #2527
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
--ignore-comments.
Configure Metalava and Dackka in `androidx.test` to hide internal APIs
via annotations and package filters instead of `@hide` Javadoc tags,
and enable `--ignore-comments` on API signature generation.
- Annotate internal classes missing visibility annotations
(`ProcSummary`, `DefaultInterceptingActivityFactory`,
`InstrumentationParameterUtil`, `PortForwardingRule.Builder`, and
`TestOutputHandler`) so API surface checks hide them without relying
on `@hide` doc tags.
- Add `--ignore-comments` and `--hide-annotation` entries for
`androidx.annotation.RestrictTo` and `HideFromApi` in
`generate_api.bzl`, plus matching `hidingAnnotations` in `dackka.bzl`.
- Add `hide_packages` / `excluded_packages` support for
`androidx.test.services.storage` while its `@RestrictTo` annotations
remain stripped in internal builds, and remove `@hide` from those
storage classes.
- Update `espresso` and `monitor` `current_public.txt` signature files
for newly hidden `@RestrictTo(LIBRARY_GROUP)` AIDL interfaces and
`ExposedInstrumentationApi` superclass elision.
Using visibility annotations instead of `@hide` doc tags:
- Unlocks passing `--ignore-comments` on API signature generation,
improving build performance and memory usage by skipping Javadoc/KDoc
extraction, comment AST parsing, and `{@link}` import caching.
- Enables Metalava declarative `<api-surfaces>` XML configuration,
which ignores `@hide` and `@removed` Javadoc tags by design.
- Replaces unchecked Javadoc comments with compiler-, Lint-, and
IDE-enforced `@RestrictTo` visibility restrictions.
PiperOrigin-RevId: 1015474501
copybara-service
Bot
force-pushed
the
piper_1015474501
branch
from
November 6, 2026 13:57
97b24dd to
4487854
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configure AndroidX Test API generation for annotations and
--ignore-comments.
Configure Metalava and Dackka in
androidx.testto hide internal APIsvia annotations and package filters instead of
@hideJavadoc tags,and enable
--ignore-commentson API signature generation.(
ProcSummary,DefaultInterceptingActivityFactory,InstrumentationParameterUtil,PortForwardingRule.Builder, andTestOutputHandler) so API surface checks hide them without relyingon
@hidedoc tags.--ignore-commentsand--hide-annotationentries forandroidx.annotation.RestrictToandHideFromApiingenerate_api.bzl, plus matchinghidingAnnotationsindackka.bzl.hide_packages/excluded_packagessupport forandroidx.test.services.storagewhile its@RestrictToannotationsremain stripped in internal builds, and remove
@hidefrom thosestorage classes.
espressoandmonitorcurrent_public.txtsignature filesfor newly hidden
@RestrictTo(LIBRARY_GROUP)AIDL interfaces andExposedInstrumentationApisuperclass elision.Using visibility annotations instead of
@hidedoc tags:--ignore-commentson API signature generation,improving build performance and memory usage by skipping Javadoc/KDoc
extraction, comment AST parsing, and
{@link}import caching.<api-surfaces>XML configuration,which ignores
@hideand@removedJavadoc tags by design.IDE-enforced
@RestrictTovisibility restrictions.