blob: 8598f74e1441319d7e0ecdcadf2ce5ca0b887bd5 [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//
Brad Stenningb896c582019-09-11 11:40:45 -070016android_library {
17 name: "CarSystemUI-core",
Brad Stenning55832952018-08-27 08:39:30 -070018
Jason Monka2f2d822018-08-13 11:10:48 -040019 srcs: [
20 "src/**/*.java",
21 "src/**/I*.aidl",
22 ],
23
Brad Stenningb896c582019-09-11 11:40:45 -070024 resource_dirs: [
25 "res-keyguard",
26 "res",
27 ],
28
Jason Monka2f2d822018-08-13 11:10:48 -040029 static_libs: [
30 "SystemUI-core",
Dave Mankoff1a0e3822019-07-03 13:26:55 -040031 "CarNotificationLib",
Jason Monka2f2d822018-08-13 11:10:48 -040032 "SystemUIPluginLib",
33 "SystemUISharedLib",
34 "SettingsLib",
Danny Epstein5a3e17d2020-05-19 20:16:47 -070035 "car-ui-lib",
Ying Zheng149f9382018-11-02 15:46:07 -070036 "android.car.userlib",
Jason Monka2f2d822018-08-13 11:10:48 -040037 "androidx.legacy_legacy-support-v4",
38 "androidx.recyclerview_recyclerview",
39 "androidx.preference_preference",
40 "androidx.appcompat_appcompat",
41 "androidx.mediarouter_mediarouter",
42 "androidx.palette_palette",
43 "androidx.legacy_legacy-preference-v14",
44 "androidx.leanback_leanback",
45 "androidx.slice_slice-core",
46 "androidx.slice_slice-view",
47 "androidx.slice_slice-builders",
48 "androidx.arch.core_core-runtime",
49 "androidx.lifecycle_lifecycle-extensions",
50 "SystemUI-tags",
51 "SystemUI-proto",
Dave Mankoffdffcc472020-07-08 15:25:16 -040052 "dagger2",
Govinda Wasserman8d49d0d2019-08-22 16:51:48 -040053 "//external/kotlinc:kotlin-annotations",
Jason Monka2f2d822018-08-13 11:10:48 -040054 ],
55
56 libs: [
Jason Monka2f2d822018-08-13 11:10:48 -040057 "android.car",
Jason Monka2f2d822018-08-13 11:10:48 -040058 ],
59
60 manifest: "AndroidManifest.xml",
61
Dave Mankoffdffcc472020-07-08 15:25:16 -040062 plugins: ["dagger2-compiler"],
Brad Stenningb896c582019-09-11 11:40:45 -070063
64}
65
Heemin Seogd0cfab02019-10-23 16:52:31 -070066android_library {
67 name: "CarSystemUI-tests",
68 manifest: "tests/AndroidManifest.xml",
69 resource_dirs: [
70 "tests/res",
71 "res-keyguard",
72 "res",
73 ],
74 srcs: [
75 "tests/src/**/*.java",
76 "src/**/*.java",
77 "src/**/I*.aidl",
78 ],
79 static_libs: [
80 "SystemUI-tests",
81 "CarNotificationLib",
82 "SystemUIPluginLib",
83 "SystemUISharedLib",
84 "SettingsLib",
85 "android.car.userlib",
86 "androidx.legacy_legacy-support-v4",
87 "androidx.recyclerview_recyclerview",
88 "androidx.preference_preference",
89 "androidx.appcompat_appcompat",
90 "androidx.mediarouter_mediarouter",
91 "androidx.palette_palette",
92 "androidx.legacy_legacy-preference-v14",
93 "androidx.leanback_leanback",
94 "androidx.slice_slice-core",
95 "androidx.slice_slice-view",
96 "androidx.slice_slice-builders",
97 "androidx.arch.core_core-runtime",
98 "androidx.lifecycle_lifecycle-extensions",
Danny Epstein5a3e17d2020-05-19 20:16:47 -070099 "car-ui-lib",
Heemin Seogd0cfab02019-10-23 16:52:31 -0700100 "SystemUI-tags",
101 "SystemUI-proto",
102 "metrics-helper-lib",
103 "androidx.test.rules", "hamcrest-library",
104 "mockito-target-inline-minus-junit4",
105 "testables",
106 "truth-prebuilt",
Dave Mankoffdffcc472020-07-08 15:25:16 -0400107 "dagger2",
Heemin Seogd0cfab02019-10-23 16:52:31 -0700108 "//external/kotlinc:kotlin-annotations",
109 ],
110 libs: [
111 "android.test.runner",
Heemin Seogd0cfab02019-10-23 16:52:31 -0700112 "android.test.base",
113 "android.car",
114 ],
115
116 aaptflags: [
117 "--extra-packages",
118 "com.android.systemui",
119 ],
120
Dave Mankoffdffcc472020-07-08 15:25:16 -0400121 plugins: ["dagger2-compiler"],
Heemin Seogd0cfab02019-10-23 16:52:31 -0700122}
123
Brad Stenningb896c582019-09-11 11:40:45 -0700124android_app {
125 name: "CarSystemUI",
126
127 static_libs: [
128 "CarSystemUI-core",
129 ],
130
131 libs: [
Brad Stenningb896c582019-09-11 11:40:45 -0700132 "android.car",
133 ],
134
135 resource_dirs: [],
136
137 overrides: [
138 "SystemUI",
139 ],
140
Jason Monka2f2d822018-08-13 11:10:48 -0400141 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900142 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400143 certificate: "platform",
144 privileged: true,
145
146 optimize: {
147 proguard_flags_files: [
148 "proguard.flags",
149 ],
150 },
Jason Monka2f2d822018-08-13 11:10:48 -0400151 dxflags: ["--multi-dex"],
152
153 aaptflags: [
154 "--extra-packages",
155 "com.android.keyguard",
156 ],
157
Brad Stenningb896c582019-09-11 11:40:45 -0700158 kotlincflags: ["-Xjvm-default=enable"],
159
Dave Mankoffdffcc472020-07-08 15:25:16 -0400160 plugins: ["dagger2-compiler"],
Nicholas Sauer15640572019-02-28 09:54:37 -0800161
162 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400163}