blob: e223b54fc9ceb3a75f5e1d9ee4515895ded86e8c [file] [log] [blame]
Wei Wang6b7561d2021-06-03 17:33:14 -07001// 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_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090019// Sources included in the framework-connectivity-t jar
20// TODO: consider moving files to packages/modules/Connectivity
Wei Wang6b7561d2021-06-03 17:33:14 -070021filegroup {
Chun Zhang90f40a22021-11-03 13:56:13 -070022 name: "framework-nearby-java-sources",
Wei Wang6b7561d2021-06-03 17:33:14 -070023 srcs: [
24 "java/**/*.java",
25 "java/**/*.aidl",
26 ],
27 path: "java",
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090028 visibility: [
29 "//packages/modules/Connectivity/framework-t:__subpackages__",
30 ],
Wei Wang6b7561d2021-06-03 17:33:14 -070031}
32
Chun Zhang90f40a22021-11-03 13:56:13 -070033filegroup {
34 name: "framework-nearby-sources",
35 srcs: [
36 ":framework-nearby-java-sources",
37 ],
38 visibility: ["//frameworks/base"],
39}
40
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090041// Build of only framework-nearby (not as part of connectivity) for
42// unit tests
Wei Wang6b7561d2021-06-03 17:33:14 -070043java_library {
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090044 name: "framework-nearby-static",
45 srcs: [":framework-nearby-java-sources"],
Wei Wang6b7561d2021-06-03 17:33:14 -070046 sdk_version: "module_current",
Roopa Sattirajue8fabcc2022-01-11 20:40:07 -080047 libs: [
48 "framework-annotations-lib",
49 "framework-bluetooth",
50 ],
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090051 static_libs: [
52 "modules-utils-preconditions",
Wei Wang6b7561d2021-06-03 17:33:14 -070053 ],
Remi NGUYEN VANd84be862022-03-22 16:35:45 +000054 visibility: ["//packages/modules/Connectivity/nearby/tests:__subpackages__"],
Wei Wang6b7561d2021-06-03 17:33:14 -070055}