blob: 94259416d274a2a98e8665d84fcd1bc0363a264b [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",
Hyunyoung Songd4904422019-03-01 13:32:28 -080061 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040062 "SystemUI-tags",
63 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050064 "dagger2-2.19",
65 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040066 ],
67 manifest: "AndroidManifest.xml",
68
69 libs: [
70 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -040071 ],
72
73 aaptflags: [
74 "--extra-packages",
75 "com.android.keyguard",
76 ],
Jason Monk73e8ffc2018-12-06 14:45:19 -050077
Colin Crossa3b22bf2019-01-23 15:38:30 -080078 plugins: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040079}
80
Jason Monkae7ced22018-08-22 16:56:58 -040081android_library {
82 name: "SystemUI-tests",
83 manifest: "tests/AndroidManifest.xml",
84 resource_dirs: [
85 "tests/res",
86 "res-keyguard",
87 "res",
88 ],
89 srcs: [
90 "tests/src/**/*.kt",
91 "tests/src/**/*.java",
92 "src/**/*.kt",
93 "src/**/*.java",
94 "src/**/I*.aidl",
95 ],
96 static_libs: [
97 "SystemUIPluginLib",
98 "SystemUISharedLib",
99 "SettingsLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400100 "androidx.legacy_legacy-support-v4",
101 "androidx.recyclerview_recyclerview",
102 "androidx.preference_preference",
103 "androidx.appcompat_appcompat",
104 "androidx.mediarouter_mediarouter",
105 "androidx.palette_palette",
106 "androidx.legacy_legacy-preference-v14",
107 "androidx.leanback_leanback",
108 "androidx.slice_slice-core",
109 "androidx.slice_slice-view",
110 "androidx.slice_slice-builders",
111 "androidx.arch.core_core-runtime",
112 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800113 "androidx.dynamicanimation_dynamicanimation",
Jason Monkae7ced22018-08-22 16:56:58 -0400114 "SystemUI-tags",
115 "SystemUI-proto",
116 "metrics-helper-lib",
Brett Chabot84151d92019-02-27 15:37:59 -0800117 "androidx.test.rules", "hamcrest-library",
Jason Monkae7ced22018-08-22 16:56:58 -0400118 "mockito-target-inline-minus-junit4",
119 "testables",
120 "truth-prebuilt",
Jason Monk27d01a622018-12-10 15:57:09 -0500121 "dagger2-2.19",
122 "jsr330"
Jason Monkae7ced22018-08-22 16:56:58 -0400123 ],
124 libs: [
125 "android.test.runner",
126 "telephony-common",
Jason Monkae7ced22018-08-22 16:56:58 -0400127 "android.test.base",
128 ],
129 aaptflags: [
130 "--extra-packages",
131 "com.android.keyguard:com.android.systemui",
132 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800133 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400134}
135
Jason Monka2f2d822018-08-13 11:10:48 -0400136android_app {
137 name: "SystemUI",
138 static_libs: [
139 "SystemUI-core",
140 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000141 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400142
143 platform_apis: true,
Anton Hansson9068f652018-12-10 17:18:15 +0000144 product_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400145 certificate: "platform",
146 privileged: true,
147
148 optimize: {
149 proguard_flags_files: ["proguard.flags"],
150 },
151
152 libs: [
153 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -0400154 ],
155
156 dxflags: ["--multi-dex"],
157 aaptflags: [
158 "--extra-packages",
159 "com.android.keyguard",
160 ],
Anton Hanssonc32be242018-12-10 17:05:08 +0000161 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400162
163}
Winson Chung2dbcf092018-10-24 13:00:41 -0700164
165// Only used for products that are shipping legacy Recents
166android_app {
167 name: "SystemUIWithLegacyRecents",
168 overrides: [
169 "SystemUI",
170 ],
171
172 platform_apis: true,
173 certificate: "platform",
174 privileged: true,
175
176 dxflags: ["--multi-dex"],
177 aaptflags: [
178 "--extra-packages",
179 "com.android.keyguard",
180 ],
181 optimize: {
182 proguard_flags_files: ["proguard.flags", "legacy/recents/proguard.flags"],
183 },
184
185 static_libs: [
186 "SystemUI-core",
187 ],
188 libs: [
189 "telephony-common",
Winson Chung2dbcf092018-10-24 13:00:41 -0700190 ],
191
192 srcs: [
193 "legacy/recents/src/**/*.java",
194 "legacy/recents/src/**/I*.aidl",
195 ],
196 resource_dirs: [
197 "legacy/recents/res",
198 ],
199
200 manifest: "legacy/recents/AndroidManifest.xml",
201}