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//
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_app {
21    name: "CarEvsCameraPreviewApp",
22
23    owner: "google",
24
25    srcs: ["src/**/*.java"],
26
27    resource_dirs: ["res"],
28
29    // registerReceiverForAllUsers() is a hidden api.
30    platform_apis: true,
31
32    certificate: "platform",
33
34    optimize: {
35        enabled: false,
36    },
37
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
45    libs: [
46        "android.car",
47        "android.car-system-stubs",
48    ],
49
50    static_libs: [
51        "androidx.annotation_annotation",
52        "car-evs-helper-lib",
53    ],
54
55    // To make this app be able to re-installed
56    use_embedded_native_libs: true,
57    jni_libs: ["libcarevsglrenderer_jni"],
58}
59