summaryrefslogtreecommitdiff
path: root/rust/binary.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2023-09-20 00:54:47 +0000
committer Jihoon Kang <jihoonkang@google.com> 2023-09-26 22:46:05 +0000
commitd91a8e806a832eb3d97862b9baf3fec24485a64a (patch)
tree630555ab5c9b1642995c67028114e200eca437c3 /rust/binary.go
parent03f1aa064a5c920465f6bce819db637c1914ad23 (diff)
Add flagged api hide conditional to droidstubs
APIs annotated with @FlaggedApi should not be included in the artifact when building sdk target products in the "next" release configuration. This change adds such logic by passing additional flag to metalava in droidstubs. The flag does not need to be passed to metalava invocation done in java_api_library, as java_api_library generates stubs using api signature files (i.e. *-current.txt files), and they will not contain apis marked @FlaggedApi. The metalava invocation in droidstubs is responsible for removing such apis. Test: go test ./java && m TARGET_PRODUCT=sdk TESTING_TARGET_RELEASE_NEXT=true nothing and inspect ninja command for generating stubs and verify the flag is included Bug: 299570421 Change-Id: Ia4b699b6e3ff6324f050eecc9ff5b622fdc04621
Diffstat (limited to 'rust/binary.go')
0 files changed, 0 insertions, 0 deletions