From 46c47efca2f86ec6281e44ee75ead9c5e6e93479 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Tue, 18 Aug 2020 12:52:51 +0100 Subject: 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 --- wifi/Android.bp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'wifi') diff --git a/wifi/Android.bp b/wifi/Android.bp index 02616aff2a3f..1cc5073c5f71 100644 --- a/wifi/Android.bp +++ b/wifi/Android.bp @@ -130,12 +130,8 @@ java_sdk_library { }, hostdex: true, // for hiddenapi check - // 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/opt/net/wifi/service:__subpackages__", ] + test_access_hidden_api_whitelist, -- cgit v1.2.3