blob: 75492f340109b97713171c97370b3781befc9984 [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",
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",
70 "android.car",
Ying Zheng149f9382018-11-02 15:46:07 -070071 "android.car.userlib",
Jason Monka2f2d822018-08-13 11:10:48 -040072 ],
73
74 aaptflags: [
75 "--extra-packages",
76 "com.android.keyguard",
77 ],
Jason Monk73e8ffc2018-12-06 14:45:19 -050078
79 annotation_processors: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040080}
81
Jason Monkae7ced22018-08-22 16:56:58 -040082android_library {
83 name: "SystemUI-tests",
84 manifest: "tests/AndroidManifest.xml",
85 resource_dirs: [
86 "tests/res",
87 "res-keyguard",
88 "res",
89 ],
90 srcs: [
91 "tests/src/**/*.kt",
92 "tests/src/**/*.java",
93 "src/**/*.kt",
94 "src/**/*.java",
95 "src/**/I*.aidl",
96 ],
97 static_libs: [
98 "SystemUIPluginLib",
99 "SystemUISharedLib",
100 "SettingsLib",
101 "androidx.car_car",
102 "androidx.legacy_legacy-support-v4",
103 "androidx.recyclerview_recyclerview",
104 "androidx.preference_preference",
105 "androidx.appcompat_appcompat",
106 "androidx.mediarouter_mediarouter",
107 "androidx.palette_palette",
108 "androidx.legacy_legacy-preference-v14",
109 "androidx.leanback_leanback",
110 "androidx.slice_slice-core",
111 "androidx.slice_slice-view",
112 "androidx.slice_slice-builders",
113 "androidx.arch.core_core-runtime",
114 "androidx.lifecycle_lifecycle-extensions",
115 "SystemUI-tags",
116 "SystemUI-proto",
117 "metrics-helper-lib",
118 "android-support-test",
119 "mockito-target-inline-minus-junit4",
120 "testables",
121 "truth-prebuilt",
122 ],
123 libs: [
124 "android.test.runner",
125 "telephony-common",
126 "android.car",
Ying Zheng149f9382018-11-02 15:46:07 -0700127 "android.car.userlib",
Jason Monkae7ced22018-08-22 16:56:58 -0400128 "android.test.base",
129 ],
130 aaptflags: [
131 "--extra-packages",
132 "com.android.keyguard:com.android.systemui",
133 ],
134}
135
Jason Monka2f2d822018-08-13 11:10:48 -0400136android_app {
137 name: "SystemUI",
138 static_libs: [
139 "SystemUI-core",
140 ],
141
142 platform_apis: true,
143 certificate: "platform",
144 privileged: true,
145
146 optimize: {
147 proguard_flags_files: ["proguard.flags"],
148 },
149
150 libs: [
151 "telephony-common",
152 "android.car",
Ying Zheng149f9382018-11-02 15:46:07 -0700153 "android.car.userlib",
Jason Monka2f2d822018-08-13 11:10:48 -0400154 ],
155
156 dxflags: ["--multi-dex"],
157 aaptflags: [
158 "--extra-packages",
159 "com.android.keyguard",
160 ],
161
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",
189 "android.car",
Ying Zheng149f9382018-11-02 15:46:07 -0700190 "android.car.userlib",
Winson Chung2dbcf092018-10-24 13:00:41 -0700191 ],
192
193 srcs: [
194 "legacy/recents/src/**/*.java",
195 "legacy/recents/src/**/I*.aidl",
196 ],
197 resource_dirs: [
198 "legacy/recents/res",
199 ],
200
201 manifest: "legacy/recents/AndroidManifest.xml",
202}