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// Added automatically by a large-scale-change that took the approach of
22// 'apply every license found to every target'. While this makes sure we respect
23// every license restriction, it may not be entirely correct.
24//
25// e.g. GPL in an MIT project might only apply to the contrib/ directory.
26//
27// Please consider splitting the single license below into multiple licenses,
28// taking care not to lose any license_kind information, and overriding the
29// default license using the 'licenses: [...]' property on targets as needed.
30//
31// For unused files, consider creating a 'fileGroup' with "//visibility:private"
32// to attach the license to, and including a comment whether the files may be
33// used in the current project.
34// See: http://go/android-license-faq
35license {
36    name: "packages_apps_TV_license",
37    visibility: [":__subpackages__"],
38    license_kinds: [
39        "SPDX-license-identifier-Apache-2.0",
40        "SPDX-license-identifier-BSD",
41        "SPDX-license-identifier-MIT",
42    ],
43    // large-scale-change unable to identify any license_text files
44}
45
46version_name = "1.24-asop"
47version_code = "417000452"
48
49android_app {
50    name: "LiveTv",
51
52    srcs: ["src/**/*.java"],
53
54    // TODO(b/122608868) turn proguard back on
55    optimize: {
56        enabled: false,
57    },
58
59    // It is required for com.android.providers.tv.permission.ALL_EPG_DATA
60    privileged: true,
61    product_specific: true,
62
63    sdk_version: "system_current",
64    min_sdk_version: "23", // M
65
66    resource_dirs: [
67        "res",
68        "material_res",
69
70    ],
71
72    required: ["com.android.tv.xml"],
73
74    libs: ["tv-guava-android-jar"],
75
76    static_libs: [
77        "android-support-annotations",
78        "android-support-compat",
79        "android-support-v7-recyclerview",
80        "androidx.legacy_legacy-support-core-ui",
81        "androidx.leanback_leanback",
82        "androidx.leanback_leanback-preference",
83        "androidx.palette_palette",
84        "androidx.preference_preference",
85        "androidx.tvprovider_tvprovider",
86        "jsr330",
87        "live-channels-partner-support",
88        "live-tv-tuner-proto",
89        "live-tv-tuner",
90        "tv-auto-value-jar",
91        "tv-auto-factory-jar",
92        "tv-common",
93        "tv-error-prone-annotations-jar",
94        "tv-ratings-resources",
95        "tv-javax-annotations-jar",
96        "tv-lib-dagger",
97        "tv-lib-exoplayer",
98        "tv-lib-exoplayer-v2-core",
99        "tv-lib-dagger-android",
100    ],
101
102    plugins: [
103        "tv-auto-value",
104        "tv-auto-factory",
105        "tv-lib-dagger-android-processor",
106        "tv-lib-dagger-compiler",
107    ],
108
109    javacflags: [
110        "-Xlint:deprecation",
111        "-Xlint:unchecked",
112    ],
113
114    aaptflags: [
115        "--version-name",
116        version_name,
117
118        "--version-code",
119        version_code,
120
121        "--extra-packages",
122        "com.android.tv.tuner",
123
124        "--extra-packages",
125        "com.android.tv.common",
126    ],
127}
128
129prebuilt_etc {
130    name: "com.android.tv.xml",
131    sub_dir: "permissions",
132    src: "com.android.tv.xml",
133    product_specific: true,
134}
135