summaryrefslogtreecommitdiff
path: root/packages/SystemUI/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SystemUI/Android.bp')
-rw-r--r--packages/SystemUI/Android.bp97
1 files changed, 97 insertions, 0 deletions
diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp
index c9ba26804e89..a00baaddb4b1 100644
--- a/packages/SystemUI/Android.bp
+++ b/packages/SystemUI/Android.bp
@@ -32,6 +32,7 @@ java_library {
android_library {
name: "SystemUI-core",
srcs: [
+ "src/**/*.kt",
"src/**/*.java",
"src/**/I*.aidl",
],
@@ -65,6 +66,7 @@ android_library {
libs: [
"telephony-common",
"android.car",
+ "android.car.userlib",
],
aaptflags: [
@@ -73,6 +75,60 @@ android_library {
],
}
+android_library {
+ name: "SystemUI-tests",
+ manifest: "tests/AndroidManifest.xml",
+ resource_dirs: [
+ "tests/res",
+ "res-keyguard",
+ "res",
+ ],
+ srcs: [
+ "tests/src/**/*.kt",
+ "tests/src/**/*.java",
+ "src/**/*.kt",
+ "src/**/*.java",
+ "src/**/I*.aidl",
+ ],
+ static_libs: [
+ "SystemUIPluginLib",
+ "SystemUISharedLib",
+ "SettingsLib",
+ "androidx.car_car",
+ "androidx.legacy_legacy-support-v4",
+ "androidx.recyclerview_recyclerview",
+ "androidx.preference_preference",
+ "androidx.appcompat_appcompat",
+ "androidx.mediarouter_mediarouter",
+ "androidx.palette_palette",
+ "androidx.legacy_legacy-preference-v14",
+ "androidx.leanback_leanback",
+ "androidx.slice_slice-core",
+ "androidx.slice_slice-view",
+ "androidx.slice_slice-builders",
+ "androidx.arch.core_core-runtime",
+ "androidx.lifecycle_lifecycle-extensions",
+ "SystemUI-tags",
+ "SystemUI-proto",
+ "metrics-helper-lib",
+ "android-support-test",
+ "mockito-target-inline-minus-junit4",
+ "testables",
+ "truth-prebuilt",
+ ],
+ libs: [
+ "android.test.runner",
+ "telephony-common",
+ "android.car",
+ "android.car.userlib",
+ "android.test.base",
+ ],
+ aaptflags: [
+ "--extra-packages",
+ "com.android.keyguard:com.android.systemui",
+ ],
+}
+
android_app {
name: "SystemUI",
static_libs: [
@@ -90,6 +146,7 @@ android_app {
libs: [
"telephony-common",
"android.car",
+ "android.car.userlib",
],
dxflags: ["--multi-dex"],
@@ -99,3 +156,43 @@ android_app {
],
}
+
+// Only used for products that are shipping legacy Recents
+android_app {
+ name: "SystemUIWithLegacyRecents",
+ overrides: [
+ "SystemUI",
+ ],
+
+ platform_apis: true,
+ certificate: "platform",
+ privileged: true,
+
+ dxflags: ["--multi-dex"],
+ aaptflags: [
+ "--extra-packages",
+ "com.android.keyguard",
+ ],
+ optimize: {
+ proguard_flags_files: ["proguard.flags", "legacy/recents/proguard.flags"],
+ },
+
+ static_libs: [
+ "SystemUI-core",
+ ],
+ libs: [
+ "telephony-common",
+ "android.car",
+ "android.car.userlib",
+ ],
+
+ srcs: [
+ "legacy/recents/src/**/*.java",
+ "legacy/recents/src/**/I*.aidl",
+ ],
+ resource_dirs: [
+ "legacy/recents/res",
+ ],
+
+ manifest: "legacy/recents/AndroidManifest.xml",
+}