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 19java_import { 20 name: "tv-auto-common-jar", 21 jars: ["m2/auto-common-0.10.jar"], 22 host_supported: true, 23 sdk_version: "current", 24} 25 26java_import { 27 name: "tv-auto-factory-jar", 28 jars: ["m2/auto-factory-1.0-beta6.jar"], 29 host_supported: true, 30 sdk_version: "current", 31} 32 33java_plugin { 34 name: "tv-auto-factory", 35 static_libs: [ 36 "jsr330", 37 "tv-auto-common-jar", 38 "tv-auto-factory-jar", 39 "tv-auto-value-jar", 40 "tv-google-java-format-jar", 41 "tv-guava-jre-jar", 42 "tv-javapoet-jar", 43 "tv-javax-annotations-jar", 44 ], 45 processor_class: "com.google.auto.factory.processor.AutoFactoryProcessor", 46 generates_api: true, 47} 48 49java_import { 50 name: "tv-auto-value-jar", 51 jars: ["m2/auto-value-1.5.3.jar"], 52 host_supported: true, 53 sdk_version: "current", 54} 55 56java_plugin { 57 name: "tv-auto-value", 58 static_libs: [ 59 "tv-auto-value-jar", 60 "tv-guava-jre-jar", 61 ], 62 processor_class: "com.google.auto.value.processor.AutoValueProcessor", 63} 64 65java_import { 66 name: "tv-error-prone-annotations-jar", 67 jars: ["m2/error_prone_annotations-2.3.2.jar"], 68 sdk_version: "current", 69} 70 71java_import { 72 name: "tv-google-java-format-jar", 73 jars: ["google-java-format-1.7-all-deps.jar"], 74 host_supported: true, 75 sdk_version: "current", 76} 77 78java_import { 79 name: "tv-guava-android-jar", 80 jars: ["m2/guava-28.0-android.jar"], 81 sdk_version: "current", 82} 83 84java_import { 85 name: "tv-guava-jre-jar", 86 jars: ["m2/guava-28.0-jre.jar"], 87 host_supported: true, 88 sdk_version: "current", 89} 90 91java_import { 92 name: "tv-guava-failureaccess-jar", 93 jars: ["m2/failureaccess-1.0.1.jar"], 94 host_supported: true, 95 sdk_version: "current", 96} 97 98java_import_host { 99 name: "tv-javapoet-jar", 100 jars: ["m2/javapoet-1.11.1.jar"], 101} 102 103java_import { 104 name: "tv-javax-annotations-jar", 105 jars: ["javax.annotation-api-1.2.jar"], 106 host_supported: true, 107 sdk_version: "current", 108} 109 110android_library_import { 111 name: "tv-lib-exoplayer", 112 aars: ["exoplayer-r1.5.16.aar"], 113 sdk_version: "current", 114} 115 116android_library_import { 117 name: "tv-lib-exoplayer-v2-core", 118 aars: ["exoplayer-core-2.10.1.aar"], 119 sdk_version: "current", 120} 121 122android_library_import { 123 name: "tv-lib-exoplayer-v2-ui", 124 aars: ["exoplayer-ui-2.10.1.aar"], 125 sdk_version: "current", 126} 127 128java_import_host { 129 name: "tv-lib-dagger-compiler-import", 130 jars: [ 131 "m2/dagger-compiler-2.23.jar", 132 "m2/dagger-producers-2.23.jar", 133 "m2/dagger-spi-2.23.jar", 134 ], 135} 136 137java_import { 138 name: "tv-lib-dagger", 139 jars: ["m2/dagger-2.23.jar"], 140 host_supported: true, 141 sdk_version: "current", 142} 143 144java_plugin { 145 name: "tv-lib-dagger-compiler", 146 static_libs: [ 147 "tv-lib-dagger-compiler-import", 148 "tv-guava-jre-jar", 149 "tv-javapoet-jar", 150 "jsr330", 151 "tv-lib-dagger", 152 ], 153 processor_class: "dagger.internal.codegen.ComponentProcessor", 154 generates_api: true, 155 // shade guava to avoid conflicts with guava embedded in Error Prone. 156 jarjar_rules: "m2/dagger-jarjar-rules.txt", 157} 158 159android_library_import { 160 name: "tv-lib-dagger-android", 161 aars: ["m2/dagger-android-2.23.aar"], 162 sdk_version: "current", 163} 164 165java_import_host { 166 name: "tv-lib-dagger-android-processor-import", 167 jars: [ 168 "m2/dagger-android-jarimpl-2.23.jar", 169 "m2/dagger-android-processor-2.23.jar", 170 "m2/dagger-spi-2.23.jar", 171 "m2/protobuf-java-3.7.0.jar", 172 ], 173} 174 175java_plugin { 176 name: "tv-lib-dagger-android-processor", 177 static_libs: [ 178 "tv-lib-dagger-android-processor-import", 179 "tv-guava-jre-jar", 180 "tv-guava-failureaccess-jar", 181 "tv-javapoet-jar", 182 "tv-google-java-format-jar", 183 "jsr330", 184 "tv-lib-dagger", 185 ], 186 processor_class: "dagger.android.processor.AndroidProcessor", 187 generates_api: true, 188 // shade guava to avoid conflicts with guava embedded in Error Prone. 189 jarjar_rules: "m2/dagger-jarjar-rules.txt", 190} 191 192java_import { 193 name: "tv-lib-truth", 194 jars: ["truth-0.45.jar"], 195 host_supported: true, 196 sdk_version: "current", 197} 198