summaryrefslogtreecommitdiff
path: root/apex/Android.bp
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-06-02 17:48:57 +0100
committerAnton Hansson <hansson@google.com>2020-09-02 12:10:15 +0100
commit0a6553cc6fa8b8ef433106fd1c3bfcbfbd6d02cd (patch)
treef3860d1c3de6d53a79279ff6fedb03fee4a6ab62 /apex/Android.bp
parentdb43d8f3ab407202af8e657ecd0cbbd4f73716c4 (diff)
Switch service-permissions to java_sdk_library
(partial cherry-pick) Previously, the droidstubs generated the system-server API into the current.txt and removed.txt files which are usually associated with the public API surface. This change moves that specification into the system-server....txt files and verifies that no public APIs are leaking into the stubs. Bug: 155164730 Test: m java Merged-In: I907533c36dcb6c0ef679b0098d497d88476d8b95 Change-Id: I907533c36dcb6c0ef679b0098d497d88476d8b95
Diffstat (limited to 'apex/Android.bp')
-rw-r--r--apex/Android.bp38
1 files changed, 28 insertions, 10 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index 388b24a4d5f5..6eaf89c58965 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -66,9 +66,9 @@ mainline_service_stubs_args =
"--hide-annotation android.annotation.Hide " +
"--hide InternalClasses " // com.android.* classes are okay in this interface
-// Defaults for mainline module provided java_sdk_library instances.
+// Defaults common to all mainline module java_sdk_library instances.
java_defaults {
- name: "framework-module-defaults",
+ name: "framework-module-common-defaults",
// Additional annotations used for compiling both the implementation and the
// stubs libraries.
@@ -95,14 +95,6 @@ java_defaults {
enabled: true,
sdk_version: "module_current",
},
- system: {
- enabled: true,
- sdk_version: "module_current",
- },
- module_lib: {
- enabled: true,
- sdk_version: "module_current",
- },
// Configure framework module specific metalava options.
droiddoc_options: [mainline_stubs_args],
@@ -132,6 +124,32 @@ java_defaults {
sdk_version: "module_current",
}
+// Defaults for mainline module provided java_sdk_library instances.
+java_defaults {
+ name: "framework-module-defaults",
+ defaults: ["framework-module-common-defaults"],
+
+ system: {
+ enabled: true,
+ sdk_version: "module_current",
+ },
+ module_lib: {
+ enabled: true,
+ sdk_version: "module_current",
+ },
+}
+
+// Defaults for mainline module system server provided java_sdk_library instances.
+java_defaults {
+ name: "framework-system-server-module-defaults",
+ defaults: ["framework-module-common-defaults"],
+
+ system_server: {
+ enabled: true,
+ sdk_version: "module_current",
+ },
+}
+
stubs_defaults {
name: "framework-module-stubs-defaults-publicapi",
args: mainline_framework_stubs_args,