diff options
| author | 2020-09-03 15:18:20 +0000 | |
|---|---|---|
| committer | 2020-09-03 15:18:20 +0000 | |
| commit | 9dff9d114b8d5ecd15c3b73c3736040ab6176bdb (patch) | |
| tree | c9ef8d72b4bea2b6a1d79039191ec204e063f61c | |
| parent | 15b6144bd46327b4ef9f21d52ea48ee3fcfa54b0 (diff) | |
| parent | 9e6cd27e8d730376156995235f1543154de73f56 (diff) | |
Merge "More default visibility for framework modules" am: 5b7010edc9 am: 4f8d9f32bd am: d7b4b55923 am: cf45e4ba22 am: 9e6cd27e8d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418907
Change-Id: I53cf82b508d21d4d48a35e92528a564143217cd2
| -rw-r--r-- | apex/Android.bp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/apex/Android.bp b/apex/Android.bp index 410e21141f86..d6d3c27dcd6b 100644 --- a/apex/Android.bp +++ b/apex/Android.bp @@ -101,20 +101,13 @@ java_defaults { annotations_enabled: true, - stubs_library_visibility: [ - "//visibility:public", - ], - - // Set the visibility of the modules creating the stubs source. - stubs_source_visibility: [ - // Ignore any visibility rules specified on the java_sdk_library when - // setting the visibility of the stubs source modules. - "//visibility:override", + // Allow access to the stubs from anywhere + visibility: ["//visibility:public"], + stubs_library_visibility: ["//visibility:public"], - // Currently, the stub source is not required for anything other than building - // the stubs library so is private to avoid misuse. - "//visibility:private", - ], + // Hide impl library and stub sources + impl_library_visibility: [":__package__"], + stubs_source_visibility: ["//visibility:private"], // Collates API usages from each module for further analysis. plugins: ["java_api_finder"], |