1// Copyright (C) 2014 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
15prebuilt_etc {
16    name: "privapp_whitelist_com.android.tv.settings",
17    system_ext_specific: true,
18    sub_dir: "permissions",
19    src: "com.android.tv.settings.xml",
20    filename_from_src: true,
21}
22
23android_app {
24    name: "TvSettings",
25    defaults: ["SettingsLibDefaults"],
26    platform_apis: true,
27    certificate: "platform",
28    system_ext_specific: true,
29    required: ["privapp_whitelist_com.android.tv.settings"],
30
31    optimize: {
32        proguard_flags_files: ["proguard.cfg"],
33    },
34
35    privileged: true,
36
37    static_libs: [
38        "androidx.recyclerview_recyclerview",
39        "androidx.preference_preference",
40        "androidx.appcompat_appcompat",
41        "androidx.legacy_legacy-preference-v14",
42        "androidx.leanback_leanback-preference",
43        "androidx.leanback_leanback",
44        "androidx.lifecycle_lifecycle-extensions",
45        "androidx.lifecycle_lifecycle-common-java8",
46        "androidx.annotation_annotation",
47        "statslog-tvsettings",
48        "TwoPanelSettingsLib"
49    ],
50
51    resource_dirs: ["res"],
52
53    srcs: [
54        "src/**/*.java",
55        "src/**/I*.aidl",
56    ],
57}
58