Skip to content
Snippets Groups Projects
Commit ab3f2d3a authored by Anton Hansson's avatar Anton Hansson Committed by Automerger Merge Worker
Browse files

Merge "Stop ignoring classes on the classpath for stubs" am: 61e082ab

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4bc055137068db530aa29c1797bb27ea8a93f539
parents 1cc2a1f6 61e082ab
No related branches found
No related tags found
No related merge requests found
...@@ -1268,7 +1268,6 @@ filegroup { ...@@ -1268,7 +1268,6 @@ filegroup {
// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp // TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
"--ignore-classes-on-classpath " +
"--hide-package com.android.server " + "--hide-package com.android.server " +
"--hide-package android.audio.policy.configuration.V7_0 " + "--hide-package android.audio.policy.configuration.V7_0 " +
"--error UnhiddenSystemApi " + "--error UnhiddenSystemApi " +
......
...@@ -91,7 +91,9 @@ droidstubs { ...@@ -91,7 +91,9 @@ droidstubs {
arg_files: [ arg_files: [
"core/res/AndroidManifest.xml", "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, write_sdk_values: true,
} }
...@@ -101,7 +103,10 @@ droidstubs { ...@@ -101,7 +103,10 @@ droidstubs {
arg_files: [ arg_files: [
"core/res/AndroidManifest.xml", "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, write_sdk_values: true,
} }
......
...@@ -50,7 +50,9 @@ stubs_defaults { ...@@ -50,7 +50,9 @@ stubs_defaults {
":art.module.public.api{.public.stubs.source}", ":art.module.public.api{.public.stubs.source}",
"**/package.html", "**/package.html",
], ],
sdk_version: "core_platform", sdk_version: "none",
system_modules: "none",
java_version: "1.8",
arg_files: ["core/res/AndroidManifest.xml"], arg_files: ["core/res/AndroidManifest.xml"],
// TODO(b/147699819): remove below aidl includes. // TODO(b/147699819): remove below aidl includes.
aidl: { aidl: {
...@@ -77,6 +79,7 @@ stubs_defaults { ...@@ -77,6 +79,7 @@ stubs_defaults {
"android.hardware.usb.gadget-V1.0-java", "android.hardware.usb.gadget-V1.0-java",
"android.hardware.vibrator-V1.3-java", "android.hardware.vibrator-V1.3-java",
"framework-protos", "framework-protos",
"stable.core.platform.api.stubs",
// There are a few classes from modules used as type arguments that // There are a few classes from modules used as type arguments that
// need to be resolved by metalava. For now, we can use a previously // need to be resolved by metalava. For now, we can use a previously
// finalized stub library to resolve them. If a new class gets added, // finalized stub library to resolve them. If a new class gets added,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment