diff options
| author | 2023-11-07 12:09:07 +0000 | |
|---|---|---|
| committer | 2023-11-07 12:09:07 +0000 | |
| commit | 864bce3c0d668e4c881d4aa4b5ce22af3c8a25fe (patch) | |
| tree | c0d17223809e789533dbdace544ff3361b1ed5c9 | |
| parent | 22daeee1fae2d38179af79299c54c85e86f8dbae (diff) | |
| parent | f6dca2b9628b044f19a24dbeb1b4ec0ed5050929 (diff) | |
Merge "Share list of libs to depend on for APIs" into main am: 92ba7fca73 am: 1bff7958b4 am: f6dca2b962
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2817545
Change-Id: Ib259a5bda5c96e7c2a5e5c34654e1b4e1a9d2899
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | api/Android.bp | 24 | ||||
| -rw-r--r-- | api/StubLibraries.bp | 12 |
2 files changed, 12 insertions, 24 deletions
diff --git a/api/Android.bp b/api/Android.bp index de4435ebe4dd..4d56b3748881 100644 --- a/api/Android.bp +++ b/api/Android.bp @@ -334,6 +334,16 @@ stubs_defaults { visibility: ["//frameworks/base/api"], } +// We resolve dependencies on APIs in modules by depending on a prebuilt of the whole +// platform (sdk_system_current_android). That prebuilt does not include module-lib APIs, +// so use the prebuilt module-lib stubs for modules that export module-lib stubs that the +// non-updatable part depends on. +non_updatable_api_deps_on_modules = [ + "sdk_module-lib_current_framework-tethering", + "sdk_module-lib_current_framework-connectivity-t", + "sdk_system_current_android", +] + // Defaults with module APIs in the classpath (mostly from prebuilts). // Suitable for compiling android-non-updatable. stubs_defaults { @@ -345,19 +355,7 @@ stubs_defaults { "packages/modules/Media/apex/aidl/stable", ], }, - libs: [ - "art.module.public.api", - "sdk_module-lib_current_framework-tethering", - "sdk_module-lib_current_framework-connectivity-t", - "sdk_public_current_framework-bluetooth", - // 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, - // the prebuilts/sdk/current needs to be updated. - "sdk_system_current_android", - // NOTE: The below can be removed once the prebuilt stub contains IKE. - "sdk_system_current_android.net.ipsec.ike", - ], + libs: non_updatable_api_deps_on_modules, } // Defaults for the java_sdk_libraries of unbundled jars from framework. diff --git a/api/StubLibraries.bp b/api/StubLibraries.bp index 5688b968db87..f6f69291ce0e 100644 --- a/api/StubLibraries.bp +++ b/api/StubLibraries.bp @@ -351,17 +351,7 @@ java_library { "android-non-updatable_from_source_defaults", ], srcs: [":module-lib-api-stubs-docs-non-updatable"], - libs: [ - // We cannot depend on all-modules-module-lib-stubs, because the module-lib stubs - // depend on this stub. We resolve dependencies on APIs in modules by depending - // on a prebuilt of the whole platform (sdk_system_current_android). - // That prebuilt does not include module-lib APIs, so use the prebuilt module-lib - // stubs for modules that export module-lib stubs that the non-updatable part - // depends on. - "sdk_module-lib_current_framework-tethering", - "sdk_module-lib_current_framework-connectivity-t", - "sdk_system_current_android", - ], + libs: non_updatable_api_deps_on_modules, dist: { dir: "apistubs/android/module-lib", }, |