blob: e5769b1bd6f4a5a0b61333c020c4be238f9d3f34 [file] [log] [blame]
Wei Wang6f0164e2021-06-01 17:00:02 -07001// 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.
Bob Badour2463cea2021-06-02 21:05:19 -070014package {
15 default_applicable_licenses: ["Android-Apache-2.0"],
16}
17
Wei Wang6f0164e2021-06-01 17:00:02 -070018apex_key {
19 name: "com.android.nearby.key",
20 public_key: "com.android.nearby.avbpubkey",
21 private_key: "com.android.nearby.pem",
22}
23
24android_app_certificate {
25 name: "com.android.nearby.certificate",
26 certificate: "com.android.nearby",
27}
28
29apex {
30 name: "com.android.nearby",
31 manifest: "manifest.json",
Wei Wang4ebc6f82021-06-04 14:46:29 -070032 // TODO(b/189890387): change the SDK version to "32" when T release is finalized.
Wei Wang6b7561d2021-06-03 17:33:14 -070033 min_sdk_version: "current",
34 updatable: true,
Wei Wang6f0164e2021-06-01 17:00:02 -070035 file_contexts: ":apex.test-file_contexts", // Default, please edit, see go/android-apex-howto
36 key: "com.android.nearby.key",
Wei Wang6b7561d2021-06-03 17:33:14 -070037 certificate: ":com.android.nearby.certificate",
38
39 bootclasspath_fragments: ["com.android.nearby-bootclasspath-fragment"],
40 java_libs: [
41 "service-nearby",
42 ],
43}
44
45sdk {
46 name: "nearby-module-sdk",
47 java_sdk_libs: [
48 "framework-nearby",
49 ],
50}
51
52// Encapsulate the contributions made by the com.android.nearby to the bootclasspath.
53bootclasspath_fragment {
54 name: "com.android.nearby-bootclasspath-fragment",
55 contents: ["framework-nearby"],
56 apex_available: ["com.android.nearby"],
Paul Duffinf9a3c6a2021-06-30 11:08:34 +010057
58 // The bootclasspath_fragments that provide APIs on which this depends.
59 fragments: [
60 {
61 apex: "com.android.art",
62 module: "art-bootclasspath-fragment",
63 },
64 ],
65
66 // Additional stubs libraries that this fragment's contents use which are
67 // not provided by another bootclasspath_fragment.
68 additional_stubs: [
69 "android-non-updatable",
70 ],
Wei Wang6f0164e2021-06-01 17:00:02 -070071}