blob: 4be102c207d5906886eaf98575f09fb26e37b3cd [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 {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000016 default_team: "trendy_team_fwk_core_networking",
Wei Wang6b7561d2021-06-03 17:33:14 -070017 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090020// Sources included in the framework-connectivity-t jar
21// TODO: consider moving files to packages/modules/Connectivity
Wei Wang6b7561d2021-06-03 17:33:14 -070022filegroup {
Chun Zhang90f40a22021-11-03 13:56:13 -070023 name: "framework-nearby-java-sources",
Wei Wang6b7561d2021-06-03 17:33:14 -070024 srcs: [
25 "java/**/*.java",
26 "java/**/*.aidl",
27 ],
28 path: "java",
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090029 visibility: [
Motomu Utsumiada9e982023-11-06 22:49:25 +090030 "//packages/modules/Connectivity/framework:__subpackages__",
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090031 "//packages/modules/Connectivity/framework-t:__subpackages__",
32 ],
Wei Wang6b7561d2021-06-03 17:33:14 -070033}
34
Chun Zhang90f40a22021-11-03 13:56:13 -070035filegroup {
36 name: "framework-nearby-sources",
Anton Hansson57f3d692023-03-15 10:30:10 +000037 defaults: ["framework-sources-module-defaults"],
Chun Zhang90f40a22021-11-03 13:56:13 -070038 srcs: [
39 ":framework-nearby-java-sources",
40 ],
Chun Zhang90f40a22021-11-03 13:56:13 -070041}
42
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090043// Build of only framework-nearby (not as part of connectivity) for
44// unit tests
Wei Wang6b7561d2021-06-03 17:33:14 -070045java_library {
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090046 name: "framework-nearby-static",
47 srcs: [":framework-nearby-java-sources"],
Wei Wang6b7561d2021-06-03 17:33:14 -070048 sdk_version: "module_current",
Roopa Sattirajue8fabcc2022-01-11 20:40:07 -080049 libs: [
Xinyi Zhou0d195ae2023-03-22 19:06:54 +000050 "androidx.annotation_annotation",
Roopa Sattirajue8fabcc2022-01-11 20:40:07 -080051 "framework-annotations-lib",
52 "framework-bluetooth",
Yahav Nussbaumc712a572024-01-29 12:23:28 +000053 "framework-location.stubs.module_lib",
Roopa Sattirajue8fabcc2022-01-11 20:40:07 -080054 ],
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090055 static_libs: [
56 "modules-utils-preconditions",
Wei Wang6b7561d2021-06-03 17:33:14 -070057 ],
Xinyi Zhoufcd2b7c2023-08-28 17:32:17 -070058 visibility: [
59 "//packages/modules/Connectivity/nearby/tests:__subpackages__",
60 ],
Wei Wang6b7561d2021-06-03 17:33:14 -070061}