summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2021-05-07 16:32:10 +0100
committerAnton Hansson <hansson@google.com>2021-05-10 10:28:02 +0100
commit4e86dcad1206e7246cef805d6251c8e4ead7a4b7 (patch)
tree2c6803fcd2b16917c63156ad52c361eed666ccf9 /Android.bp
parentc7f5e7d4397050430aef255b876e9c15a91ddb70 (diff)
Inline two constants from CorePlatform
Inlining these constants allow the public api metalava run to depend on ART's public API rather than the "internal" CorePlatform API, which prevents picking up unintentional classes (such as annotations) from the CorePlatform API in the public stubs. Because these constants get inlined in the API/stubs, and the constants have been finalized for many years, they can never change. Because they cannot change, reusing the constant is of limited value. I've added some comments to point readers to other places the constant is used. Bug: 154796679 Test: m checkapi Change-Id: I0b347a2964cfe5a1206145fdc56934727b890469
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 2ee97b0de816..183c1e5c3d32 100644
--- a/Android.bp
+++ b/Android.bp
@@ -522,7 +522,7 @@ stubs_defaults {
"android.hardware.usb.gadget-V1.0-java",
"android.hardware.vibrator-V1.3-java",
"framework-protos",
- "stable.core.platform.api.stubs",
+ "art.module.public.api",
// There are a few classes from modules used by the core that
// need to be resolved by metalava. We use a prebuilt stub of the
// full sdk to ensure we can resolve them. If a new class gets added,