blob: f1f7c44d57d6d2e9915ad28246cd6ee844755f76 [file] [log] [blame]
// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
filegroup {
name: "nearby-service-srcs",
srcs: [
"java/**/*.java",
],
}
// Main lib for nearby services.
java_library {
name: "service-nearby",
srcs: [":nearby-service-srcs"],
defaults: [
"nearby-module-sdk-version-defaults",
"framework-system-server-module-defaults"
],
libs: [
// pre-jarjar symbols are needed so that nearby-service can reference the original class
// names at compile time
"framework-nearby-pre-jarjar",
"error_prone_annotations",
],
static_libs: [
"androidx.annotation_annotation",
"androidx.core_core",
"auto_value_annotations",
"guava",
"libprotobuf-java-lite",
],
sdk_version: "system_server_current",
plugins: ["auto_value_plugin"],
installable: true,
optimize: {
enabled: true,
shrink: true,
proguard_flags_files: ["proguard.flags"],
},
dex_preopt: {
enabled: false,
app_image: false,
},
visibility: [
"//packages/modules/Nearby/apex",
],
apex_available: [
"com.android.nearby",
],
}