blob: c2e107a0669293b771b147ae9cad31f79ed16828 [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",
60 "SystemUI-tags",
61 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050062 "dagger2-2.19",
63 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040064 ],
65 manifest: "AndroidManifest.xml",
66
67 libs: [
68 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -040069 ],
70
71 aaptflags: [
72 "--extra-packages",
73 "com.android.keyguard",
74 ],
Jason Monk73e8ffc2018-12-06 14:45:19 -050075
76 annotation_processors: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040077}
78
Jason Monkae7ced22018-08-22 16:56:58 -040079android_library {
80 name: "SystemUI-tests",
81 manifest: "tests/AndroidManifest.xml",
82 resource_dirs: [
83 "tests/res",
84 "res-keyguard",
85 "res",
86 ],
87 srcs: [
88 "tests/src/**/*.kt",
89 "tests/src/**/*.java",
90 "src/**/*.kt",
91 "src/**/*.java",
92 "src/**/I*.aidl",
93 ],
94 static_libs: [
95 "SystemUIPluginLib",
96 "SystemUISharedLib",
97 "SettingsLib",
Jason Monkae7ced22018-08-22 16:56:58 -040098 "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",
Jason Monkae7ced22018-08-22 16:56:58 -0400122 "android.test.base",
123 ],
124 aaptflags: [
125 "--extra-packages",
126 "com.android.keyguard:com.android.systemui",
127 ],
128}
129
Jason Monka2f2d822018-08-13 11:10:48 -0400130android_app {
131 name: "SystemUI",
132 static_libs: [
133 "SystemUI-core",
134 ],
135
136 platform_apis: true,
137 certificate: "platform",
138 privileged: true,
139
140 optimize: {
141 proguard_flags_files: ["proguard.flags"],
142 },
143
144 libs: [
145 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -0400146 ],
147
148 dxflags: ["--multi-dex"],
149 aaptflags: [
150 "--extra-packages",
151 "com.android.keyguard",
152 ],
Anton Hanssonc32be242018-12-10 17:05:08 +0000153 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400154
155}
Winson Chung2dbcf092018-10-24 13:00:41 -0700156
157// Only used for products that are shipping legacy Recents
158android_app {
159 name: "SystemUIWithLegacyRecents",
160 overrides: [
161 "SystemUI",
162 ],
163
164 platform_apis: true,
165 certificate: "platform",
166 privileged: true,
167
168 dxflags: ["--multi-dex"],
169 aaptflags: [
170 "--extra-packages",
171 "com.android.keyguard",
172 ],
173 optimize: {
174 proguard_flags_files: ["proguard.flags", "legacy/recents/proguard.flags"],
175 },
176
177 static_libs: [
178 "SystemUI-core",
179 ],
180 libs: [
181 "telephony-common",
Winson Chung2dbcf092018-10-24 13:00:41 -0700182 ],
183
184 srcs: [
185 "legacy/recents/src/**/*.java",
186 "legacy/recents/src/**/I*.aidl",
187 ],
188 resource_dirs: [
189 "legacy/recents/res",
190 ],
191
192 manifest: "legacy/recents/AndroidManifest.xml",
193}