1// Copyright (C) 2022 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 19filegroup { 20 name: "framework-adservices-sources", 21 defaults: ["framework-sources-module-defaults"], 22 srcs: [ 23 "java/**/*.aidl", 24 "java/**/*.java" 25 ], 26 visibility: [ 27 "//packages/modules/AdServices/adservices:__subpackages__", 28 "//packages/modules/ExtServices/apex:__subpackages__", 29 ], 30 path: "java", 31} 32 33java_sdk_library { 34 name: "framework-adservices", 35 srcs: [":framework-adservices-sources"], 36 libs: [ 37 "modules-utils-preconditions", 38 "framework-sdksandbox.impl", 39 "androidx.annotation_annotation", 40 ], 41 sdk_version: "module_current", 42 min_sdk_version: "30", 43 permitted_packages: [ 44 "com.android.adservices", 45 "android.adservices", 46 "android.app.adservices", 47 ], 48 defaults: ["framework-module-defaults"], 49 impl_library_visibility: [ 50 "//packages/modules/AdServices:__subpackages__", 51 ], 52 apex_available: ["com.android.adservices", "com.android.extservices"], 53} 54 55java_library { 56 name: "framework-adservices-lib", 57 srcs: [":framework-adservices-sources"], 58 libs: [ 59 "modules-utils-preconditions", 60 "framework-sdksandbox.impl", 61 "androidx.annotation_annotation", 62 ], 63 min_sdk_version: "30", 64 defaults: ["framework-module-defaults"], 65} 66 67java_api_contribution { 68 name: "framework-adservices-public-stubs", 69 api_surface: "public", 70 api_file: "api/current.txt", 71 visibility: [ 72 "//build/orchestrator/apis", 73 ], 74} 75 76java_library { 77 name: "android.ext.adservices", 78 static_libs: ["framework-adservices.impl"], 79 sdk_version: "module_current", 80 min_sdk_version: "30", 81 max_sdk_version: "32", 82 visibility: [ 83 "//packages/modules/AdServices:__subpackages__", 84 "//packages/modules/ExtServices:__subpackages__", 85 ], 86 apex_available: ["com.android.extservices"], 87} 88