1//
2// Copyright (C) 2023 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
20prebuilt_etc {
21    name: "privapp_permissions_com.android.tv.feedbackconsent",
22    system_ext_specific: true,
23    sub_dir: "permissions",
24    src: "privapp-permissions-com.android.tv.feedbackconsent.xml",
25    filename_from_src: true,
26}
27
28prebuilt_etc {
29    name: "config-com.android.tv.feedbackconsent",
30    system_ext_specific: true,
31    relative_install_path: "sysconfig",
32    src: "config-com.android.tv.feedbackconsent.xml",
33    filename_from_src: true,
34}
35
36android_library {
37    name: "TvFeedbackConsent-core",
38    srcs: [
39        "src/**/*.java",
40        "src/**/*.kt",
41        "src/**/I*.aidl",
42    ],
43    resource_dirs: [
44        "res",
45    ],
46    static_libs: [
47        "androidx.leanback_leanback-preference",
48        "androidx.leanback_leanback",
49        "androidx.recyclerview_recyclerview",
50    ],
51    manifest: "AndroidManifest.xml",
52}
53
54android_app {
55    name: "TvFeedbackConsent",
56    resource_dirs: [],
57    static_libs: [
58        "TvFeedbackConsent-core",
59    ],
60
61    platform_apis: true,
62    system_ext_specific: true,
63    certificate: "platform",
64    privileged: true,
65    required: [
66        "privapp_permissions_com.android.tv.feedbackconsent",
67        "config-com.android.tv.feedbackconsent",
68    ],
69    optimize: {
70        optimize: true,
71        optimized_shrink_resources: true,
72    },
73}
74