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: "framework-sdksandbox-aidl-sources", 22 srcs: [ 23 "java/**/*.aidl", 24 ], 25 visibility: [ 26 "//frameworks/base", 27 "//packages/modules/AdServices:__subpackages__", 28 ], 29 path: "java", 30} 31 32filegroup { 33 name: "framework-sdksandbox-sources", 34 defaults: ["framework-sources-module-defaults"], 35 srcs: [ 36 "java/**/*.java", 37 ":framework-sdksandbox-aidl-sources", 38 ], 39 visibility: ["//packages/modules/AdServices:__subpackages__"], 40 path: "java", 41} 42 43filegroup { 44 name: "framework-sdksandbox-jarjar", 45 srcs: ["jarjar_rules.txt"], 46} 47 48java_defaults { 49 name: "framework-sdksandbox-jarjar-defaults", 50 jarjar_rules: ":framework-sdksandbox-jarjar", 51 static_libs: [ 52 "modules-utils-build", 53 "sdk_sandbox_flags_lib", 54 ], 55 libs: [ 56 "androidx.annotation_annotation", 57 ], 58} 59 60java_sdk_library { 61 name: "framework-sdksandbox", 62 srcs: [":framework-sdksandbox-sources"], 63 sdk_version: "module_current", 64 permitted_packages: [ 65 "android.app.sdksandbox", 66 "com.android.sdksandbox", 67 ], 68 defaults: [ 69 "framework-module-defaults", 70 "sdksandbox-java-defaults", 71 "framework-sdksandbox-jarjar-defaults", 72 ], 73 impl_library_visibility: [ 74 "//packages/modules/AdServices:__subpackages__", 75 ], 76 apex_available: ["com.android.adservices"], 77 jacoco: { 78 exclude_filter: [ 79 "com.android.sdksandbox.**", 80 "com.android.server.sdksandbox.**", 81 ], 82 }, 83 lint: { 84 baseline_filename: "lint-baseline.xml", 85 }, 86} 87