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 "error_prone_annotations", 41 "adservices_flags_lib", 42 ], 43 static_libs: [ 44 "adservices-shared-exceptions", 45 ], 46 sdk_version: "module_current", 47 min_sdk_version: "30", 48 permitted_packages: [ 49 "com.android.adservices", 50 "android.adservices", 51 "android.app.adservices", 52 ], 53 defaults: ["framework-module-defaults"], 54 impl_library_visibility: [ 55 "//packages/modules/AdServices:__subpackages__", 56 ], 57 apex_available: [ 58 "com.android.adservices", 59 "com.android.extservices", 60 ], 61 aconfig_declarations: [ 62 "adservices_flags", 63 ], 64} 65 66java_library { 67 name: "framework-adservices-lib", 68 srcs: [":framework-adservices-sources"], 69 libs: [ 70 "modules-utils-preconditions", 71 "framework-sdksandbox.impl", 72 "androidx.annotation_annotation", 73 "error_prone_annotations", 74 "adservices_flags_lib", 75 ], 76 static_libs: [ 77 "adservices-shared-exceptions", 78 ], 79 min_sdk_version: "30", 80 defaults: ["framework-module-defaults"], 81 lint: { 82 extra_check_modules: ["AdServicesProdLintChecker"], 83 }, 84} 85 86java_library { 87 name: "android.ext.adservices", 88 static_libs: ["framework-adservices.impl"], 89 installable: true, 90 provides_uses_lib: "android.ext.adservices", 91 sdk_version: "module_current", 92 min_sdk_version: "30", 93 max_sdk_version: "32", 94 visibility: [ 95 "//external/chromium-webview:__subpackages__", 96 "//packages/modules/AdServices:__subpackages__", 97 "//packages/modules/ExtServices:__subpackages__", 98 "//vendor:__subpackages__", 99 ], 100 apex_available: ["com.android.extservices"], 101} 102