blob: d674be4c8fc0ef562c4baea851f3a2dda9405fb5 [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
Selim Cinek820ba2d2019-06-18 18:59:09 -070074 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050075
Colin Crossa3b22bf2019-01-23 15:38:30 -080076 plugins: ["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",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800111 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400112 "androidx-constraintlayout_constraintlayout",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700113 "iconloader_base",
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 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700129 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400130 aaptflags: [
131 "--extra-packages",
Sunny Goyal87fccf02019-08-13 17:39:10 -0700132 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400133 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800134 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400135}
136
Jason Monka2f2d822018-08-13 11:10:48 -0400137android_app {
138 name: "SystemUI",
139 static_libs: [
140 "SystemUI-core",
141 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000142 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400143
144 platform_apis: true,
Anton Hansson9068f652018-12-10 17:18:15 +0000145 product_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400146 certificate: "platform",
147 privileged: true,
148
149 optimize: {
150 proguard_flags_files: ["proguard.flags"],
151 },
152
153 libs: [
154 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -0400155 ],
156
Selim Cinek820ba2d2019-06-18 18:59:09 -0700157 kotlincflags: ["-Xjvm-default=enable"],
158
Jason Monka2f2d822018-08-13 11:10:48 -0400159 dxflags: ["--multi-dex"],
Anton Hanssonc32be242018-12-10 17:05:08 +0000160 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400161
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"],
Winson Chung2dbcf092018-10-24 13:00:41 -0700176 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",
Winson Chung2dbcf092018-10-24 13:00:41 -0700185 ],
186
Selim Cinek820ba2d2019-06-18 18:59:09 -0700187 kotlincflags: ["-Xjvm-default=enable"],
188
Winson Chung2dbcf092018-10-24 13:00:41 -0700189 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}