1// 2// Copyright (C) 2015 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: ["packages_apps_TV_license"], 19} 20 21// See: http://go/android-license-faq 22license { 23 name: "packages_apps_TV_license", 24 package_name: "Android Live TV App", 25 visibility: [":__subpackages__"], 26 license_kinds: [ 27 "SPDX-license-identifier-Apache-2.0", 28 "SPDX-license-identifier-BSD", 29 "SPDX-license-identifier-MIT", 30 ], 31 license_text: ["res/raw/third_party_licenses"], 32} 33 34version_name = "1.24-asop" 35version_code = "417000452" 36 37android_app { 38 name: "LiveTv", 39 40 srcs: ["src/**/*.java"], 41 42 // TODO(b/122608868) turn proguard back on 43 optimize: { 44 enabled: false, 45 }, 46 47 // It is required for com.android.providers.tv.permission.ALL_EPG_DATA 48 privileged: true, 49 product_specific: true, 50 51 sdk_version: "system_current", 52 min_sdk_version: "23", // M 53 54 resource_dirs: [ 55 "res", 56 "material_res", 57 58 ], 59 60 required: ["com.android.tv.xml"], 61 62 libs: ["tv-guava-android-jar"], 63 64 static_libs: [ 65 "android-support-annotations", 66 "android-support-compat", 67 "android-support-v7-recyclerview", 68 "androidx.legacy_legacy-support-core-ui", 69 "androidx.leanback_leanback", 70 "androidx.leanback_leanback-preference", 71 "androidx.palette_palette", 72 "androidx.preference_preference", 73 "androidx.tvprovider_tvprovider", 74 "jsr330", 75 "live-channels-partner-support", 76 "live-tv-tuner-proto", 77 "live-tv-tuner", 78 "tv-auto-value-jar", 79 "tv-auto-factory-jar", 80 "tv-common", 81 "tv-error-prone-annotations-jar", 82 "tv-ratings-resources", 83 "tv-javax-annotations-jar", 84 "tv-lib-dagger", 85 "tv-lib-exoplayer", 86 "tv-lib-exoplayer-v2-core", 87 "tv-lib-dagger-android", 88 ], 89 90 plugins: [ 91 "tv-auto-value", 92 "tv-auto-factory", 93 "tv-lib-dagger-android-processor", 94 "tv-lib-dagger-compiler", 95 ], 96 97 javacflags: [ 98 "-Xlint:deprecation", 99 "-Xlint:unchecked", 100 ], 101 102 aaptflags: [ 103 "--version-name", 104 version_name, 105 106 "--version-code", 107 version_code, 108 109 "--extra-packages", 110 "com.android.tv.tuner", 111 112 "--extra-packages", 113 "com.android.tv.common", 114 ], 115} 116 117prebuilt_etc { 118 name: "com.android.tv.xml", 119 sub_dir: "permissions", 120 src: "com.android.tv.xml", 121 product_specific: true, 122} 123