blob: 56e83d489313b8cefcfb01feab28bd660915a19c [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: [
36 "androidx.car_car",
37 "androidx.palette_palette",
38 "car-theme-lib-bp",
39 "android.car.userlib",
Brad Stenning1d6225f2018-12-14 13:51:59 -080040 "androidx-constraintlayout_constraintlayout-solver"
Brad Stenningfb198132018-12-12 13:33:14 -080041 ],
42
43 libs: ["android.car"],
44
45 product_variables: {
46 pdk: {
47 enabled: false,
48 },
49 },
50}
51
52// As Lib
53android_library {
54 name: "CarNotificationLib",
55 srcs: ["src/**/*.java"],
56
57 resource_dirs: ["res"],
58
59 manifest: "AndroidManifest-withoutActivity.xml",
60
61 platform_apis: true,
62
63 optimize: {
64 enabled: false,
65 },
66
67 dex_preopt: {
68 enabled: false,
69 },
70
71 static_libs: [
72 "androidx.car_car",
73 "androidx.palette_palette",
74 "car-theme-lib-bp",
75 "android.car.userlib",
Brad Stenning1d6225f2018-12-14 13:51:59 -080076 "androidx-constraintlayout_constraintlayout-solver"
Brad Stenningfb198132018-12-12 13:33:14 -080077 ],
78
79 libs: ["android.car"],
80
81 product_variables: {
82 pdk: {
83 enabled: false,
84 },
85 },
86}
Priaynk Singhfaaec8f2018-12-03 09:45:43 -080087
88// Duplicate of CarNotification which includes testing only resources for Robolectric
89
90android_app {
91 name: "CarNotificationForTesting",
92
93 srcs: ["src/**/*.java"],
94
95 resource_dirs: ["res"],
96
97 platform_apis: true,
98
99 optimize: {
100 enabled: false,
101 },
102
103 dex_preopt: {
104 enabled: false,
105 },
106
107 static_libs: [
108 "androidx.car_car",
109 "androidx.palette_palette",
110 "car-theme-lib-bp",
111 "android.car.userlib",
112 "androidx-constraintlayout_constraintlayout-solver"
113 ],
114
115 libs: ["android.car"],
116
117 product_variables: {
118 pdk: {
119 enabled: false,
120 },
121 },
122}
123
124// As Lib
125android_library {
126 name: "CarNotificationModuleForTesting",
127 srcs: ["src/**/*.java"],
128
129 resource_dirs: ["res"],
130
131 manifest: "AndroidManifest-withoutActivity.xml",
132
133 platform_apis: true,
134
135 optimize: {
136 enabled: false,
137 },
138
139 dex_preopt: {
140 enabled: false,
141 },
142
143 static_libs: [
144 "androidx.car_car",
145 "androidx.palette_palette",
146 "car-theme-lib-bp",
147 "android.car.userlib",
148 "androidx-constraintlayout_constraintlayout-solver"
149 ],
150
151 libs: ["android.car"],
152
153 product_variables: {
154 pdk: {
155 enabled: false,
156 },
157 },
158}
159