1// 2// Copyright (C) 2019 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// 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21android_app { 22 name: "sampletunertvinput", 23 srcs: ["src/**/*.java"], 24 25 optimize: { 26 enabled: false, 27 }, 28 29 platform_apis: true, 30 system_ext_specific: true, 31 32 privileged: true, 33 certificate: "platform", 34 // product_specific: true, 35 // sdk_version: "system_current", 36 resource_dirs: ["res"], 37 static_libs: [ 38 "android-support-annotations", 39 "android-support-compat", 40 "android-support-core-ui", 41 "android-support-v7-palette", 42 "android-support-v7-recyclerview", 43 "androidx.leanback_leanback", 44 "androidx.tvprovider_tvprovider", 45 "jsr330", 46 "live-tv-tuner-proto", 47 "tv-auto-value-jar", 48 "tv-auto-factory-jar", 49 "tv-common", 50 "tv-error-prone-annotations-jar", 51 "tv-guava-android-jar", 52 "tv-javax-annotations-jar", 53 "tv-lib-dagger", 54 "tv-lib-exoplayer", 55 "tv-lib-exoplayer-v2-core", 56 "tv-lib-dagger-android", 57 "tv-test-common", 58 ], 59 optional_uses_libs: ["com.android.libraries.tv.tvsystem"], 60 aaptflags: ["-0 .ts"], 61 plugins: [ 62 "tv-auto-value", 63 "tv-auto-factory", 64 ], 65 required: ["com.android.tv.samples.sampletunertvinput.xml"], 66 // min_sdk_version: "29", 67} 68 69prebuilt_etc { 70 name: "com.android.tv.samples.sampletunertvinput.xml", 71 sub_dir: "permissions", 72 src: "com.android.tv.samples.sampletunertvinput.xml", 73 system_ext_specific: true, 74} 75