Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2021 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
Bob Badour | 5e29c12 | 2021-04-21 14:45:18 -0700 | [diff] [blame] | 16 | package { |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 20 | android_app { |
| 21 | name: "CarEvsCameraPreviewApp", |
| 22 | |
Changyeon Jo | 7b06730 | 2021-03-07 21:37:07 -0800 | [diff] [blame] | 23 | owner: "google", |
| 24 | |
Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 25 | srcs: ["src/**/*.java"], |
| 26 | |
| 27 | resource_dirs: ["res"], |
| 28 | |
Changyeon Jo | 7b06730 | 2021-03-07 21:37:07 -0800 | [diff] [blame] | 29 | // This app uses system APIs. |
Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 30 | sdk_version: "system_current", |
| 31 | |
| 32 | certificate: "platform", |
| 33 | |
| 34 | optimize: { |
| 35 | enabled: false, |
| 36 | }, |
| 37 | |
Changyeon Jo | 7b06730 | 2021-03-07 21:37:07 -0800 | [diff] [blame] | 38 | // Disable dexpreopt and verify_uses_libraries check as the app contains |
| 39 | // no Java code to be dexpreopted. |
| 40 | enforce_uses_libs:false, |
| 41 | dex_preopt: { |
| 42 | enabled: false, |
| 43 | }, |
| 44 | |
Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 45 | libs: [ |
| 46 | "android.car-system-stubs", |
| 47 | "androidx.annotation_annotation", |
| 48 | ], |
| 49 | |
Changyeon Jo | 7b06730 | 2021-03-07 21:37:07 -0800 | [diff] [blame] | 50 | static_libs: ["androidx.annotation_annotation"], |
Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 51 | |
Changyeon Jo | 7b06730 | 2021-03-07 21:37:07 -0800 | [diff] [blame] | 52 | // To make this app be able to re-installed |
| 53 | use_embedded_native_libs: true, |
| 54 | jni_libs: ["libcarevsglrenderer_jni"], |
Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 55 | |
| 56 | product_variables: { |
| 57 | pdk: { |
Changyeon Jo | 7b06730 | 2021-03-07 21:37:07 -0800 | [diff] [blame] | 58 | // disable build in PDK |
Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 59 | enabled: false, |
Changyeon Jo | 7b06730 | 2021-03-07 21:37:07 -0800 | [diff] [blame] | 60 | }, |
| 61 | }, |
Changyeon Jo | e789ee6 | 2021-01-05 21:42:01 -0800 | [diff] [blame] | 62 | } |