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: "SampleNetworkTuner",
23
24    srcs: ["src/**/*.java"],
25
26    sdk_version: "system_current",
27    min_sdk_version: "23", // M
28
29    resource_dirs: [
30        "res",
31    ],
32
33    static_libs: [
34        "live-tv-tuner",
35        "live-tv-tuner-proto",
36        "tv-common",
37        "tv-lib-dagger",
38        "tv-lib-exoplayer",
39        "tv-lib-exoplayer-v2-core",
40        "tv-lib-exoplayer-v2-ui",
41        "tv-lib-dagger-android",
42        "live-channels-partner-support",
43    ],
44
45    plugins: [
46        "tv-lib-dagger-android-processor",
47        "tv-lib-dagger-compiler",
48    ],
49
50    aaptflags: [
51        "--version-name",
52        version_name,
53
54        "--version-code",
55        version_code,
56
57        "--extra-packages",
58        "com.android.tv.tuner",
59
60        "--extra-packages",
61        "com.android.tv.common",
62    ],
63}
64