blob: 540be4451cd449074b053807f719ed479c9ec1c6 [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"],
}
apex_key {
name: "com.android.nearby.key",
public_key: "com.android.nearby.avbpubkey",
private_key: "com.android.nearby.pem",
}
android_app_certificate {
name: "com.android.nearby.certificate",
certificate: "com.android.nearby",
}
apex {
name: "com.android.nearby",
manifest: "manifest.json",
// TODO(b/189890387): change the SDK version to "32" when T release is finalized.
min_sdk_version: "current",
updatable: true,
file_contexts: ":apex.test-file_contexts", // Default, please edit, see go/android-apex-howto
key: "com.android.nearby.key",
certificate: ":com.android.nearby.certificate",
bootclasspath_fragments: ["com.android.nearby-bootclasspath-fragment"],
java_libs: [
"service-nearby",
],
}
filegroup {
name: "nearby-jarjar-rules",
srcs: ["jarjar-rules.txt"],
}
sdk {
name: "nearby-module-sdk",
java_sdk_libs: [
"framework-nearby",
],
}
// Encapsulate the contributions made by the com.android.nearby to the bootclasspath.
bootclasspath_fragment {
name: "com.android.nearby-bootclasspath-fragment",
contents: ["framework-nearby"],
apex_available: ["com.android.nearby"],
// The bootclasspath_fragments that provide APIs on which this depends.
fragments: [
{
apex: "com.android.art",
module: "art-bootclasspath-fragment",
},
],
// Additional stubs libraries that this fragment's contents use which are
// not provided by another bootclasspath_fragment.
additional_stubs: [
"android-non-updatable",
],
}