blob: 192d49ae87d6ad0ff8fae5642f6f112340088d8f [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",
Brad Stenningfb198132018-12-12 13:33:14 -080040 "android.car.userlib",
Heemin Seogd66bad52019-03-15 16:43:11 -070041 "androidx-constraintlayout_constraintlayout"
Brad Stenningfb198132018-12-12 13:33:14 -080042 ],
43
44 libs: ["android.car"],
45
46 product_variables: {
47 pdk: {
48 enabled: false,
49 },
50 },
51}
52
Priyank Singh98d20812019-06-19 14:01:08 -070053// Duplicate of CarNotification which includes testing only resources for Robolectric
54android_app {
55 name: "CarNotificationForTesting",
56
57 srcs: ["src/**/*.java"],
58
59 // Testing only resources must be applied last so they take precedence.
60 resource_dirs: [
61 "res",
62 "tests/robotests/res",
63 ],
64
65 platform_apis: true,
66 certificate: "platform",
67 privileged: true,
68
69 optimize: {
70 enabled: false,
71 },
72
73 dex_preopt: {
74 enabled: false,
75 },
76
77 static_libs: [
78 "androidx.cardview_cardview",
79 "androidx.recyclerview_recyclerview",
80 "androidx.palette_palette",
81 "car-assist-client-lib",
82 "android.car.userlib",
83 "androidx-constraintlayout_constraintlayout"
84 ],
85
86 libs: ["android.car"],
87
88 product_variables: {
89 pdk: {
90 enabled: false,
91 },
92 },
93}
94
Brad Stenningfb198132018-12-12 13:33:14 -080095// As Lib
96android_library {
97 name: "CarNotificationLib",
98 srcs: ["src/**/*.java"],
99
100 resource_dirs: ["res"],
101
102 manifest: "AndroidManifest-withoutActivity.xml",
103
104 platform_apis: true,
105
106 optimize: {
107 enabled: false,
108 },
109
110 dex_preopt: {
111 enabled: false,
112 },
113
114 static_libs: [
Heemin Seogd66bad52019-03-15 16:43:11 -0700115 "androidx.cardview_cardview",
116 "androidx.recyclerview_recyclerview",
Brad Stenningfb198132018-12-12 13:33:14 -0800117 "androidx.palette_palette",
Uriel Sade48e479e2018-12-03 10:50:29 -0800118 "car-assist-client-lib",
Brad Stenningfb198132018-12-12 13:33:14 -0800119 "android.car.userlib",
Heemin Seogd66bad52019-03-15 16:43:11 -0700120 "androidx-constraintlayout_constraintlayout"
Brad Stenningfb198132018-12-12 13:33:14 -0800121 ],
122
123 libs: ["android.car"],
124
125 product_variables: {
126 pdk: {
127 enabled: false,
128 },
129 },
130}