blob: 4bb9efdb8114ef95684badf82154386c59a230d7 [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: [
Motomu Utsumiada9e982023-11-06 22:49:25 +090029 "//packages/modules/Connectivity/framework:__subpackages__",
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090030 "//packages/modules/Connectivity/framework-t:__subpackages__",
31 ],
Wei Wang6b7561d2021-06-03 17:33:14 -070032}
33
Chun Zhang90f40a22021-11-03 13:56:13 -070034filegroup {
35 name: "framework-nearby-sources",
Anton Hansson57f3d692023-03-15 10:30:10 +000036 defaults: ["framework-sources-module-defaults"],
Chun Zhang90f40a22021-11-03 13:56:13 -070037 srcs: [
38 ":framework-nearby-java-sources",
39 ],
Chun Zhang90f40a22021-11-03 13:56:13 -070040}
41
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090042// Build of only framework-nearby (not as part of connectivity) for
43// unit tests
Wei Wang6b7561d2021-06-03 17:33:14 -070044java_library {
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090045 name: "framework-nearby-static",
46 srcs: [":framework-nearby-java-sources"],
Wei Wang6b7561d2021-06-03 17:33:14 -070047 sdk_version: "module_current",
Roopa Sattirajue8fabcc2022-01-11 20:40:07 -080048 libs: [
Xinyi Zhou0d195ae2023-03-22 19:06:54 +000049 "androidx.annotation_annotation",
Roopa Sattirajue8fabcc2022-01-11 20:40:07 -080050 "framework-annotations-lib",
51 "framework-bluetooth",
52 ],
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090053 static_libs: [
54 "modules-utils-preconditions",
Wei Wang6b7561d2021-06-03 17:33:14 -070055 ],
Xinyi Zhoufcd2b7c2023-08-28 17:32:17 -070056 visibility: [
57 "//packages/modules/Connectivity/nearby/tests:__subpackages__",
58 ],
Wei Wang6b7561d2021-06-03 17:33:14 -070059}