diff options
author | Jihoon Kang <jihoonkang@google.com> | 2024-02-06 00:09:38 +0000 |
---|---|---|
committer | Jihoon Kang <jihoonkang@google.com> | 2024-02-06 00:09:38 +0000 |
commit | f1f72ca1b3894045616c2dd1a16bb73ac60d86c8 (patch) | |
tree | 708a75b9a90bcc5a43ed0584235a58fb2f9cc47f /api | |
parent | ed2395aa096a06af174f8224842ae44fb2601305 (diff) | |
download | base-f1f72ca1b3894045616c2dd1a16bb73ac60d86c8.tar.gz |
Generate frameworks-base-api-current.srcjar from exportable stubs
frameworks-base-api-current.srcjar is used to generate the stubs srcjar
file in dist directory during the sdk builds. Given that the sdk build
artifacts should depend on the exportable stubs instead of the
everything stubs, the src of this module should also be replaced with
the exportable stubs from the everything stubs.
Given that the only usage of this module is the stubs srcjar generation
during the sdk builds, the source of this module can be safely replaced
with the exportable stubs instead of creating a new module.
Test: patch in git_main, lunch aosp_arm-ap31-eng && m sdk dist and inspect ninja query to verify that android-stubs-src.jar does not depend on the everything stubs
Bug: 323261972
Change-Id: If37aa6ef862c69619768f91f2360b37459fd3cdb
Diffstat (limited to 'api')
-rw-r--r-- | api/Android.bp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/Android.bp b/api/Android.bp index 7fb427eb715a..515d31204122 100644 --- a/api/Android.bp +++ b/api/Android.bp @@ -208,7 +208,7 @@ genrule { out: ["current.srcjar"], cmd: "$(location merge_zips) $(out) $(in)", srcs: [ - ":api-stubs-docs-non-updatable", + ":api-stubs-docs-non-updatable{.exportable}", ":all-modules-public-stubs-source", ], visibility: ["//visibility:private"], // Used by make module in //development, mind |