1// Copyright (C) 2019 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19android_library { 20 name: "tv-common", 21 srcs: [ 22 "src/**/*.java", 23 "src/**/*.proto", 24 ], 25 26 sdk_version: "system_current", 27 28 proto: { 29 type: "lite", 30 }, 31 32 resource_dirs: ["res"], 33 34 libs: [ 35 "android-support-annotations", 36 "tv-auto-value-jar", 37 "tv-auto-factory-jar", 38 "tv-error-prone-annotations-jar", 39 "tv-javax-annotations-jar", 40 41 ], 42 43 static_libs: [ 44 "androidx.legacy_legacy-support-core-ui", 45 "androidx.appcompat_appcompat", 46 "androidx.preference_preference", 47 "androidx.leanback_leanback", 48 "androidx.tvprovider_tvprovider", 49 "tv-guava-android-jar", 50 "tv-guava-failureaccess-jar", 51 "jsr330", 52 "tv-lib-dagger", 53 "tv-lib-exoplayer", 54 "tv-lib-exoplayer-v2-core", 55 "tv-lib-dagger-android", 56 ], 57 58 plugins: [ 59 "tv-auto-value", 60 "tv-auto-factory", 61 "tv-lib-dagger-android-processor", 62 "tv-lib-dagger-compiler", 63 ], 64 65 min_sdk_version: "23", 66 lint: { 67 baseline_filename: "lint-baseline.xml", 68 }, 69 70 // TODO(b/77284273): generate build config after dagger supports libraries 71 //include $(LOCAL_PATH)/buildconfig.mk 72 73} 74