blob: 3e5d72077f8b3b4fd6ff7480418c138302396a2c [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",
Steve Elliott300b48f2019-05-29 14:13:50 -040061 "androidx-constraintlayout_constraintlayout",
Hyunyoung Song5347a542019-03-01 13:32:28 -080062 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040063 "SystemUI-tags",
64 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050065 "dagger2-2.19",
66 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040067 ],
68 manifest: "AndroidManifest.xml",
69
70 libs: [
71 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -040072 ],
73
74 aaptflags: [
75 "--extra-packages",
76 "com.android.keyguard",
77 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -070078 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050079
Colin Crossa3b22bf2019-01-23 15:38:30 -080080 plugins: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040081}
82
Jason Monkae7ced22018-08-22 16:56:58 -040083android_library {
84 name: "SystemUI-tests",
85 manifest: "tests/AndroidManifest.xml",
86 resource_dirs: [
87 "tests/res",
88 "res-keyguard",
89 "res",
90 ],
91 srcs: [
92 "tests/src/**/*.kt",
93 "tests/src/**/*.java",
94 "src/**/*.kt",
95 "src/**/*.java",
96 "src/**/I*.aidl",
97 ],
98 static_libs: [
99 "SystemUIPluginLib",
100 "SystemUISharedLib",
101 "SettingsLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400102 "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",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800115 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400116 "androidx-constraintlayout_constraintlayout",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700117 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400118 "SystemUI-tags",
119 "SystemUI-proto",
120 "metrics-helper-lib",
Brett Chabot84151d92019-02-27 15:37:59 -0800121 "androidx.test.rules", "hamcrest-library",
Jason Monkae7ced22018-08-22 16:56:58 -0400122 "mockito-target-inline-minus-junit4",
123 "testables",
124 "truth-prebuilt",
Jason Monk27d01a622018-12-10 15:57:09 -0500125 "dagger2-2.19",
126 "jsr330"
Jason Monkae7ced22018-08-22 16:56:58 -0400127 ],
128 libs: [
129 "android.test.runner",
130 "telephony-common",
Jason Monkae7ced22018-08-22 16:56:58 -0400131 "android.test.base",
132 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700133 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400134 aaptflags: [
135 "--extra-packages",
136 "com.android.keyguard:com.android.systemui",
137 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800138 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400139}
140
Jason Monka2f2d822018-08-13 11:10:48 -0400141android_app {
142 name: "SystemUI",
143 static_libs: [
144 "SystemUI-core",
145 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000146 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400147
148 platform_apis: true,
Anton Hansson9068f652018-12-10 17:18:15 +0000149 product_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400150 certificate: "platform",
151 privileged: true,
152
153 optimize: {
154 proguard_flags_files: ["proguard.flags"],
155 },
156
157 libs: [
158 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -0400159 ],
160
Selim Cinek820ba2d2019-06-18 18:59:09 -0700161 kotlincflags: ["-Xjvm-default=enable"],
162
Jason Monka2f2d822018-08-13 11:10:48 -0400163 dxflags: ["--multi-dex"],
164 aaptflags: [
165 "--extra-packages",
166 "com.android.keyguard",
167 ],
Anton Hanssonc32be242018-12-10 17:05:08 +0000168 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400169
170}
Winson Chung2dbcf092018-10-24 13:00:41 -0700171
172// Only used for products that are shipping legacy Recents
173android_app {
174 name: "SystemUIWithLegacyRecents",
175 overrides: [
176 "SystemUI",
177 ],
178
179 platform_apis: true,
180 certificate: "platform",
181 privileged: true,
182
183 dxflags: ["--multi-dex"],
184 aaptflags: [
185 "--extra-packages",
186 "com.android.keyguard",
187 ],
188 optimize: {
189 proguard_flags_files: ["proguard.flags", "legacy/recents/proguard.flags"],
190 },
191
192 static_libs: [
193 "SystemUI-core",
194 ],
195 libs: [
196 "telephony-common",
Winson Chung2dbcf092018-10-24 13:00:41 -0700197 ],
198
Selim Cinek820ba2d2019-06-18 18:59:09 -0700199 kotlincflags: ["-Xjvm-default=enable"],
200
Winson Chung2dbcf092018-10-24 13:00:41 -0700201 srcs: [
202 "legacy/recents/src/**/*.java",
203 "legacy/recents/src/**/I*.aidl",
204 ],
205 resource_dirs: [
206 "legacy/recents/res",
207 ],
208
209 manifest: "legacy/recents/AndroidManifest.xml",
210}