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 15// Classic TvSettings 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_app { 21 name: "TvSettings", 22 manifest: "Settings/AndroidManifest.xml", 23 srcs: [ 24 "Settings/src/**/*.java", 25 "Settings/src/**/I*.aidl", 26 ], 27 aidl: { 28 local_include_dirs: ["Settings/src"], 29 }, 30 resource_dirs: ["Settings/res"], 31 defaults: ["SettingsLibDefaults"], 32 platform_apis: true, 33 certificate: "platform", 34 system_ext_specific: true, 35 required: ["privapp_whitelist_com.android.tv.settings"], 36 optimize: { 37 proguard_flags_files: ["Settings/proguard.flags"], 38 }, 39 privileged: true, 40 static_libs: [ 41 "androidx-constraintlayout_constraintlayout", 42 "androidx.recyclerview_recyclerview", 43 "androidx.preference_preference", 44 "androidx.appcompat_appcompat", 45 "androidx.legacy_legacy-preference-v14", 46 "androidx.leanback_leanback-preference", 47 "androidx.leanback_leanback", 48 "androidx.lifecycle_lifecycle-extensions", 49 "androidx.lifecycle_lifecycle-common-java8", 50 "androidx.annotation_annotation", 51 "statslog-tvsettings", 52 "tvsettings-logtags", 53 "TwoPanelSettingsLib", 54 "zxing-core-1.7", 55 "TvSettingsAPI", 56 ], 57} 58 59// Two-panel TvSettings 60android_app { 61 name: "TvSettingsTwoPanel", 62 manifest: "Settings/AndroidManifest.xml", 63 srcs: [ 64 "Settings/src/**/*.java", 65 "Settings/src/**/I*.aidl", 66 ], 67 aidl: { 68 local_include_dirs: ["Settings/src"], 69 }, 70 // Resources in res-twopanel should be applied last so they take precedence 71 resource_dirs: [ 72 "Settings/res", 73 "Settings/res-twopanel", 74 ], 75 overrides: ["TvSettings"], 76 defaults: ["SettingsLibDefaults"], 77 platform_apis: true, 78 certificate: "platform", 79 system_ext_specific: true, 80 required: ["privapp_whitelist_com.android.tv.settings"], 81 optimize: { 82 proguard_flags_files: ["Settings/proguard.flags"], 83 }, 84 privileged: true, 85 static_libs: [ 86 "androidx-constraintlayout_constraintlayout", 87 "androidx.recyclerview_recyclerview", 88 "androidx.preference_preference", 89 "androidx.appcompat_appcompat", 90 "androidx.legacy_legacy-preference-v14", 91 "androidx.leanback_leanback-preference", 92 "androidx.leanback_leanback", 93 "androidx.lifecycle_lifecycle-extensions", 94 "androidx.lifecycle_lifecycle-common-java8", 95 "androidx.annotation_annotation", 96 "statslog-tvsettings", 97 "tvsettings-logtags", 98 "TwoPanelSettingsLib", 99 "zxing-core-1.7", 100 "TvSettingsAPI", 101 ], 102 jacoco: { 103 include_filter: [ 104 "com.android.tv.settings.*", 105 "com.android.settingslib.*", 106 "com.android.tv.twopanelsettingsoverlay.*", 107 ], 108 }, 109} 110