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 lint: { 65 baseline_filename: "lint-baseline.xml", 66 }, 67} 68 69java_library { 70 name: "framework-adservices-lib", 71 srcs: [":framework-adservices-sources"], 72 libs: [ 73 "modules-utils-preconditions", 74 "framework-sdksandbox.impl", 75 "androidx.annotation_annotation", 76 "error_prone_annotations", 77 "adservices_flags_lib", 78 ], 79 static_libs: [ 80 "adservices-shared-exceptions", 81 ], 82 min_sdk_version: "30", 83 defaults: ["framework-module-defaults"], 84 lint: { 85 extra_check_modules: ["AdServicesProdLintChecker"], 86 baseline_filename: "lint-baseline.xml", 87 }, 88} 89 90java_library { 91 name: "android.ext.adservices", 92 static_libs: ["framework-adservices.impl"], 93 installable: true, 94 provides_uses_lib: "android.ext.adservices", 95 sdk_version: "module_current", 96 min_sdk_version: "30", 97 max_sdk_version: "32", 98 visibility: [ 99 "//external/chromium-webview:__subpackages__", 100 "//packages/modules/AdServices:__subpackages__", 101 "//packages/modules/ExtServices:__subpackages__", 102 "//vendor:__subpackages__", 103 ], 104 apex_available: ["com.android.extservices"], 105} 106