blob: 5b3164e3c1fd0cfa958670a3a2a3004a3386e713 [file] [log] [blame]
Jason Monk2c3a8042018-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: [
35 "src/**/*.java",
36 "src/**/I*.aidl",
37 ],
38 resource_dirs: [
39 "res-keyguard",
40 "res",
41 ],
42 static_libs: [
43 "SystemUIPluginLib",
44 "SystemUISharedLib",
45 "SettingsLib",
46 "androidx.car_car",
47 "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",
62 ],
63 manifest: "AndroidManifest.xml",
64
65 libs: [
66 "telephony-common",
67 "android.car",
68 ],
69
70 aaptflags: [
71 "--extra-packages",
72 "com.android.keyguard",
73 ],
74}
75
76android_app {
77 name: "SystemUI",
78 static_libs: [
79 "SystemUI-core",
80 ],
81
82 platform_apis: true,
Anton Hanssonb7909f32018-12-10 17:18:15 +000083 product_specific: true,
Jason Monk2c3a8042018-08-13 11:10:48 -040084 certificate: "platform",
85 privileged: true,
86
87 optimize: {
88 proguard_flags_files: ["proguard.flags"],
89 },
90
91 libs: [
92 "telephony-common",
93 "android.car",
94 ],
95
96 dxflags: ["--multi-dex"],
97 aaptflags: [
98 "--extra-packages",
99 "com.android.keyguard",
100 ],
Anton Hansson2012be22018-12-10 17:05:08 +0000101 required: ["privapp_whitelist_com.android.systemui"],
Jason Monk2c3a8042018-08-13 11:10:48 -0400102
103}