summaryrefslogtreecommitdiff
path: root/ApiDocs.bp
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-12-17 14:56:06 +0000
committerAnton Hansson <hansson@google.com>2020-12-21 10:46:53 +0000
commit121ccbcfee783d36be1171331d0b00d58b172f34 (patch)
treefefbf0ff102a4a7a3366c21868b863ff3eb7b411 /ApiDocs.bp
parent96db3dad2a4a1c4f1622a2b268b347cda0e808db (diff)
Stop ignoring classes on the classpath for stubs
We're working on moving the libcore classes away from srcs and into the classpath, and ignoring classes on the classpath will cause incorrect API signatures once that happens (several libcore classes appear in public API signatures). Keep the docs building in the same way they were before. They will be addressed in separate CLs. Bug: 173606718 Test: m checkapi Change-Id: I471327c3657662d7a093e9baa2fb6e08d640f895
Diffstat (limited to 'ApiDocs.bp')
-rw-r--r--ApiDocs.bp9
1 files changed, 7 insertions, 2 deletions
diff --git a/ApiDocs.bp b/ApiDocs.bp
index ba93a489fd5a..ada80bbc9874 100644
--- a/ApiDocs.bp
+++ b/ApiDocs.bp
@@ -91,7 +91,9 @@ droidstubs {
arg_files: [
"core/res/AndroidManifest.xml",
],
- args: metalava_framework_docs_args,
+ args: metalava_framework_docs_args +
+ // Needed for hidden libcore annotations for now.
+ " --ignore-classes-on-classpath ",
write_sdk_values: true,
}
@@ -101,7 +103,10 @@ droidstubs {
arg_files: [
"core/res/AndroidManifest.xml",
],
- args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\) ",
+ args: metalava_framework_docs_args +
+ // Needed for hidden libcore annotations for now.
+ " --ignore-classes-on-classpath " +
+ " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\) ",
write_sdk_values: true,
}