blob: c2495b586144d28869eb2bbf3160ea28c5c19c87 [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: [
40 "res-keyguard",
41 "res",
42 ],
43 static_libs: [
44 "SystemUIPluginLib",
45 "SystemUISharedLib",
46 "SettingsLib",
Jason Monka2f2d822018-08-13 11:10:48 -040047 "androidx.legacy_legacy-support-v4",
48 "androidx.recyclerview_recyclerview",
49 "androidx.preference_preference",
50 "androidx.appcompat_appcompat",
51 "androidx.mediarouter_mediarouter",
52 "androidx.palette_palette",
53 "androidx.legacy_legacy-preference-v14",
54 "androidx.leanback_leanback",
55 "androidx.slice_slice-core",
56 "androidx.slice_slice-view",
57 "androidx.slice_slice-builders",
58 "androidx.arch.core_core-runtime",
59 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080060 "androidx.dynamicanimation_dynamicanimation",
Jason Monka2f2d822018-08-13 11:10:48 -040061 "SystemUI-tags",
62 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050063 "dagger2-2.19",
64 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040065 ],
66 manifest: "AndroidManifest.xml",
67
68 libs: [
69 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -040070 ],
71
72 aaptflags: [
73 "--extra-packages",
74 "com.android.keyguard",
75 ],
Jason Monk73e8ffc2018-12-06 14:45:19 -050076
Colin Crossa3b22bf2019-01-23 15:38:30 -080077 plugins: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040078}
79
Jason Monkae7ced22018-08-22 16:56:58 -040080android_library {
81 name: "SystemUI-tests",
82 manifest: "tests/AndroidManifest.xml",
83 resource_dirs: [
84 "tests/res",
85 "res-keyguard",
86 "res",
87 ],
88 srcs: [
89 "tests/src/**/*.kt",
90 "tests/src/**/*.java",
91 "src/**/*.kt",
92 "src/**/*.java",
93 "src/**/I*.aidl",
94 ],
95 static_libs: [
96 "SystemUIPluginLib",
97 "SystemUISharedLib",
98 "SettingsLib",
Jason Monkae7ced22018-08-22 16:56:58 -040099 "androidx.legacy_legacy-support-v4",
100 "androidx.recyclerview_recyclerview",
101 "androidx.preference_preference",
102 "androidx.appcompat_appcompat",
103 "androidx.mediarouter_mediarouter",
104 "androidx.palette_palette",
105 "androidx.legacy_legacy-preference-v14",
106 "androidx.leanback_leanback",
107 "androidx.slice_slice-core",
108 "androidx.slice_slice-view",
109 "androidx.slice_slice-builders",
110 "androidx.arch.core_core-runtime",
111 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800112 "androidx.dynamicanimation_dynamicanimation",
Jason Monkae7ced22018-08-22 16:56:58 -0400113 "SystemUI-tags",
114 "SystemUI-proto",
115 "metrics-helper-lib",
Brett Chabot84151d92019-02-27 15:37:59 -0800116 "androidx.test.rules", "hamcrest-library",
Jason Monkae7ced22018-08-22 16:56:58 -0400117 "mockito-target-inline-minus-junit4",
118 "testables",
119 "truth-prebuilt",
Jason Monk27d01a622018-12-10 15:57:09 -0500120 "dagger2-2.19",
121 "jsr330"
Jason Monkae7ced22018-08-22 16:56:58 -0400122 ],
123 libs: [
124 "android.test.runner",
125 "telephony-common",
Jason Monkae7ced22018-08-22 16:56:58 -0400126 "android.test.base",
127 ],
128 aaptflags: [
129 "--extra-packages",
130 "com.android.keyguard:com.android.systemui",
131 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800132 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400133}
134
Jason Monka2f2d822018-08-13 11:10:48 -0400135android_app {
136 name: "SystemUI",
137 static_libs: [
138 "SystemUI-core",
139 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000140 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400141
142 platform_apis: true,
Anton Hansson9068f652018-12-10 17:18:15 +0000143 product_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400144 certificate: "platform",
145 privileged: true,
146
147 optimize: {
148 proguard_flags_files: ["proguard.flags"],
149 },
150
151 libs: [
152 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -0400153 ],
154
155 dxflags: ["--multi-dex"],
156 aaptflags: [
157 "--extra-packages",
158 "com.android.keyguard",
159 ],
Anton Hanssonc32be242018-12-10 17:05:08 +0000160 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400161
162}
Winson Chung2dbcf092018-10-24 13:00:41 -0700163
164// Only used for products that are shipping legacy Recents
165android_app {
166 name: "SystemUIWithLegacyRecents",
167 overrides: [
168 "SystemUI",
169 ],
170
171 platform_apis: true,
172 certificate: "platform",
173 privileged: true,
174
175 dxflags: ["--multi-dex"],
176 aaptflags: [
177 "--extra-packages",
178 "com.android.keyguard",
179 ],
180 optimize: {
181 proguard_flags_files: ["proguard.flags", "legacy/recents/proguard.flags"],
182 },
183
184 static_libs: [
185 "SystemUI-core",
186 ],
187 libs: [
188 "telephony-common",
Winson Chung2dbcf092018-10-24 13:00:41 -0700189 ],
190
191 srcs: [
192 "legacy/recents/src/**/*.java",
193 "legacy/recents/src/**/I*.aidl",
194 ],
195 resource_dirs: [
196 "legacy/recents/res",
197 ],
198
199 manifest: "legacy/recents/AndroidManifest.xml",
200}