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", |
| 35 | srcs: [ |
| 36 | ":framework-nearby-java-sources", |
| 37 | ], |
| 38 | visibility: ["//frameworks/base"], |
| 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: [ |
| 48 | "framework-annotations-lib", |
| 49 | "framework-bluetooth", |
| 50 | ], |
Remi NGUYEN VAN | 15ed7d2 | 2022-01-07 13:20:08 +0900 | [diff] [blame] | 51 | static_libs: [ |
| 52 | "modules-utils-preconditions", |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 53 | ], |
Remi NGUYEN VAN | d84be86 | 2022-03-22 16:35:45 +0000 | [diff] [blame] | 54 | visibility: ["//packages/modules/Connectivity/nearby/tests:__subpackages__"], |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 55 | } |