// Copyright (C) 2023 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. // privacysandbox aar files taken from // https://maven.google.com/web/index.html#androidx.privacysandbox.ads package { default_applicable_licenses: ["Android-Apache-2.0"], } java_defaults { name: "common_defaults", sdk_version: "31", apex_available: [ "//apex_available:platform", "//apex_available:anyapex", ], min_sdk_version: "21", static_libs: [ "androidx.annotation_annotation", "kotlin-stdlib", "kotlinx_coroutines", "androidx.core_core-ktx", ], } java_defaults { name: "ads_adservices_java_import_defaults", defaults: ["common_defaults"], static_libs: [ "androidx.concurrent_concurrent-futures", "guava", "guava-listenablefuture-prebuilt-jar", ], } java_defaults { name: "ads_adservices_java_library_defaults", defaults: ["ads_adservices_java_import_defaults"], java_version: "1.7", } java_defaults { name: "ads_adservices_library_defaults", defaults: ["common_defaults"], java_version: "1.7", } java_defaults { name: "android_test_defaults", srcs: [ "src/**/*.java", ], sdk_version: "module_current", static_libs: [ "adservices-clients", "androidx.concurrent_concurrent-futures", "androidx.test.rules", "compatibility-device-util-axt", "kotlinx-coroutines-android", "mockito-target-extended-minus-junit4", "truth", "framework-adservices.impl", "framework-sdksandbox.impl", "adservices-test-fixtures", "adservices-test-utility", ], libs: [ "android.test.base", "framework-sdkextensions", ], test_suites: [ "general-tests", ], lint: { extra_check_modules: ["AdServicesTestLintChecker"], test: false, // TODO(b/343741206): remove when checks will run on android_test }, } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-java-1.0.0-beta05-nodeps", aars: ["ads-adservices-java-1.0.0-beta05.aar"], static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.0.0-beta05", ], defaults: ["ads_adservices_java_import_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-java-1.0.0-beta05", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-java-1.0.0-beta05-nodeps", "androidx.privacysandbox.ads_ads-adservices-1.0.0-beta05", ], defaults: ["ads_adservices_java_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-1.0.0-beta05-nodeps", aars: ["ads-adservices-1.0.0-beta05.aar"], defaults: ["common_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-1.0.0-beta05", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.0.0-beta05-nodeps", ], defaults: ["ads_adservices_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta01-nodeps", aars: ["ads-adservices-java-1.1.0-beta01.aar"], static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta01", ], defaults: ["ads_adservices_java_import_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta01", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta01-nodeps", "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta01", ], defaults: ["ads_adservices_java_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta01-nodeps", aars: ["ads-adservices-1.1.0-beta01.aar"], defaults: ["common_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta01", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta01-nodeps", ], defaults: ["ads_adservices_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta02-nodeps", aars: ["ads-adservices-java-1.1.0-beta02.aar"], static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta02", ], defaults: ["ads_adservices_java_import_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta02", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta02-nodeps", "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta02", ], defaults: ["ads_adservices_java_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta02-nodeps", aars: ["ads-adservices-1.1.0-beta02.aar"], defaults: ["common_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta02", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta02-nodeps", ], defaults: ["ads_adservices_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta03-nodeps", aars: ["ads-adservices-java-1.1.0-beta03.aar"], static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta03", ], defaults: ["ads_adservices_java_import_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta03", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta03-nodeps", "androidx.annotation_annotation", "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta03", ], defaults: ["ads_adservices_java_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta03-nodeps", aars: ["ads-adservices-1.1.0-beta03.aar"], defaults: ["common_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta03", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta03-nodeps", ], defaults: ["ads_adservices_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta04-nodeps", aars: ["ads-adservices-java-1.1.0-beta04.aar"], static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta04", ], defaults: ["ads_adservices_java_import_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta04", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta04-nodeps", "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta04", ], defaults: ["ads_adservices_java_library_defaults"], } android_library_import { name: "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta04-nodeps", aars: ["ads-adservices-1.1.0-beta04.aar"], defaults: ["common_defaults"], } android_library { name: "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta04", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta04-nodeps", ], defaults: ["ads_adservices_library_defaults"], } android_test { name: "AdServicesJetpackTests-1.0.0-beta05", min_sdk_version: "Tiramisu", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.0.0-beta05", "androidx.privacysandbox.ads_ads-adservices-java-1.0.0-beta05", ], test_config: "AndroidTest-1.0.0-beta05.xml", defaults: ["android_test_defaults"], } android_test { name: "AdServicesJetpackTests-1.1.0-beta01", min_sdk_version: "Tiramisu", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta01", "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta01", ], test_config: "AndroidTest-1.1.0-beta01.xml", defaults: ["android_test_defaults"], } android_test { name: "AdServicesJetpackTests-1.1.0-beta02", min_sdk_version: "Tiramisu", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta02", "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta02", ], test_config: "AndroidTest-1.1.0-beta02.xml", defaults: ["android_test_defaults"], } android_test { name: "AdServicesJetpackTests-1.1.0-beta03", min_sdk_version: "Tiramisu", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta03", "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta03", ], test_config: "AndroidTest-1.1.0-beta03.xml", defaults: ["android_test_defaults"], } android_test { name: "AdServicesJetpackTests-1.1.0-beta04", min_sdk_version: "Tiramisu", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta04", "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta04", ], test_config: "AndroidTest-1.1.0-beta04.xml", defaults: ["android_test_defaults"], } android_test { name: "AdServicesJetpackTests-1.1.0-beta03-S", min_sdk_version: "31", max_sdk_version: "32", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta03", "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta03", ], test_config: "AndroidTest-1.1.0-beta03-S.xml", defaults: ["android_test_defaults"], } android_test { name: "AdServicesJetpackTests-1.1.0-beta04-S", min_sdk_version: "31", max_sdk_version: "32", static_libs: [ "androidx.privacysandbox.ads_ads-adservices-1.1.0-beta04", "androidx.privacysandbox.ads_ads-adservices-java-1.1.0-beta04", ], test_config: "AndroidTest-1.1.0-beta04-S.xml", defaults: ["android_test_defaults"], }