From 2e25fdc90f3da2fbf7df9378fe60b51b4f184b7c Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Mon, 10 May 2021 12:40:05 +0100 Subject: Use filegroups for test-{base,mock,runner} srcs This allows soong to infer the package of the given srcs, which in turns make it able to filter the inputs to metalava to exclude unwanted packages. This is part of a larger topic of changes intended to remove undesired classes from the public documentation. Bug: 187386774 Test: m Change-Id: I8196c306b743ce6ca8a6452d212f3d7c0b5b2b82 --- test-mock/Android.bp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test-mock') diff --git a/test-mock/Android.bp b/test-mock/Android.bp index b83bce654a85..107292c81ab4 100644 --- a/test-mock/Android.bp +++ b/test-mock/Android.bp @@ -29,7 +29,7 @@ java_sdk_library { name: "android.test.mock", srcs: [ - "src/**/*.java", + ":android-test-mock-sources", // Note: Below are NOT APIs of this library. We only take APIs under // the android.test.mock package. They however provide private APIs that // android.test.mock APIs references to. @@ -61,3 +61,9 @@ filegroup { "api/current.txt", ], } + +filegroup { + name: "android-test-mock-sources", + srcs: ["src/**/*.java"], + path: "src", +} -- cgit v1.2.3-59-g8ed1b