Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Remi NGUYEN VAN | 15ed7d2 | 2022-01-07 13:20:08 +0900 | [diff] [blame] | 19 | // Sources included in the framework-connectivity-t jar |
| 20 | // TODO: consider moving files to packages/modules/Connectivity |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 21 | filegroup { |
Chun Zhang | 90f40a2 | 2021-11-03 13:56:13 -0700 | [diff] [blame] | 22 | name: "framework-nearby-java-sources", |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 23 | srcs: [ |
| 24 | "java/**/*.java", |
| 25 | "java/**/*.aidl", |
| 26 | ], |
| 27 | path: "java", |
Remi NGUYEN VAN | 15ed7d2 | 2022-01-07 13:20:08 +0900 | [diff] [blame] | 28 | visibility: [ |
| 29 | "//packages/modules/Connectivity/framework-t:__subpackages__", |
| 30 | ], |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 31 | } |
| 32 | |
Chun Zhang | 90f40a2 | 2021-11-03 13:56:13 -0700 | [diff] [blame] | 33 | filegroup { |
| 34 | name: "framework-nearby-sources", |
Anton Hansson | 57f3d69 | 2023-03-15 10:30:10 +0000 | [diff] [blame] | 35 | defaults: ["framework-sources-module-defaults"], |
Chun Zhang | 90f40a2 | 2021-11-03 13:56:13 -0700 | [diff] [blame] | 36 | srcs: [ |
| 37 | ":framework-nearby-java-sources", |
| 38 | ], |
Chun Zhang | 90f40a2 | 2021-11-03 13:56:13 -0700 | [diff] [blame] | 39 | } |
| 40 | |
Remi NGUYEN VAN | 15ed7d2 | 2022-01-07 13:20:08 +0900 | [diff] [blame] | 41 | // Build of only framework-nearby (not as part of connectivity) for |
| 42 | // unit tests |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 43 | java_library { |
Remi NGUYEN VAN | 15ed7d2 | 2022-01-07 13:20:08 +0900 | [diff] [blame] | 44 | name: "framework-nearby-static", |
| 45 | srcs: [":framework-nearby-java-sources"], |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 46 | sdk_version: "module_current", |
Roopa Sattiraju | e8fabcc | 2022-01-11 20:40:07 -0800 | [diff] [blame] | 47 | libs: [ |
Xinyi Zhou | 0d195ae | 2023-03-22 19:06:54 +0000 | [diff] [blame] | 48 | "androidx.annotation_annotation", |
Roopa Sattiraju | e8fabcc | 2022-01-11 20:40:07 -0800 | [diff] [blame] | 49 | "framework-annotations-lib", |
| 50 | "framework-bluetooth", |
| 51 | ], |
Remi NGUYEN VAN | 15ed7d2 | 2022-01-07 13:20:08 +0900 | [diff] [blame] | 52 | static_libs: [ |
| 53 | "modules-utils-preconditions", |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 54 | ], |
Xinyi Zhou | fcd2b7c | 2023-08-28 17:32:17 -0700 | [diff] [blame] | 55 | visibility: [ |
| 56 | "//packages/modules/Connectivity/nearby/tests:__subpackages__", |
| 57 | ], |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 58 | } |