Merge "More default visibility for framework modules" am: 5b7010edc9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418907
Change-Id: I121f7021c0c988a151fef74a4e730b098e2b3114
diff --git a/apex/Android.bp b/apex/Android.bp
index 41561fe..cf210e2 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -101,20 +101,13 @@
annotations_enabled: true,
- stubs_library_visibility: [
- "//visibility:public",
- ],
+ // Allow access to the stubs from anywhere
+ visibility: ["//visibility:public"],
+ 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",
-
- // 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"],