blob: fb68c7281c373214cb26679b70fb378ce297b111 [file] [edit]
// Copyright (C) 2025 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Unbundled target (should stay that way).
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
car_testing_common_static_libs = [
"androidx.annotation_annotation",
"androidx.arch.core_core-testing",
"androidx.lifecycle_lifecycle-common-java8",
"androidx.lifecycle_lifecycle-extensions",
"junit",
]
android_library {
name: "car-testing-common-source",
srcs: ["src/**/*.java"],
optimize: {
enabled: false,
},
libs: ["android.car-stubs",],
sdk_version: "current",
min_sdk_version: "28", // P
target_sdk_version: "34",
static_libs: car_testing_common_static_libs,
}
java_genrule {
name: "car-testing-common-aar",
srcs: [
":car-testing-common-source{.aar}",
],
out: ["car-testing-common.aar"],
tools: [
"make_slim_aar",
],
cmd: "dir=packages/apps/Car/libs/car-testing-common && " +
"$(location make_slim_aar) --classes-allowlist com/android/car/testing/common $(out) " +
"$(location :car-testing-common-source{.aar})",
dist: {
targets: ["car-testing-common-aar",]
},
}
android_library_import {
name: "car-testing-common-prebuilt",
aars: [":car-testing-common-aar"],
sdk_version: "current",
static_libs: car_testing_common_static_libs,
}