blob: bd89a643086618a1289947550c3b463e74d72eae [file] [log] [blame]
Brad Stenningfb198132018-12-12 13:33:14 -08001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15
Bob Badourb8e19a92021-02-12 21:18:59 -080016package {
17 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
Brad Stenningfb198132018-12-12 13:33:14 -080020android_app {
21 name: "CarNotification",
22
23 srcs: ["src/**/*.java"],
24
Julia Kawanoe4d87102021-06-04 09:50:54 -100025 resource_dirs: ["res", "res-overlayable",],
Brad Stenningfb198132018-12-12 13:33:14 -080026
27 platform_apis: true,
Uriel Sadefc347182019-01-10 14:12:28 -080028 certificate: "platform",
29 privileged: true,
Brad Stenningfb198132018-12-12 13:33:14 -080030
31 optimize: {
32 enabled: false,
33 },
34
35 dex_preopt: {
36 enabled: false,
37 },
38
39 static_libs: [
Heemin Seogd66bad52019-03-15 16:43:11 -070040 "androidx.cardview_cardview",
41 "androidx.recyclerview_recyclerview",
Brad Stenningfb198132018-12-12 13:33:14 -080042 "androidx.palette_palette",
Uriel Sade48e479e2018-12-03 10:50:29 -080043 "car-assist-client-lib",
Danny Epstein1b080de2020-05-19 20:22:49 -070044 "car-ui-lib",
Brad Stenningfb198132018-12-12 13:33:14 -080045 "android.car.userlib",
Alex Stetson30dbdac2020-07-16 14:10:44 -070046 "androidx-constraintlayout_constraintlayout",
47 "car-uxr-client-lib"
Brad Stenningfb198132018-12-12 13:33:14 -080048 ],
49
50 libs: ["android.car"],
51
52 product_variables: {
53 pdk: {
54 enabled: false,
55 },
56 },
57}
58
Priyank Singh98d20812019-06-19 14:01:08 -070059// Duplicate of CarNotification which includes testing only resources for Robolectric
60android_app {
Abhijoy Saha3f4fa202020-10-29 21:12:57 +000061 name: "CarNotificationForRoboTesting",
Priyank Singh98d20812019-06-19 14:01:08 -070062
63 srcs: ["src/**/*.java"],
64
65 // Testing only resources must be applied last so they take precedence.
66 resource_dirs: [
67 "res",
68 "tests/robotests/res",
69 ],
70
71 platform_apis: true,
72 certificate: "platform",
73 privileged: true,
74
75 optimize: {
76 enabled: false,
77 },
78
79 dex_preopt: {
80 enabled: false,
81 },
82
83 static_libs: [
84 "androidx.cardview_cardview",
85 "androidx.recyclerview_recyclerview",
86 "androidx.palette_palette",
87 "car-assist-client-lib",
Danny Epstein1b080de2020-05-19 20:22:49 -070088 "car-ui-lib",
Priyank Singh98d20812019-06-19 14:01:08 -070089 "android.car.userlib",
Alex Stetson30dbdac2020-07-16 14:10:44 -070090 "androidx-constraintlayout_constraintlayout",
91 "car-uxr-client-lib",
Priyank Singh98d20812019-06-19 14:01:08 -070092 ],
93
94 libs: ["android.car"],
95
96 product_variables: {
97 pdk: {
98 enabled: false,
99 },
100 },
101}
102
Brad Stenningfb198132018-12-12 13:33:14 -0800103// As Lib
104android_library {
105 name: "CarNotificationLib",
106 srcs: ["src/**/*.java"],
107
108 resource_dirs: ["res"],
109
110 manifest: "AndroidManifest-withoutActivity.xml",
111
112 platform_apis: true,
113
114 optimize: {
115 enabled: false,
116 },
117
118 dex_preopt: {
119 enabled: false,
120 },
121
122 static_libs: [
Heemin Seogd66bad52019-03-15 16:43:11 -0700123 "androidx.cardview_cardview",
124 "androidx.recyclerview_recyclerview",
Brad Stenningfb198132018-12-12 13:33:14 -0800125 "androidx.palette_palette",
Uriel Sade48e479e2018-12-03 10:50:29 -0800126 "car-assist-client-lib",
Danny Epsteinc49e7b82020-08-05 15:26:03 -0700127 "car-ui-lib",
Brad Stenningfb198132018-12-12 13:33:14 -0800128 "android.car.userlib",
Alex Stetson30dbdac2020-07-16 14:10:44 -0700129 "androidx-constraintlayout_constraintlayout",
130 "car-uxr-client-lib",
Brad Stenningfb198132018-12-12 13:33:14 -0800131 ],
132
133 libs: ["android.car"],
134
135 product_variables: {
136 pdk: {
137 enabled: false,
138 },
139 },
140}
Heemin Seoga6471ac2020-11-11 17:23:45 -0800141
142// Testing lib
143android_library {
144 name: "CarNotificationLibForUnitTesting",
145
146 srcs: [
147 "src/**/*.java",
148 ],
149
150 // Testing only resources must be applied last so they take precedence.
151 resource_dirs: [
152 "res",
153 "tests/unit/res",
154 ],
155
156 manifest: "tests/unit/AndroidManifest.xml",
157
158 platform_apis: true,
159
160 optimize: {
161 enabled: false,
162 },
163
164 dex_preopt: {
165 enabled: false,
166 },
167
168 static_libs: [
169 "androidx.cardview_cardview",
170 "androidx.recyclerview_recyclerview",
171 "androidx.palette_palette",
172 "car-assist-client-lib",
173 "car-ui-lib",
174 "android.car.userlib",
175 "androidx-constraintlayout_constraintlayout",
176 "car-uxr-client-lib",
177 ],
178
179 libs: ["android.car"],
180
181 product_variables: {
182 pdk: {
183 enabled: false,
184 },
185 },
186
187 dxflags: ["--multi-dex"],
188
189 aaptflags: ["--extra-packages com.android.car.notification"],
190}