Add framework-virtualization to combined_apis
In order to integrate framework-virtualization into combined_apis we
need to enable module_lib API surface, and add framework-module-defaults
which provides us with configuration that combined_apis depended on
(e.g. droiddoc, annotations)
Additionally, to prevent circular dependencies the java backends in
virtualization service aidls are now compiling against module_current.
Bug: 243512044
Test: builds
Change-Id: Ie089602cd139416e468869241b5c078cba826711
diff --git a/javalib/Android.bp b/javalib/Android.bp
index 1d89059..04ed273 100644
--- a/javalib/Android.bp
+++ b/javalib/Android.bp
@@ -15,9 +15,13 @@
installable: false,
compile_dex: true,
+ // TODO(b/243512044): introduce non-updatable-framework-module-defaults
+
+ defaults: ["framework-module-defaults"],
+
shared_library: false,
- // TODO(b/243512044): use framework-module-defaults
+ default_to_stubs: false,
dist_group: "android",
@@ -46,6 +50,35 @@
],
},
+ public: {
+ enabled: true,
+ sdk_version: "module_current",
+ },
+
+ system: {
+ enabled: true,
+ sdk_version: "module_current",
+ },
+
+ module_lib: {
+ enabled: true,
+ sdk_version: "module_current",
+ },
+
+ test: {
+ enabled: true,
+ sdk_version: "module_current",
+ },
+
+ sdk_version: "core_platform",
+ platform_apis: true,
+ impl_only_libs: [
+ "framework",
+ ],
+ impl_library_visibility: [
+ "//frameworks/base",
+ ],
+
// Temporary workaround, will be removed in a follow-up child cl.
unsafe_ignore_missing_latest_api: true,
}