From ae9972bda40fff4b0f67dc31d95e740a6973db72 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Sun, 15 Sep 2019 20:19:02 +0900 Subject: Use filter_packages to unbunden metalava This change fixes a problem that entire framework source files are given to metalava even when many of the source files are not for public. Using the new property filter_packages, only source files that belongs to the public packages are given to metalava. This CL also changes the name of the filegroup 'framework-srcs' to 'framework-non-updatable-sources' to better describe its contents. In addition, a build-time only library 'framework-all' is introduced. This library produces a header jar for all framework sources for both non-updatable and updatable parts. It is put to the classpath when invoking metalava to give information on the hidden classes that were filtered-out. Bug: 140764681 Test: m Change-Id: I6e16679109ac07820e35037754d4327442c014f2 --- test-mock/Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-mock') diff --git a/test-mock/Android.bp b/test-mock/Android.bp index 34ac3dcc824f..adc9e2251c0b 100644 --- a/test-mock/Android.bp +++ b/test-mock/Android.bp @@ -21,7 +21,7 @@ java_sdk_library { srcs: [ "src/**/*.java", - ":framework-srcs", + ":framework-all-sources", ], api_packages: [ -- cgit v1.2.3