Merge "Keep only the classes in the android.test.mock package" am: 70a0869f49 am: 90e0a894eb

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1824624

Change-Id: I14a92149400bfc35b8b8f5be0f1cdcc6e2818652
This commit is contained in:
Treehugger Robot
2021-09-17 04:44:26 +00:00
committed by Automerger Merge Worker
2 changed files with 18 additions and 1 deletions

View File

@@ -32,7 +32,9 @@ java_sdk_library {
":android-test-mock-sources", ":android-test-mock-sources",
// Note: Below are NOT APIs of this library. We only take APIs under // Note: Below are NOT APIs of this library. We only take APIs under
// the android.test.mock package. They however provide private APIs that // the android.test.mock package. They however provide private APIs that
// android.test.mock APIs references to. // android.test.mock APIs references to. We need to have the classes in
// source code form to have access to the @hide comment which disappears
// when the classes are compiled into a Jar library.
":framework-core-sources-for-test-mock", ":framework-core-sources-for-test-mock",
":framework_native_aidl", ":framework_native_aidl",
], ],
@@ -46,6 +48,14 @@ java_sdk_library {
api_packages: [ api_packages: [
"android.test.mock", "android.test.mock",
], ],
// Only include android.test.mock.* classes. Jarjar rules below removes
// classes in other packages like android.content. In order to keep the
// list up-to-date, permitted_packages ensures that the library contains
// clases under android.test.mock after the jarjar rules are applied.
jarjar_rules: "jarjar-rules.txt",
permitted_packages: [
"android.test.mock",
],
compile_dex: true, compile_dex: true,
default_to_stubs: true, default_to_stubs: true,
dist_group: "android", dist_group: "android",

View File

@@ -0,0 +1,7 @@
zap android.accounts.**
zap android.app.**
zap android.content.**
zap android.database.**
zap android.os.**
zap android.util.**
zap android.view.**