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