1// Copyright 2024 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_library_host { 20 name: "tradefed-avd-util", 21 // Restrict visibility to only those targets that need to access it. 22 visibility: [ 23 "//tools/tradefederation/core", 24 ], 25 defaults: ["tradefed_defaults"], 26 java_version: "11", 27 srcs: [ 28 "com/**/*.java", 29 ], 30 static_libs: [ 31 "tradefed-common-util", 32 "virtual-device-manager-proto", 33 "gson", 34 ], 35 libs: [ 36 "ddmlib-prebuilt", 37 "json-prebuilt", 38 "guava", 39 ], 40 plugins: [ 41 ], 42} 43 44tradefed_java_library_host { 45 name: "tradefed-avd-util-tests", 46 // Restrict visibility to only those targets that need to access it. 47 visibility: [ 48 "//tools/tradefederation/core", 49 "//tools/tradefederation/core/javatests", 50 ], 51 defaults: ["tradefed_defaults"], 52 java_version: "11", 53 srcs: [ 54 "javatests/**/*.java", 55 ], 56 static_libs: [ 57 "tradefed-avd-util", 58 "tradefed-common-util", 59 "virtual-device-manager-proto", 60 "junit-host", 61 "mockito", 62 "objenesis", 63 ], 64 libs: [ 65 "guava", 66 ], 67 plugins: [ 68 ], 69} 70