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 | |
| 19 | filegroup { |
| 20 | name: "nearby-service-srcs", |
| 21 | srcs: [ |
| 22 | "java/**/*.java", |
| 23 | ], |
| 24 | } |
| 25 | |
| 26 | // Main lib for nearby services. |
| 27 | java_library { |
| 28 | name: "service-nearby", |
| 29 | srcs: [":nearby-service-srcs"], |
| 30 | |
| 31 | defaults: [ |
| 32 | "nearby-module-sdk-version-defaults", |
| 33 | "framework-system-server-module-defaults" |
| 34 | ], |
| 35 | libs: [ |
| 36 | // pre-jarjar symbols are needed so that nearby-service can reference the original class |
| 37 | // names at compile time |
| 38 | "framework-nearby-pre-jarjar", |
Chun Zhang | bc34fdb | 2021-09-20 11:19:04 -0700 | [diff] [blame^] | 39 | "error_prone_annotations", |
| 40 | ], |
| 41 | static_libs: [ |
| 42 | "guava", |
| 43 | "androidx.annotation_annotation", |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 44 | ], |
| 45 | sdk_version: "system_server_current", |
| 46 | |
| 47 | installable: true, |
| 48 | optimize: { |
| 49 | enabled: true, |
| 50 | shrink: true, |
Wei Wang | 7220303 | 2021-09-12 20:53:23 -0700 | [diff] [blame] | 51 | proguard_flags_files: ["proguard.flags"], |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 52 | }, |
| 53 | dex_preopt: { |
| 54 | enabled: false, |
| 55 | app_image: false, |
| 56 | }, |
| 57 | visibility: [ |
| 58 | "//packages/modules/Nearby/apex", |
| 59 | ], |
| 60 | apex_available: [ |
| 61 | "com.android.nearby", |
| 62 | ], |
| 63 | } |