summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Anton Hansson <hansson@google.com> 2020-03-31 11:41:58 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-03-31 11:41:58 +0000
commit9b193780e316a484ada39d0dca82eece6e6921d1 (patch)
treee29223da5b6ed68dfaef49472a76f524722533d0
parenta22e6809429e72751b33e288fbf8d08c7c7b6e18 (diff)
parent087646e97d53d84f18ca3a061a885259a5febfb5 (diff)
Merge "Limit framework module api packages"
-rw-r--r--apex/Android.bp18
1 files changed, 18 insertions, 0 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index d31258f3d11e..8ff790168436 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -26,6 +26,20 @@ mainline_stubs_args =
"--hide Typo " +
"--hide UnavailableSymbol "
+// TODO: modularize this so not every module has the same whitelist
+framework_packages_to_document = [
+ "android",
+ "dalvik",
+ "java",
+ "javax",
+ "junit",
+ "org.apache.http",
+ "org.json",
+ "org.w3c.dom",
+ "org.xml.sax",
+ "org.xmlpull",
+]
+
// TODO: remove the hiding when server classes are cleaned up.
mainline_framework_stubs_args =
mainline_stubs_args +
@@ -54,6 +68,7 @@ stubs_defaults {
args: mainline_framework_stubs_args,
installable: false,
sdk_version: "current",
+ filter_packages: framework_packages_to_document,
check_api: {
current: {
api_file: "api/current.txt",
@@ -68,6 +83,7 @@ stubs_defaults {
libs: ["framework-annotations-lib"],
installable: false,
sdk_version: "system_current",
+ filter_packages: framework_packages_to_document,
check_api: {
current: {
api_file: "api/system-current.txt",
@@ -105,6 +121,7 @@ stubs_defaults {
libs: ["framework-annotations-lib"],
installable: false,
sdk_version: "module_current",
+ filter_packages: framework_packages_to_document,
check_api: {
current: {
api_file: "api/module-lib-current.txt",
@@ -119,6 +136,7 @@ stubs_defaults {
libs: ["framework-annotations-lib"],
installable: false,
sdk_version: "module_current",
+ filter_packages: framework_packages_to_document,
}
stubs_defaults {