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_team: "trendy_team_fwk_uwb", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20aidl_interface { 21 name: "androidx.core.uwb.backend.aidl_interface", 22 owner: "Google", 23 local_include_dir: "interface", 24 srcs: [ 25 "interface/**/*.aidl", 26 ], 27 backend: { 28 java: { 29 enabled: true, 30 min_sdk_version: "30", 31 apex_available: [ 32 "com.android.tethering", 33 "//apex_available:platform", 34 ], 35 }, 36 }, 37 visibility: ["//visibility:public"], 38 versions_with_info: [ 39 { 40 version: "1", 41 imports: [], 42 }, 43 ], 44 45} 46 47java_library { 48 name: "uwb_androidx_backend", 49 sdk_version: "system_UpsideDownCake", 50 min_sdk_version: "30", 51 installable: false, 52 srcs: [ 53 "src/**/*.java", 54 ], 55 libs: ["android-support-annotations"], 56 static_libs: [ 57 "androidx.annotation_annotation", 58 "androidx.concurrent_concurrent-futures", 59 "androidx.core.uwb.backend.aidl_interface-V2-java", 60 "com.uwb.support.fira", 61 "com.uwb.support.multichip", 62 "com.uwb.support.dltdoa", 63 "guava", 64 ], 65 apex_available: [ 66 "com.android.tethering", 67 "//apex_available:platform", 68 ], 69 visibility: [ 70 ":__subpackages__", 71 "//packages/modules/Uwb/generic_ranging:__subpackages__", 72 "//packages/modules/Connectivity/remoteauth:__subpackages__", 73 ], 74 lint: { 75 baseline_filename: "lint-baseline.xml", 76 }, 77} 78 79android_app { 80 name: "uwb_androidx_backend_app", 81 sdk_version: "system_UpsideDownCake", 82 min_sdk_version: "32", 83 certificate: "platform", 84 privileged: true, 85 manifest: "AndroidManifest.xml", 86 libs: ["android-support-annotations"], 87 static_libs: [ 88 "androidx.annotation_annotation", 89 "androidx.concurrent_concurrent-futures", 90 "androidx.core.uwb.backend.aidl_interface-V2-java", 91 "com.uwb.support.fira", 92 "guava", 93 "uwb_androidx_backend", 94 ], 95 required: ["privapp_allowlist_androidx.core.uwb.backend.xml"], 96 apex_available: [ 97 "//apex_available:platform", 98 ], 99} 100 101prebuilt_etc { 102 name: "privapp_allowlist_androidx.core.uwb.backend.xml", 103 sub_dir: "permissions", 104 src: "androidx.core.uwb.backend.xml", 105} 106