blob: b770d5c8832445b4d7ea4f395da3b4a6f26b0a55 [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",
47 "androidx.car_car",
48 "androidx.legacy_legacy-support-v4",
49 "androidx.recyclerview_recyclerview",
50 "androidx.preference_preference",
51 "androidx.appcompat_appcompat",
52 "androidx.mediarouter_mediarouter",
53 "androidx.palette_palette",
54 "androidx.legacy_legacy-preference-v14",
55 "androidx.leanback_leanback",
56 "androidx.slice_slice-core",
57 "androidx.slice_slice-view",
58 "androidx.slice_slice-builders",
59 "androidx.arch.core_core-runtime",
60 "androidx.lifecycle_lifecycle-extensions",
61 "SystemUI-tags",
62 "SystemUI-proto",
63 ],
64 manifest: "AndroidManifest.xml",
65
66 libs: [
67 "telephony-common",
68 "android.car",
Ying Zheng4fd6b782018-09-11 12:55:04 -070069 "android.car.user",
Jason Monka2f2d822018-08-13 11:10:48 -040070 ],
71
72 aaptflags: [
73 "--extra-packages",
74 "com.android.keyguard",
75 ],
76}
77
Jason Monkae7ced22018-08-22 16:56:58 -040078android_library {
79 name: "SystemUI-tests",
80 manifest: "tests/AndroidManifest.xml",
81 resource_dirs: [
82 "tests/res",
83 "res-keyguard",
84 "res",
85 ],
86 srcs: [
87 "tests/src/**/*.kt",
88 "tests/src/**/*.java",
89 "src/**/*.kt",
90 "src/**/*.java",
91 "src/**/I*.aidl",
92 ],
93 static_libs: [
94 "SystemUIPluginLib",
95 "SystemUISharedLib",
96 "SettingsLib",
97 "androidx.car_car",
98 "androidx.legacy_legacy-support-v4",
99 "androidx.recyclerview_recyclerview",
100 "androidx.preference_preference",
101 "androidx.appcompat_appcompat",
102 "androidx.mediarouter_mediarouter",
103 "androidx.palette_palette",
104 "androidx.legacy_legacy-preference-v14",
105 "androidx.leanback_leanback",
106 "androidx.slice_slice-core",
107 "androidx.slice_slice-view",
108 "androidx.slice_slice-builders",
109 "androidx.arch.core_core-runtime",
110 "androidx.lifecycle_lifecycle-extensions",
111 "SystemUI-tags",
112 "SystemUI-proto",
113 "metrics-helper-lib",
114 "android-support-test",
115 "mockito-target-inline-minus-junit4",
116 "testables",
117 "truth-prebuilt",
118 ],
119 libs: [
120 "android.test.runner",
121 "telephony-common",
122 "android.car",
Ying Zheng4fd6b782018-09-11 12:55:04 -0700123 "android.car.user",
Jason Monkae7ced22018-08-22 16:56:58 -0400124 "android.test.base",
125 ],
126 aaptflags: [
127 "--extra-packages",
128 "com.android.keyguard:com.android.systemui",
129 ],
130}
131
Jason Monka2f2d822018-08-13 11:10:48 -0400132android_app {
133 name: "SystemUI",
134 static_libs: [
135 "SystemUI-core",
136 ],
137
138 platform_apis: true,
139 certificate: "platform",
140 privileged: true,
141
142 optimize: {
143 proguard_flags_files: ["proguard.flags"],
144 },
145
146 libs: [
147 "telephony-common",
148 "android.car",
Ying Zheng4fd6b782018-09-11 12:55:04 -0700149 "android.car.user",
Jason Monka2f2d822018-08-13 11:10:48 -0400150 ],
151
152 dxflags: ["--multi-dex"],
153 aaptflags: [
154 "--extra-packages",
155 "com.android.keyguard",
156 ],
157
158}
Winson Chung2dbcf092018-10-24 13:00:41 -0700159
160// Only used for products that are shipping legacy Recents
161android_app {
162 name: "SystemUIWithLegacyRecents",
163 overrides: [
164 "SystemUI",
165 ],
166
167 platform_apis: true,
168 certificate: "platform",
169 privileged: true,
170
171 dxflags: ["--multi-dex"],
172 aaptflags: [
173 "--extra-packages",
174 "com.android.keyguard",
175 ],
176 optimize: {
177 proguard_flags_files: ["proguard.flags", "legacy/recents/proguard.flags"],
178 },
179
180 static_libs: [
181 "SystemUI-core",
182 ],
183 libs: [
184 "telephony-common",
185 "android.car",
186 "android.car.user",
187 ],
188
189 srcs: [
190 "legacy/recents/src/**/*.java",
191 "legacy/recents/src/**/I*.aidl",
192 ],
193 resource_dirs: [
194 "legacy/recents/res",
195 ],
196
197 manifest: "legacy/recents/AndroidManifest.xml",
198}