From 20426538f85098552f52dffb40d0f7ffff7946d4 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Mon, 19 Aug 2019 15:24:49 +0900 Subject: Cut the dependency to framework from droiddoc modules droiddoc modules for the SDK API documentation and stubs library generations have depended on the 'framework' (which was recently changed to framework-minus-apex' module to get the list of Java source files to be processed. This however caused a circular dependency when we tried to modularize some classes in the framework library as a separate library. The separate java library depended on the stubs library (because it should only use SDK APIs) and the stubs library depended on the framework library. The framework library itself depended on the separated library (or its stub) to use APIs from the separated library, thus forming a circular dependency. This change fixes the problem by directly giving the framework source files via a filegroup `framework-sources-to-document` where all Java and AIDL files that are to be documented are included in. This change also put the generated R.java and Manifest.java files from framework-res into the filegroup for framework sources. Bug: 70046217 Bug: 135922046 Test: m Change-Id: I09ad88da47540d31ad089aad5e1151a4b6877ec2 --- test-mock/Android.bp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test-mock') diff --git a/test-mock/Android.bp b/test-mock/Android.bp index 9a653cf7204c..34ac3dcc824f 100644 --- a/test-mock/Android.bp +++ b/test-mock/Android.bp @@ -19,14 +19,14 @@ java_sdk_library { name: "android.test.mock", - srcs: ["src/**/*.java"], + srcs: [ + "src/**/*.java", + ":framework-srcs", + ], api_packages: [ "android.test.mock", ], - - srcs_lib: "framework-minus-apex", - srcs_lib_whitelist_pkgs: ["android"], compile_dex: true, } -- cgit v1.2.3