1*e074118cSAndroid Build Coastguard Worker// Copyright (C) 2023 The Android Open Source Project 2*e074118cSAndroid Build Coastguard Worker// 3*e074118cSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*e074118cSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*e074118cSAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*e074118cSAndroid Build Coastguard Worker// 7*e074118cSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*e074118cSAndroid Build Coastguard Worker// 9*e074118cSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*e074118cSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*e074118cSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*e074118cSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*e074118cSAndroid Build Coastguard Worker// limitations under the License. 14*e074118cSAndroid Build Coastguard Worker// 15*e074118cSAndroid Build Coastguard Worker// 16*e074118cSAndroid Build Coastguard Worker 17*e074118cSAndroid Build Coastguard Workerpackage { 18*e074118cSAndroid Build Coastguard Worker default_applicable_licenses: ["external_mockito_kotlin_license"], 19*e074118cSAndroid Build Coastguard Worker} 20*e074118cSAndroid Build Coastguard Worker 21*e074118cSAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of 22*e074118cSAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect 23*e074118cSAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct. 24*e074118cSAndroid Build Coastguard Worker// 25*e074118cSAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory. 26*e074118cSAndroid Build Coastguard Worker// 27*e074118cSAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses, 28*e074118cSAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the 29*e074118cSAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed. 30*e074118cSAndroid Build Coastguard Worker// 31*e074118cSAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private" 32*e074118cSAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be 33*e074118cSAndroid Build Coastguard Worker// used in the current project. 34*e074118cSAndroid Build Coastguard Worker// See: http://go/android-license-faq 35*e074118cSAndroid Build Coastguard Workerlicense { 36*e074118cSAndroid Build Coastguard Worker name: "external_mockito_kotlin_license", 37*e074118cSAndroid Build Coastguard Worker visibility: [":__subpackages__"], 38*e074118cSAndroid Build Coastguard Worker license_kinds: [ 39*e074118cSAndroid Build Coastguard Worker "SPDX-license-identifier-Apache-2.0", 40*e074118cSAndroid Build Coastguard Worker "SPDX-license-identifier-MIT", 41*e074118cSAndroid Build Coastguard Worker ], 42*e074118cSAndroid Build Coastguard Worker license_text: [ 43*e074118cSAndroid Build Coastguard Worker "LICENSE", 44*e074118cSAndroid Build Coastguard Worker ], 45*e074118cSAndroid Build Coastguard Worker} 46*e074118cSAndroid Build Coastguard Worker 47*e074118cSAndroid Build Coastguard Workerjava_library { 48*e074118cSAndroid Build Coastguard Worker name: "mockito-kotlin-nodeps", 49*e074118cSAndroid Build Coastguard Worker hostdex: true, 50*e074118cSAndroid Build Coastguard Worker srcs: ["mockito-kotlin/src/main/**/*.kt"], 51*e074118cSAndroid Build Coastguard Worker libs: [ 52*e074118cSAndroid Build Coastguard Worker "mockito", 53*e074118cSAndroid Build Coastguard Worker "kotlinx_coroutines", 54*e074118cSAndroid Build Coastguard Worker ], 55*e074118cSAndroid Build Coastguard Worker 56*e074118cSAndroid Build Coastguard Worker sdk_version: "module_current", 57*e074118cSAndroid Build Coastguard Worker 58*e074118cSAndroid Build Coastguard Worker host_supported: true, 59*e074118cSAndroid Build Coastguard Worker} 60*e074118cSAndroid Build Coastguard Worker 61*e074118cSAndroid Build Coastguard Workerjava_library_static { 62*e074118cSAndroid Build Coastguard Worker // TODO (b/289573112): mockito-kotlin name is already in use by a WearOS prebuilt. 63*e074118cSAndroid Build Coastguard Worker // Rename to mockito-kotlin once that prebuilt is removed. 64*e074118cSAndroid Build Coastguard Worker name: "mockito-kotlin2", 65*e074118cSAndroid Build Coastguard Worker hostdex: true, 66*e074118cSAndroid Build Coastguard Worker srcs: ["mockito-kotlin/src/main/**/*.kt"], 67*e074118cSAndroid Build Coastguard Worker 68*e074118cSAndroid Build Coastguard Worker static_libs: [ 69*e074118cSAndroid Build Coastguard Worker "mockito", 70*e074118cSAndroid Build Coastguard Worker "kotlinx_coroutines", 71*e074118cSAndroid Build Coastguard Worker ], 72*e074118cSAndroid Build Coastguard Worker 73*e074118cSAndroid Build Coastguard Worker sdk_version: "module_current", 74*e074118cSAndroid Build Coastguard Worker 75*e074118cSAndroid Build Coastguard Worker host_supported: true, 76*e074118cSAndroid Build Coastguard Worker} 77