blob: 014d73f281cc121bf8987b218982320b6ab4a5c5 [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17java_library {
18 name: "SystemUI-proto",
19
20 srcs: ["src/**/*.proto"],
21
22 proto: {
23 type: "nano",
24 },
Winson Chungeb1aa3d2020-08-25 19:02:29 -070025
26 libs: [
27 "WindowManager-Shell-proto",
28 ],
Jason Monka2f2d822018-08-13 11:10:48 -040029}
30
31java_library {
32 name: "SystemUI-tags",
33 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
34}
35
36android_library {
37 name: "SystemUI-core",
38 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -040039 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -040040 "src/**/*.java",
41 "src/**/I*.aidl",
42 ],
43 resource_dirs: [
Sunny Goyalb4a26012019-12-05 15:49:41 -080044 "res-product",
Jason Monka2f2d822018-08-13 11:10:48 -040045 "res-keyguard",
46 "res",
47 ],
48 static_libs: [
Winson Chung10a9b4b2019-12-18 10:01:36 -080049 "WindowManager-Shell",
Jason Monka2f2d822018-08-13 11:10:48 -040050 "SystemUIPluginLib",
51 "SystemUISharedLib",
Jerry Chang919d1d22020-07-16 12:31:24 +080052 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -040053 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -050054 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -040055 "androidx.legacy_legacy-support-v4",
56 "androidx.recyclerview_recyclerview",
57 "androidx.preference_preference",
58 "androidx.appcompat_appcompat",
59 "androidx.mediarouter_mediarouter",
60 "androidx.palette_palette",
61 "androidx.legacy_legacy-preference-v14",
62 "androidx.leanback_leanback",
63 "androidx.slice_slice-core",
64 "androidx.slice_slice-view",
65 "androidx.slice_slice-builders",
66 "androidx.arch.core_core-runtime",
67 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080068 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -040069 "androidx-constraintlayout_constraintlayout",
Pinyao Ting059091b2020-04-30 10:22:25 -070070 "kotlinx-coroutines-android",
71 "kotlinx-coroutines-core",
Hyunyoung Song5347a542019-03-01 13:32:28 -080072 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040073 "SystemUI-tags",
74 "SystemUI-proto",
Dave Mankoffdffcc472020-07-08 15:25:16 -040075 "dagger2",
Jason Monk73e8ffc2018-12-06 14:45:19 -050076 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040077 ],
78 manifest: "AndroidManifest.xml",
79
Selim Cinek820ba2d2019-06-18 18:59:09 -070080 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050081
Dave Mankoffdffcc472020-07-08 15:25:16 -040082 plugins: ["dagger2-compiler"],
Jason Monka2f2d822018-08-13 11:10:48 -040083}
84
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090085filegroup {
86 name: "SystemUI-tests-utils",
87 srcs: [
Beverly79c89ec2019-12-13 10:33:01 -050088 "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090089 "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
90 "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
Prabir Pradhan4499bde2020-04-09 15:07:41 -070091 "tests/src/com/android/systemui/util/concurrency/FakeExecutor.java",
92 "tests/src/com/android/systemui/util/time/FakeSystemClock.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090093 ],
94 path: "tests/src",
95}
96
Jason Monkae7ced22018-08-22 16:56:58 -040097android_library {
98 name: "SystemUI-tests",
Sunny Goyaleb18d392020-02-07 16:48:14 -080099 manifest: "tests/AndroidManifest-base.xml",
100 additional_manifests: ["tests/AndroidManifest.xml"],
101
Jason Monkae7ced22018-08-22 16:56:58 -0400102 resource_dirs: [
103 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -0800104 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -0400105 "res-keyguard",
106 "res",
107 ],
108 srcs: [
109 "tests/src/**/*.kt",
110 "tests/src/**/*.java",
111 "src/**/*.kt",
112 "src/**/*.java",
113 "src/**/I*.aidl",
114 ],
115 static_libs: [
116 "SystemUIPluginLib",
117 "SystemUISharedLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700118 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400119 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500120 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400121 "androidx.legacy_legacy-support-v4",
122 "androidx.recyclerview_recyclerview",
123 "androidx.preference_preference",
124 "androidx.appcompat_appcompat",
125 "androidx.mediarouter_mediarouter",
126 "androidx.palette_palette",
127 "androidx.legacy_legacy-preference-v14",
128 "androidx.leanback_leanback",
129 "androidx.slice_slice-core",
130 "androidx.slice_slice-view",
131 "androidx.slice_slice-builders",
132 "androidx.arch.core_core-runtime",
133 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800134 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400135 "androidx-constraintlayout_constraintlayout",
Pinyao Tingee191b12020-04-29 18:35:39 -0700136 "kotlinx-coroutines-android",
137 "kotlinx-coroutines-core",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700138 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400139 "SystemUI-tags",
140 "SystemUI-proto",
141 "metrics-helper-lib",
Tadashi G. Takaokac7340fb2020-10-20 17:50:13 +0900142 "hamcrest-library",
143 "androidx.test.rules",
144 "androidx.test.uiautomator",
Beverly9028d412019-12-11 16:33:16 -0500145 "mockito-target-extended-minus-junit4",
Jason Monkae7ced22018-08-22 16:56:58 -0400146 "testables",
147 "truth-prebuilt",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400148 "dagger2",
Bill Lina17858d12020-07-14 10:30:10 +0800149 "jsr330",
150 "WindowManager-Shell",
Jason Monkae7ced22018-08-22 16:56:58 -0400151 ],
152 libs: [
153 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400154 "android.test.base",
155 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700156 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400157 aaptflags: [
158 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700159 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400160 ],
Dave Mankoffdffcc472020-07-08 15:25:16 -0400161 plugins: ["dagger2-compiler"],
Jason Monkae7ced22018-08-22 16:56:58 -0400162}
163
Jason Monka2f2d822018-08-13 11:10:48 -0400164android_app {
165 name: "SystemUI",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -0600166 defaults: ["platform_app_defaults"],
Jason Monka2f2d822018-08-13 11:10:48 -0400167 static_libs: [
168 "SystemUI-core",
169 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000170 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400171
172 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900173 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400174 certificate: "platform",
175 privileged: true,
176
177 optimize: {
178 proguard_flags_files: ["proguard.flags"],
179 },
180
Selim Cinek820ba2d2019-06-18 18:59:09 -0700181 kotlincflags: ["-Xjvm-default=enable"],
182
Jason Monka2f2d822018-08-13 11:10:48 -0400183 dxflags: ["--multi-dex"],
Winson Chungb754f522020-08-03 22:17:08 -0700184 required: [
185 "privapp_whitelist_com.android.systemui",
186 "checked-wm_shell_protolog.json",
187 ],
Jason Monka2f2d822018-08-13 11:10:48 -0400188}