1// Copyright (C) 2021 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: "sdksandbox_aidl", 21 srcs: [ 22 "aidl/**/*.aidl", 23 "aidl/**/*.java" 24 ], 25 path: "aidl", 26} 27 28filegroup { 29 name: "sdksandbox-sources", 30 srcs: [ 31 "src/**/*.java", 32 ], 33} 34 35java_library { 36 name: "SdkSandbox-java-lib", 37 srcs: [ 38 ":sdksandbox-sources", 39 ":sdksandbox_aidl", 40 ":framework-sdksandbox-aidl-sources", 41 ], 42 libs: [ 43 "framework-annotations-lib", 44 "framework-sdksandbox.impl", 45 "androidx.annotation_annotation", 46 ], 47 sdk_version: "module_current", 48 apex_available: ["com.android.adservices"], 49 defaults: [ 50 "sdksandbox-java-defaults", 51 ], 52 static_libs: [ 53 "modules-utils-backgroundthread", 54 "modules-utils-build", 55 ], //do not add any other static libs to SdkSandbox, else proguard will shrink it. 56} 57 58prebuilt_etc { 59 name: "com.android.adservices.sdksandbox.xml", 60 sub_dir: "permissions", 61 src: "com.android.adservices.sdksandbox.xml", 62} 63 64android_app { 65 name: "SdkSandbox", 66 libs: [ 67 "framework-annotations-lib", 68 "framework-sdksandbox.impl", 69 "androidx.annotation_annotation", 70 ], 71 static_libs: [ 72 "SdkSandbox-java-lib", 73 ], //do not add any other static libs to SdkSandbox, else proguard will shrink it. 74 visibility: [ 75 "//packages/modules/AdServices:__subpackages__", 76 "//packages/modules/AdServices/sdksandbox/SdkSandbox", 77 ], 78 sdk_version: "module_current", 79 updatable: true, 80 certificate: "sdk_sandbox", 81 apex_available: ["com.android.adservices"], 82 defaults: [ 83 "sdksandbox-java-defaults", 84 ], 85 jarjar_rules: "sdksandbox_app_jarjar_rules.txt", 86 jacoco: { 87 exclude_filter: [ 88 "android.app.sdksandbox.**", 89 "com.android.server.sdksandbox.**", 90 ], 91 }, 92 required: ["com.android.adservices.sdksandbox.xml"], 93} 94