blob: 2a8a39a1fe1aacac47d528f2de354dbcd5c347ad [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",
Ying Zheng149f9382018-11-02 15:46:07 -070035 "android.car.userlib",
Jason Monka2f2d822018-08-13 11:10:48 -040036 "androidx.legacy_legacy-support-v4",
37 "androidx.recyclerview_recyclerview",
38 "androidx.preference_preference",
39 "androidx.appcompat_appcompat",
40 "androidx.mediarouter_mediarouter",
41 "androidx.palette_palette",
42 "androidx.legacy_legacy-preference-v14",
43 "androidx.leanback_leanback",
44 "androidx.slice_slice-core",
45 "androidx.slice_slice-view",
46 "androidx.slice_slice-builders",
47 "androidx.arch.core_core-runtime",
48 "androidx.lifecycle_lifecycle-extensions",
49 "SystemUI-tags",
50 "SystemUI-proto",
Govinda Wasserman8d49d0d2019-08-22 16:51:48 -040051 "dagger2-2.19",
52 "//external/kotlinc:kotlin-annotations",
Jason Monka2f2d822018-08-13 11:10:48 -040053 ],
54
55 libs: [
Jason Monka2f2d822018-08-13 11:10:48 -040056 "android.car",
Jason Monka2f2d822018-08-13 11:10:48 -040057 ],
58
59 manifest: "AndroidManifest.xml",
60
Brad Stenningb896c582019-09-11 11:40:45 -070061 plugins: ["dagger2-compiler-2.19"],
62
63}
64
Heemin Seogd0cfab02019-10-23 16:52:31 -070065android_library {
66 name: "CarSystemUI-tests",
67 manifest: "tests/AndroidManifest.xml",
68 resource_dirs: [
69 "tests/res",
70 "res-keyguard",
71 "res",
72 ],
73 srcs: [
74 "tests/src/**/*.java",
75 "src/**/*.java",
76 "src/**/I*.aidl",
77 ],
78 static_libs: [
79 "SystemUI-tests",
80 "CarNotificationLib",
81 "SystemUIPluginLib",
82 "SystemUISharedLib",
83 "SettingsLib",
84 "android.car.userlib",
85 "androidx.legacy_legacy-support-v4",
86 "androidx.recyclerview_recyclerview",
87 "androidx.preference_preference",
88 "androidx.appcompat_appcompat",
89 "androidx.mediarouter_mediarouter",
90 "androidx.palette_palette",
91 "androidx.legacy_legacy-preference-v14",
92 "androidx.leanback_leanback",
93 "androidx.slice_slice-core",
94 "androidx.slice_slice-view",
95 "androidx.slice_slice-builders",
96 "androidx.arch.core_core-runtime",
97 "androidx.lifecycle_lifecycle-extensions",
98 "SystemUI-tags",
99 "SystemUI-proto",
100 "metrics-helper-lib",
101 "androidx.test.rules", "hamcrest-library",
102 "mockito-target-inline-minus-junit4",
103 "testables",
104 "truth-prebuilt",
105 "dagger2-2.19",
106 "//external/kotlinc:kotlin-annotations",
107 ],
108 libs: [
109 "android.test.runner",
Heemin Seogd0cfab02019-10-23 16:52:31 -0700110 "android.test.base",
111 "android.car",
112 ],
113
114 aaptflags: [
115 "--extra-packages",
116 "com.android.systemui",
117 ],
118
119 plugins: ["dagger2-compiler-2.19"],
120}
121
Brad Stenningb896c582019-09-11 11:40:45 -0700122android_app {
123 name: "CarSystemUI",
124
125 static_libs: [
126 "CarSystemUI-core",
127 ],
128
129 libs: [
Brad Stenningb896c582019-09-11 11:40:45 -0700130 "android.car",
131 ],
132
133 resource_dirs: [],
134
135 overrides: [
136 "SystemUI",
137 ],
138
Jason Monka2f2d822018-08-13 11:10:48 -0400139 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900140 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400141 certificate: "platform",
142 privileged: true,
143
144 optimize: {
145 proguard_flags_files: [
146 "proguard.flags",
147 ],
148 },
Jason Monka2f2d822018-08-13 11:10:48 -0400149 dxflags: ["--multi-dex"],
150
151 aaptflags: [
152 "--extra-packages",
153 "com.android.keyguard",
154 ],
155
Brad Stenningb896c582019-09-11 11:40:45 -0700156 kotlincflags: ["-Xjvm-default=enable"],
157
Colin Crossa3b22bf2019-01-23 15:38:30 -0800158 plugins: ["dagger2-compiler-2.19"],
Nicholas Sauer15640572019-02-28 09:54:37 -0800159
160 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400161}