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_fwk_core_networking",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20// Sources included in the framework-connectivity-t jar
21// TODO: consider moving files to packages/modules/Connectivity
22filegroup {
23    name: "framework-nearby-java-sources",
24    srcs: [
25        "java/**/*.java",
26        "java/**/*.aidl",
27    ],
28    path: "java",
29    visibility: [
30        "//packages/modules/Connectivity/framework:__subpackages__",
31        "//packages/modules/Connectivity/framework-t:__subpackages__",
32    ],
33}
34
35filegroup {
36    name: "framework-nearby-sources",
37    defaults: ["framework-sources-module-defaults"],
38    srcs: [
39        ":framework-nearby-java-sources",
40    ],
41}
42
43// Build of only framework-nearby (not as part of connectivity) for
44// unit tests
45java_library {
46    name: "framework-nearby-static",
47    srcs: [":framework-nearby-java-sources"],
48    sdk_version: "module_current",
49    libs: [
50        "androidx.annotation_annotation",
51        "framework-annotations-lib",
52        "framework-bluetooth",
53        "framework-location.stubs.module_lib",
54    ],
55    static_libs: [
56        "modules-utils-preconditions",
57    ],
58    visibility: [
59        "//packages/modules/Connectivity/nearby/tests:__subpackages__",
60    ],
61}
62