Limit visibility of robolectric modules am: 130819624d am: 9ac9638dc0 am: d919114006
Original change: https://android-review.googlesource.com/c/platform/external/robolectric-shadows/+/1367133
Change-Id: I34d568877cac64bc15ddbcb8f451ba7bd24888eb
diff --git a/Android.bp b/Android.bp
index f8db47b..36b5ecf 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ default_visibility: [":__subpackages__"],
+}
+
java_library {
name: "robolectric_android-all-stub",
@@ -46,7 +50,8 @@
"win_sdk",
],
dest: "android-all-robolectric.jar",
- }
+ },
+ visibility: ["//visibility:public"],
}
// build.prop file created by module type defined in soong/robolectric.go
@@ -137,6 +142,7 @@
java_host_for_device {
name: "Robolectric_all-target",
libs: ["Robolectric_all"],
+ visibility: ["//visibility:public"],
}
// Make dependencies available as host jars