From 4911a89181dd1a22bf8703107e7395e6f1c0dd3f Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 29 Apr 2020 23:35:13 +0100 Subject: 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 --- sdk/java_sdk_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sdk/java_sdk_test.go') diff --git a/sdk/java_sdk_test.go b/sdk/java_sdk_test.go index 6173510cd..560a6b856 100644 --- a/sdk/java_sdk_test.go +++ b/sdk/java_sdk_test.go @@ -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"], } `) -- cgit v1.2.3