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