1// Copyright (C) 2019 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
15android_app {
16    name: "BugReportApp",
17
18    srcs: ["src/**/*.java"],
19
20    resource_dirs: ["res"],
21
22    platform_apis: true,
23
24    aaptflags: ["--auto-add-overlay"],
25
26    optimize: {
27        enabled: false,
28    },
29
30    certificate: "platform",
31
32    privileged: true,
33
34    dex_preopt: {
35        enabled: false,
36    },
37
38    libs: [
39        "android.car",
40    ],
41
42    static_libs: [
43        "androidx.recyclerview_recyclerview",
44        "car-br-auto-value-jar",
45        "car-br-google-api-client-android-jar",
46        "car-br-google-api-java-client-jar",
47        "car-br-google-http-client-android-jar",
48        "car-br-google-http-client-jackson2-jar",
49        "car-br-google-http-client-jar",
50        "car-br-google-oauth-client-jar",
51        "car-br-google-storage-services-jar",
52        "car-br-jackson-core-jar",
53        "car-br-grpc-context-jar",
54        "car-br-opencensus-api-jar",
55        "car-br-opencensus-contrib-http-util-jar",
56        "guava",
57        "jsr305",
58    ],
59
60    required: ["privapp_whitelist_com.android.car.bugreport"],
61
62    // Explicitly define annotation processors even if javac can find them from static_libs.
63    plugins: ["car-br-auto-value"],
64}
65