summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Anton Hansson <hansson@google.com> 2020-09-03 14:27:16 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-09-03 14:27:16 +0000
commitcf45e4ba22e096603e27f45d6d430842e969846a (patch)
treec6c8cac41b1333df1316e1c39cb9dd311e5cddf4
parentcf28ca3c739c7fd127aa70377704da494e4f4c83 (diff)
parentd7b4b5592342b56754a1e66ac2638a6a4ad28f4b (diff)
Merge "More default visibility for framework modules" am: 5b7010edc9 am: 4f8d9f32bd am: d7b4b55923
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418907 Change-Id: I8c41bce56e91224023191de20080c540c5a6caaa
-rw-r--r--apex/Android.bp19
1 files changed, 6 insertions, 13 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index 41561fe72c50..cf210e238bf9 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"],