• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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            version: "2",
45            imports: [],
46        },
47        {
48            version: "3",
49            imports: [],
50        },
51
52    ],
53    frozen: true,
54
55}
56
57java_library {
58    name: "uwb_androidx_backend",
59    sdk_version: "system_UpsideDownCake",
60    min_sdk_version: "30",
61    installable: false,
62    srcs: [
63        "src/**/*.java",
64    ],
65    libs: ["android-support-annotations"],
66    static_libs: [
67        "androidx.annotation_annotation",
68        "androidx.concurrent_concurrent-futures",
69        "androidx.core.uwb.backend.aidl_interface-V3-java",
70        "com.uwb.support.fira",
71        "com.uwb.support.multichip",
72        "com.uwb.support.dltdoa",
73        "guava",
74    ],
75    apex_available: [
76        "com.android.tethering",
77        "//apex_available:platform",
78    ],
79    visibility: [
80        ":__subpackages__",
81        "//packages/modules/Uwb/generic_ranging:__subpackages__",
82        "//packages/modules/Connectivity/remoteauth:__subpackages__",
83    ],
84    lint: {
85        baseline_filename: "lint-baseline.xml",
86    },
87}
88
89android_app {
90    name: "uwb_androidx_backend_app",
91    sdk_version: "system_UpsideDownCake",
92    min_sdk_version: "32",
93    certificate: "platform",
94    privileged: true,
95    manifest: "AndroidManifest.xml",
96    libs: ["android-support-annotations"],
97    static_libs: [
98        "androidx.annotation_annotation",
99        "androidx.concurrent_concurrent-futures",
100        "androidx.core.uwb.backend.aidl_interface-V3-java",
101        "com.uwb.support.fira",
102        "guava",
103        "uwb_androidx_backend",
104    ],
105    required: ["privapp_allowlist_androidx.core.uwb.backend.xml"],
106    apex_available: [
107        "//apex_available:platform",
108    ],
109}
110
111prebuilt_etc {
112    name: "privapp_allowlist_androidx.core.uwb.backend.xml",
113    sub_dir: "permissions",
114    src: "androidx.core.uwb.backend.xml",
115}
116