blob: ed69ea08795ff4a804856daf668f4169c78d228c [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
16android_app {
17 name: "CarNotification",
18
19 srcs: ["src/**/*.java"],
20
21 resource_dirs: ["res"],
22
23 platform_apis: true,
Uriel Sadefc347182019-01-10 14:12:28 -080024 certificate: "platform",
25 privileged: true,
Brad Stenningfb198132018-12-12 13:33:14 -080026
27 optimize: {
28 enabled: false,
29 },
30
31 dex_preopt: {
32 enabled: false,
33 },
34
35 static_libs: [
Heemin Seogd66bad52019-03-15 16:43:11 -070036 "androidx.cardview_cardview",
37 "androidx.recyclerview_recyclerview",
Brad Stenningfb198132018-12-12 13:33:14 -080038 "androidx.palette_palette",
Uriel Sade48e479e2018-12-03 10:50:29 -080039 "car-assist-client-lib",
Danny Epstein1b080de2020-05-19 20:22:49 -070040 "car-ui-lib",
Brad Stenningfb198132018-12-12 13:33:14 -080041 "android.car.userlib",
Alex Stetson30dbdac2020-07-16 14:10:44 -070042 "androidx-constraintlayout_constraintlayout",
43 "car-uxr-client-lib"
Brad Stenningfb198132018-12-12 13:33:14 -080044 ],
45
46 libs: ["android.car"],
47
48 product_variables: {
49 pdk: {
50 enabled: false,
51 },
52 },
53}
54
Priyank Singh98d20812019-06-19 14:01:08 -070055// Duplicate of CarNotification which includes testing only resources for Robolectric
56android_app {
57 name: "CarNotificationForTesting",
58
59 srcs: ["src/**/*.java"],
60
61 // Testing only resources must be applied last so they take precedence.
62 resource_dirs: [
63 "res",
64 "tests/robotests/res",
65 ],
66
67 platform_apis: true,
68 certificate: "platform",
69 privileged: true,
70
71 optimize: {
72 enabled: false,
73 },
74
75 dex_preopt: {
76 enabled: false,
77 },
78
79 static_libs: [
80 "androidx.cardview_cardview",
81 "androidx.recyclerview_recyclerview",
82 "androidx.palette_palette",
83 "car-assist-client-lib",
Danny Epstein1b080de2020-05-19 20:22:49 -070084 "car-ui-lib",
Priyank Singh98d20812019-06-19 14:01:08 -070085 "android.car.userlib",
Alex Stetson30dbdac2020-07-16 14:10:44 -070086 "androidx-constraintlayout_constraintlayout",
87 "car-uxr-client-lib",
Priyank Singh98d20812019-06-19 14:01:08 -070088 ],
89
90 libs: ["android.car"],
91
92 product_variables: {
93 pdk: {
94 enabled: false,
95 },
96 },
97}
98
Brad Stenningfb198132018-12-12 13:33:14 -080099// As Lib
100android_library {
101 name: "CarNotificationLib",
102 srcs: ["src/**/*.java"],
103
104 resource_dirs: ["res"],
105
106 manifest: "AndroidManifest-withoutActivity.xml",
107
108 platform_apis: true,
109
110 optimize: {
111 enabled: false,
112 },
113
114 dex_preopt: {
115 enabled: false,
116 },
117
118 static_libs: [
Heemin Seogd66bad52019-03-15 16:43:11 -0700119 "androidx.cardview_cardview",
120 "androidx.recyclerview_recyclerview",
Brad Stenningfb198132018-12-12 13:33:14 -0800121 "androidx.palette_palette",
Uriel Sade48e479e2018-12-03 10:50:29 -0800122 "car-assist-client-lib",
Danny Epsteinc49e7b82020-08-05 15:26:03 -0700123 "car-ui-lib",
Brad Stenningfb198132018-12-12 13:33:14 -0800124 "android.car.userlib",
Alex Stetson30dbdac2020-07-16 14:10:44 -0700125 "androidx-constraintlayout_constraintlayout",
126 "car-uxr-client-lib",
Brad Stenningfb198132018-12-12 13:33:14 -0800127 ],
128
129 libs: ["android.car"],
130
131 product_variables: {
132 pdk: {
133 enabled: false,
134 },
135 },
136}