blob: f64f9652c0441a3817e51cbbca0ebb40e6e9d91f [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 },
25}
26
27java_library {
28 name: "SystemUI-tags",
29 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
30}
31
32android_library {
33 name: "SystemUI-core",
34 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -040035 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -040036 "src/**/*.java",
37 "src/**/I*.aidl",
38 ],
39 resource_dirs: [
Sunny Goyalb4a26012019-12-05 15:49:41 -080040 "res-product",
Jason Monka2f2d822018-08-13 11:10:48 -040041 "res-keyguard",
42 "res",
43 ],
44 static_libs: [
Winson Chung10a9b4b2019-12-18 10:01:36 -080045 "WindowManager-Shell",
Jason Monka2f2d822018-08-13 11:10:48 -040046 "SystemUIPluginLib",
47 "SystemUISharedLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -070048 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -040049 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -050050 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -040051 "androidx.legacy_legacy-support-v4",
52 "androidx.recyclerview_recyclerview",
53 "androidx.preference_preference",
54 "androidx.appcompat_appcompat",
55 "androidx.mediarouter_mediarouter",
56 "androidx.palette_palette",
57 "androidx.legacy_legacy-preference-v14",
58 "androidx.leanback_leanback",
59 "androidx.slice_slice-core",
60 "androidx.slice_slice-view",
61 "androidx.slice_slice-builders",
62 "androidx.arch.core_core-runtime",
63 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080064 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -040065 "androidx-constraintlayout_constraintlayout",
Hyunyoung Song5347a542019-03-01 13:32:28 -080066 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040067 "SystemUI-tags",
68 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050069 "dagger2-2.19",
70 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040071 ],
72 manifest: "AndroidManifest.xml",
73
Selim Cinek820ba2d2019-06-18 18:59:09 -070074 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050075
Colin Crossa3b22bf2019-01-23 15:38:30 -080076 plugins: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040077}
78
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090079filegroup {
80 name: "SystemUI-tests-utils",
81 srcs: [
Beverly79c89ec2019-12-13 10:33:01 -050082 "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090083 "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
84 "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
85 ],
86 path: "tests/src",
87}
88
Jason Monkae7ced22018-08-22 16:56:58 -040089android_library {
90 name: "SystemUI-tests",
Sunny Goyaleb18d392020-02-07 16:48:14 -080091 manifest: "tests/AndroidManifest-base.xml",
92 additional_manifests: ["tests/AndroidManifest.xml"],
93
Jason Monkae7ced22018-08-22 16:56:58 -040094 resource_dirs: [
95 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -080096 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -040097 "res-keyguard",
98 "res",
99 ],
100 srcs: [
101 "tests/src/**/*.kt",
102 "tests/src/**/*.java",
103 "src/**/*.kt",
104 "src/**/*.java",
105 "src/**/I*.aidl",
106 ],
107 static_libs: [
108 "SystemUIPluginLib",
109 "SystemUISharedLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700110 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400111 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500112 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400113 "androidx.legacy_legacy-support-v4",
114 "androidx.recyclerview_recyclerview",
115 "androidx.preference_preference",
116 "androidx.appcompat_appcompat",
117 "androidx.mediarouter_mediarouter",
118 "androidx.palette_palette",
119 "androidx.legacy_legacy-preference-v14",
120 "androidx.leanback_leanback",
121 "androidx.slice_slice-core",
122 "androidx.slice_slice-view",
123 "androidx.slice_slice-builders",
124 "androidx.arch.core_core-runtime",
125 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800126 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400127 "androidx-constraintlayout_constraintlayout",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700128 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400129 "SystemUI-tags",
130 "SystemUI-proto",
131 "metrics-helper-lib",
Brett Chabot84151d92019-02-27 15:37:59 -0800132 "androidx.test.rules", "hamcrest-library",
Beverly9028d412019-12-11 16:33:16 -0500133 "mockito-target-extended-minus-junit4",
Jason Monkae7ced22018-08-22 16:56:58 -0400134 "testables",
135 "truth-prebuilt",
Jason Monk27d01a622018-12-10 15:57:09 -0500136 "dagger2-2.19",
137 "jsr330"
Jason Monkae7ced22018-08-22 16:56:58 -0400138 ],
139 libs: [
140 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400141 "android.test.base",
142 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700143 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400144 aaptflags: [
145 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700146 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400147 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800148 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400149}
150
Jason Monka2f2d822018-08-13 11:10:48 -0400151android_app {
152 name: "SystemUI",
153 static_libs: [
154 "SystemUI-core",
155 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000156 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400157
158 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900159 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400160 certificate: "platform",
161 privileged: true,
162
163 optimize: {
164 proguard_flags_files: ["proguard.flags"],
165 },
166
Selim Cinek820ba2d2019-06-18 18:59:09 -0700167 kotlincflags: ["-Xjvm-default=enable"],
168
Jason Monka2f2d822018-08-13 11:10:48 -0400169 dxflags: ["--multi-dex"],
Anton Hanssonc32be242018-12-10 17:05:08 +0000170 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400171
172}