summaryrefslogtreecommitdiff
path: root/StubLibraries.bp
diff options
context:
space:
mode:
Diffstat (limited to 'StubLibraries.bp')
-rw-r--r--StubLibraries.bp85
1 files changed, 73 insertions, 12 deletions
diff --git a/StubLibraries.bp b/StubLibraries.bp
index 54f4937c11ca..45cd76b1cf75 100644
--- a/StubLibraries.bp
+++ b/StubLibraries.bp
@@ -51,6 +51,10 @@ stubs_defaults {
":android_icu4j_public_api_files",
"**/package.html",
],
+ // TODO(b/147699819): remove below aidl includes.
+ aidl: {
+ local_include_dirs: ["telephony/java"],
+ },
libs: ["framework-internal-utils"],
installable: false,
annotations_enabled: true,
@@ -82,12 +86,9 @@ stubs_defaults {
// 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"],
+ libs: ["sdk_system_30_android"],
aidl: {
- local_include_dirs: [
- "media/apex/java",
- "wifi/aidl-export",
- ],
+ local_include_dirs: ["apex/media/aidl/stable"],
},
}
@@ -113,7 +114,7 @@ droidstubs {
},
last_released: {
api_file: ":android.api.public.latest",
- removed_api_file: "api/removed.txt",
+ removed_api_file: ":removed.api.public.latest",
baseline_file: ":public-api-incompatibilities-with-last-released",
},
api_lint: {
@@ -140,6 +141,10 @@ droidstubs {
api_file: "non-updatable-api/current.txt",
removed_api_file: "non-updatable-api/removed.txt",
},
+ api_lint: {
+ enabled: true,
+ new_since: ":android-non-updatable.api.public.latest",
+ },
},
}
@@ -168,7 +173,7 @@ droidstubs {
},
last_released: {
api_file: ":android.api.system.latest",
- removed_api_file: "api/system-removed.txt",
+ removed_api_file: ":removed.api.system.latest",
baseline_file: ":system-api-incompatibilities-with-last-released"
},
api_lint: {
@@ -195,6 +200,11 @@ droidstubs {
api_file: "non-updatable-api/system-current.txt",
removed_api_file: "non-updatable-api/system-removed.txt",
},
+ api_lint: {
+ enabled: true,
+ new_since: ":android-non-updatable.api.system.latest",
+ baseline_file: "non-updatable-api/system-lint-baseline.txt",
+ },
},
}
@@ -249,7 +259,7 @@ droidstubs {
},
last_released: {
api_file: ":android.api.module-lib.latest",
- removed_api_file: "api/module-lib-removed.txt",
+ removed_api_file: ":removed.api.module-lib.latest",
baseline_file: ":module-lib-api-incompatibilities-with-last-released"
},
api_lint: {
@@ -275,6 +285,10 @@ droidstubs {
api_file: "non-updatable-api/module-lib-current.txt",
removed_api_file: "non-updatable-api/module-lib-removed.txt",
},
+ api_lint: {
+ enabled: true,
+ new_since: ":android-non-updatable.api.module-lib.latest",
+ },
},
}
@@ -298,8 +312,6 @@ java_defaults {
name: "android_defaults_stubs_current",
libs: [ "stub-annotations" ],
static_libs: [
- "private-stub-annotations-jar",
-
// License notices from art module
"art-notices-for-framework-stubs-jar",
],
@@ -315,20 +327,69 @@ java_defaults {
}
java_library_static {
- name: "android_stubs_current",
+ name: "android_monolith_stubs_current",
srcs: [ ":api-stubs-docs" ],
+ static_libs: [ "private-stub-annotations-jar" ],
defaults: ["android_defaults_stubs_current"],
}
java_library_static {
- name: "android_system_stubs_current",
+ name: "android_merged_stubs_current",
+ srcs: [ ":api-stubs-docs-non-updatable" ],
+ static_libs: [
+ "conscrypt.module.public.api.stubs",
+ "framework-media.stubs",
+ "framework-mediaprovider.stubs",
+ "framework-permission.stubs",
+ "framework-sdkextensions.stubs",
+ "framework-statsd.stubs",
+ "framework-tethering.stubs",
+ "framework-wifi.stubs",
+ "private-stub-annotations-jar",
+ ],
+ defaults: ["android_defaults_stubs_current"],
+}
+
+java_library_static {
+ name: "android_stubs_current",
+ static_libs: ["android_merged_stubs_current"],
+ defaults: ["android_defaults_stubs_current"],
+}
+
+java_library_static {
+ name: "android_system_monolith_stubs_current",
srcs: [ ":system-api-stubs-docs" ],
+ static_libs: [ "private-stub-annotations-jar" ],
+ defaults: ["android_defaults_stubs_current"],
+}
+
+java_library_static {
+ name: "android_system_merged_stubs_current",
+ srcs: [ ":system-api-stubs-docs-non-updatable" ],
+ static_libs: [
+ "conscrypt.module.public.api.stubs",
+ "framework-media.stubs.system",
+ "framework-mediaprovider.stubs.system",
+ "framework-permission.stubs.system",
+ "framework-sdkextensions.stubs.system",
+ "framework-statsd.stubs.system",
+ "framework-tethering.stubs.system",
+ "framework-wifi.stubs.system",
+ "private-stub-annotations-jar",
+ ],
+ defaults: ["android_defaults_stubs_current"],
+}
+
+java_library_static {
+ name: "android_system_stubs_current",
+ static_libs: ["android_system_merged_stubs_current"],
defaults: ["android_defaults_stubs_current"],
}
java_library_static {
name: "android_test_stubs_current",
srcs: [ ":test-api-stubs-docs" ],
+ static_libs: [ "private-stub-annotations-jar" ],
defaults: ["android_defaults_stubs_current"],
}