diff options
author | Anton Hansson <hansson@google.com> | 2020-08-18 12:52:51 +0100 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2020-09-07 07:54:50 +0000 |
commit | 46c47efca2f86ec6281e44ee75ead9c5e6e93479 (patch) | |
tree | 440e1632a769b281afdee0445bf83f519d57320e /apex/media | |
parent | 94fbf790d7e626667fb01ecf80c643ac08934cb9 (diff) |
Simplify module visibility post build refactor
//visibility:override is no longer needed for impl_library_visibility
to override visibility.
Removing this allows the defaults module to specify better defaults.
- Stub libraries are made publicly visible, via `visibility`
- Impl libraries are private by default, but visibility is extended
by the modules
Bug: 165017290
Test: m
Exempt-From-Owner-Approval: build refactor
Change-Id: Ibf35bfac5c99a21125f89ba10945f3364217b90f
Diffstat (limited to 'apex/media')
-rw-r--r-- | apex/media/framework/Android.bp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/apex/media/framework/Android.bp b/apex/media/framework/Android.bp index 4417b681efc3..ce4b030467a7 100644 --- a/apex/media/framework/Android.bp +++ b/apex/media/framework/Android.bp @@ -44,7 +44,6 @@ java_library { plugins: ["java_api_finder"], hostdex: true, // for hiddenapi check - visibility: ["//frameworks/av/apex:__subpackages__"], apex_available: [ "com.android.media", "test_com.android.media", @@ -83,7 +82,7 @@ filegroup { "java/android/media/MediaParser.java" ], path: "java", -} +} java_sdk_library { name: "framework-media", @@ -99,15 +98,7 @@ java_sdk_library { libs: [ "framework_media_annotation", ], - - // Allow access to the stubs from anywhere. - visibility: ["//visibility:public"], - - // Restrict access to implementation library. - impl_library_visibility: [ - "//visibility:override", // Ignore the visibility property. - "//frameworks/av/apex:__subpackages__", - ], + impl_library_visibility: ["//frameworks/av/apex:__subpackages__"], } |