summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-08-18 12:52:44 +0100
committerAnton Hansson <hansson@google.com>2020-09-07 09:14:50 +0100
commit7a9bc4eb26a0296e9b15e085cc478f0d39e1ee0a (patch)
tree22ed08680e9e3ecbadb1a58dd174729204571e9c
parent1d35b7bc249c9c4cadef83692b227d1d2481d300 (diff)
downloadbase-7a9bc4eb26a0296e9b15e085cc478f0d39e1ee0a.tar.gz
Make framework-all composed of other framework jars
This avoids duplicating the compilation of the module java source code, as well as maintaining the compilation rules in two places. Bug: 149906971 Test: m FrameworkServicesRoboTests Change-Id: I1cea62aaedb7e653648130e3d315761c0c9aece4 Merged-In: I1cea62aaedb7e653648130e3d315761c0c9aece4
-rw-r--r--Android.bp48
-rw-r--r--apex/Android.bp5
2 files changed, 29 insertions, 24 deletions
diff --git a/Android.bp b/Android.bp
index b41f09ca08f5..2014cbc6e173 100644
--- a/Android.bp
+++ b/Android.bp
@@ -361,7 +361,8 @@ filegroup {
":framework-tethering-srcs",
":framework-wifi-updatable-sources",
":updatable-media-srcs",
- ]
+ ],
+ visibility: ["//visibility:private"],
}
java_library {
@@ -376,7 +377,29 @@ java_library {
"framework-wifi.stubs.module_lib",
],
sdk_version: "module_current",
- visibility: [":__pkg__"],
+ visibility: ["//visibility:private"],
+}
+
+java_library {
+ name: "framework-all",
+ installable: false,
+ static_libs: [
+ "framework-minus-apex",
+ "framework-mediaprovider.impl",
+ "framework-permission.impl",
+ "framework-sdkextensions.impl",
+ "framework-statsd.impl",
+ "framework-tethering.impl",
+ "framework-wifi.impl",
+ "updatable-media",
+ ],
+ apex_available: ["//apex_available:platform"],
+ sdk_version: "core_platform",
+ visibility: [
+ // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
+ "//external/robolectric-shadows:__subpackages__",
+ "//frameworks/layoutlib:__subpackages__",
+ ],
}
filegroup {
@@ -601,27 +624,6 @@ java_library {
apex_available: ["//apex_available:platform"],
}
-java_library {
- name: "framework-all",
- defaults: ["framework-defaults"],
- srcs: [":framework-all-sources"],
- installable: false,
- static_libs: [
- "exoplayer2-extractor",
- "android.hardware.wifi-V1.0-java-constants",
-
- // Additional dependencies needed to build the ike API classes.
- "ike-internals",
- ],
- apex_available: ["//apex_available:platform"],
- visibility: [
- // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
- "//external/robolectric-shadows:__subpackages__",
- "//frameworks/base",
- "//frameworks/layoutlib:__subpackages__",
- ],
-}
-
platform_compat_config {
name: "framework-platform-compat-config",
src: ":framework-minus-apex",
diff --git a/apex/Android.bp b/apex/Android.bp
index cf210e238bf9..a5e2b4a5b707 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -106,7 +106,10 @@ java_defaults {
stubs_library_visibility: ["//visibility:public"],
// Hide impl library and stub sources
- impl_library_visibility: [":__package__"],
+ impl_library_visibility: [
+ ":__package__",
+ "//frameworks/base", // For framework-all
+ ],
stubs_source_visibility: ["//visibility:private"],
// Collates API usages from each module for further analysis.