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_team: "trendy_team_rubidium_sdk_runtime", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20filegroup { 21 name: "sdksandbox_aidl", 22 srcs: [ 23 "aidl/**/*.aidl", 24 "aidl/**/*.java", 25 ], 26 path: "aidl", 27} 28 29filegroup { 30 name: "sdksandbox-sources", 31 srcs: [ 32 "src/**/*.java", 33 ], 34} 35 36java_library { 37 name: "SdkSandbox-java-lib", 38 srcs: [ 39 ":sdksandbox-sources", 40 ":sdksandbox_aidl", 41 ":framework-sdksandbox-aidl-sources", 42 ], 43 libs: [ 44 "framework-annotations-lib", 45 "framework-sdksandbox.impl", 46 "androidx.annotation_annotation", 47 ], 48 sdk_version: "module_current", 49 apex_available: ["com.android.adservices"], 50 defaults: [ 51 "sdksandbox-java-defaults", 52 ], 53 static_libs: [ 54 "modules-utils-backgroundthread", 55 "modules-utils-build", 56 ], //do not add any other static libs to SdkSandbox, else proguard will shrink it. 57} 58 59android_app { 60 name: "SdkSandbox", 61 libs: [ 62 "framework-annotations-lib", 63 "framework-sdksandbox.impl", 64 "androidx.annotation_annotation", 65 ], 66 static_libs: [ 67 "SdkSandbox-java-lib", 68 ], //do not add any other static libs to SdkSandbox, else proguard will shrink it. 69 visibility: [ 70 "//packages/modules/AdServices:__subpackages__", 71 "//packages/modules/AdServices/sdksandbox/SdkSandbox", 72 ], 73 sdk_version: "module_current", 74 updatable: true, 75 certificate: "sdk_sandbox", 76 apex_available: ["com.android.adservices"], 77 optimize: { 78 // TODO(b/293177283): Remove after eliminating use of reflection 79 // for SandboxedSdkHolder instantiation. 80 proguard_compatibility: true, 81 }, 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} 93