Zhomart Mukhamejanov | 7465ac4 | 2019-12-18 15:15:48 -0800 | [diff] [blame] | 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 | |
Bob Badour | 4da7d22 | 2021-02-22 16:14:07 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Zhomart Mukhamejanov | 7465ac4 | 2019-12-18 15:15:48 -0800 | [diff] [blame] | 19 | android_app { |
| 20 | name: "BugReportApp", |
| 21 | |
| 22 | srcs: ["src/**/*.java"], |
| 23 | |
| 24 | resource_dirs: ["res"], |
| 25 | |
| 26 | platform_apis: true, |
| 27 | |
| 28 | aaptflags: ["--auto-add-overlay"], |
| 29 | |
| 30 | optimize: { |
| 31 | enabled: false, |
| 32 | }, |
| 33 | |
| 34 | certificate: "platform", |
| 35 | |
| 36 | privileged: true, |
| 37 | |
Ulya Trafimovich | e043adf | 2020-12-23 13:09:37 +0000 | [diff] [blame] | 38 | enforce_uses_libs: false, |
Zhomart Mukhamejanov | 7465ac4 | 2019-12-18 15:15:48 -0800 | [diff] [blame] | 39 | dex_preopt: { |
| 40 | enabled: false, |
| 41 | }, |
| 42 | |
| 43 | libs: [ |
| 44 | "android.car", |
Colin Cross | 4b5e947 | 2020-06-26 11:08:31 -0700 | [diff] [blame] | 45 | "auto_value_annotations", |
Zhomart Mukhamejanov | 7465ac4 | 2019-12-18 15:15:48 -0800 | [diff] [blame] | 46 | ], |
| 47 | |
| 48 | static_libs: [ |
| 49 | "androidx.recyclerview_recyclerview", |
Zhomart Mukhamejanov | 7465ac4 | 2019-12-18 15:15:48 -0800 | [diff] [blame] | 50 | "car-br-google-api-client-android-jar", |
| 51 | "car-br-google-api-java-client-jar", |
| 52 | "car-br-google-http-client-android-jar", |
| 53 | "car-br-google-http-client-jackson2-jar", |
| 54 | "car-br-google-http-client-jar", |
| 55 | "car-br-google-oauth-client-jar", |
| 56 | "car-br-google-storage-services-jar", |
| 57 | "car-br-jackson-core-jar", |
| 58 | "car-br-grpc-context-jar", |
| 59 | "car-br-opencensus-api-jar", |
| 60 | "car-br-opencensus-contrib-http-util-jar", |
| 61 | "guava", |
| 62 | "jsr305", |
| 63 | ], |
| 64 | |
Yan Zhu | ca7c459 | 2020-08-14 10:05:23 -0700 | [diff] [blame] | 65 | required: ["allowed_privapp_com.android.car.bugreport"], |
Zhomart Mukhamejanov | 7465ac4 | 2019-12-18 15:15:48 -0800 | [diff] [blame] | 66 | |
| 67 | // Explicitly define annotation processors even if javac can find them from static_libs. |
Colin Cross | 4b5e947 | 2020-06-26 11:08:31 -0700 | [diff] [blame] | 68 | plugins: ["auto_value_plugin"], |
Zhomart Mukhamejanov | 7465ac4 | 2019-12-18 15:15:48 -0800 | [diff] [blame] | 69 | } |