java_sdk_library: Specify visibility of stubs modules
Adds two new properties to specify the visibility of the stubs modules (source and library) created by the java_sdk_library. Excludes visibility property from being inherited when creating the module so it can be properly specified by copying across the relevant property. Test: m checkapi Bug: 155164730 Change-Id: Iffdd9f191ff0d74646356ac577560cc38efdd790
This commit is contained in:
@@ -989,6 +989,8 @@ func TestSnapshotWithJavaSdkLibrary(t *testing.T) {
|
||||
apex_available: ["//apex_available:anyapex"],
|
||||
srcs: ["Test.java"],
|
||||
sdk_version: "current",
|
||||
stubs_library_visibility: ["//other"],
|
||||
stubs_source_visibility: ["//another"],
|
||||
}
|
||||
`)
|
||||
|
||||
|
Reference in New Issue
Block a user