diff options
| author | 2023-10-12 17:38:48 +0000 | |
|---|---|---|
| committer | 2023-10-12 17:38:48 +0000 | |
| commit | 1385c1701d1b57fd93a966f28bbd6a3075d8ff93 (patch) | |
| tree | 48f0bee57759618f62377004db2638c0548c47cc /api/StubLibraries.bp | |
| parent | 5cf090c1c8414cfbc389c14777fe1fce32fe2445 (diff) | |
| parent | d135292fb3cc0a531decd9b3b2c0f00f31e35772 (diff) | |
Merge "Add module lib and test union java_api_library module" into main am: d135292fb3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2775453
Change-Id: I2e987f35dcbd190db7171a9ba6e5cace06a08607
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'api/StubLibraries.bp')
| -rw-r--r-- | api/StubLibraries.bp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/api/StubLibraries.bp b/api/StubLibraries.bp index 857077d60a5d..79efaced998a 100644 --- a/api/StubLibraries.bp +++ b/api/StubLibraries.bp @@ -436,6 +436,26 @@ java_api_library { full_api_surface_stub: "android_module_lib_stubs_current_full.from-text", } +// This module generates a stub jar that is a union of the test and module lib +// non-updatable api contributions. Modules should not depend on the stub jar +// generated from this module, as this module is strictly used for hiddenapi only. +java_api_library { + name: "android-non-updatable.stubs.test_module_lib", + api_surface: "module_lib", + api_contributions: [ + "api-stubs-docs-non-updatable.api.contribution", + "system-api-stubs-docs-non-updatable.api.contribution", + "test-api-stubs-docs-non-updatable.api.contribution", + "module-lib-api-stubs-docs-non-updatable.api.contribution", + ], + defaults: ["android-non-updatable_from_text_defaults"], + full_api_surface_stub: "android_test_module_lib_stubs_current.from-text", + + // This module is only used for hiddenapi, and other modules should not + // depend on this module. + visibility: ["//visibility:private"], +} + java_defaults { name: "android_stubs_dists_default", dist: { @@ -739,6 +759,30 @@ java_api_library { } java_api_library { + name: "android_test_module_lib_stubs_current.from-text", + api_surface: "module-lib", + defaults: [ + "android_stubs_current_contributions", + "android_system_stubs_current_contributions", + "android_test_stubs_current_contributions", + "android_module_lib_stubs_current_contributions", + ], + libs: [ + "android_module_lib_stubs_current_full.from-text", + "stub-annotations", + ], + api_contributions: [ + "test-api-stubs-docs-non-updatable.api.contribution", + ], + + // This module is only used to build android-non-updatable.stubs.test_module_lib + // and other modules should not depend on this module. + visibility: [ + "//visibility:private", + ], +} + +java_api_library { name: "android_system_server_stubs_current.from-text", api_surface: "system-server", api_contributions: [ |