summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-04-14 16:35:36 +0100
committerAnton Hansson <hansson@google.com>2020-06-04 17:16:54 +0100
commitebb26a39a1d526323e5e241ddec4ffbcc711ef6d (patch)
tree6b24a7e8f60b135543f20c670d5c1050a80dbfb4
parentf7c1dc5a3ad9b84b045db5ec1b0abcc1ac66152e (diff)
Make non-updatable stubs depend on sdk 29
There are a few classes from modules referenced as type arguments in the non-updatable part of the API, which need to be resolved. The current dependencies that satisfy those references create dependency cycles when we change the big stubs to be assembled from other stubs. I considered two options for breaking that cycle: 1) depending on a previous SDK 2) add empty classes in a simple manual stub lib This CL does #1. #2 is more work, but may be required when/if we want to reference a newly-added API in the same release. Bug: 144149403 Bug: 149906971 Test: m Change-Id: I3c5e611ca45536bdd931291e663a21757e35992f Merged-In: I3c5e611ca45536bdd931291e663a21757e35992f (cherry picked from commit 394febc71bb37a6df748421d38e55dd28e1c2667)
-rw-r--r--StubLibraries.bp15
1 files changed, 13 insertions, 2 deletions
diff --git a/StubLibraries.bp b/StubLibraries.bp
index c80d1343cfb5..5c5dae614a6b 100644
--- a/StubLibraries.bp
+++ b/StubLibraries.bp
@@ -76,7 +76,18 @@ stubs_defaults {
name: "metalava-non-updatable-api-stubs-default",
defaults: ["metalava-base-api-stubs-default"],
sdk_version: "core_platform",
- libs: ["framework-all"],
+ // 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
+ // finalized stub library to resolve them. If a new class gets added,
+ // this may be need to be revisited to use a manually maintained stub
+ // library with empty classes in order to resolve those references.
+ libs: ["sdk_system_29_android"],
+ aidl: {
+ local_include_dirs: [
+ "media/apex/java",
+ "wifi/aidl-export",
+ ],
+ },
}
/////////////////////////////////////////////////////////////////////
@@ -286,7 +297,7 @@ java_library_static {
name: "android_module_lib_stubs_current",
srcs: [ ":module-lib-api-stubs-docs" ],
defaults: ["android_defaults_stubs_current"],
- libs: ["android_system_stubs_current"],
+ libs: ["sdk_system_29_android"],
}
/////////////////////////////////////////////////////////////////////