blob: 540be4451cd449074b053807f719ed479c9ec1c6 [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
Wei Wangd4878b82021-07-11 21:23:29 -070045filegroup {
46 name: "nearby-jarjar-rules",
47 srcs: ["jarjar-rules.txt"],
48}
49
Wei Wang6b7561d2021-06-03 17:33:14 -070050sdk {
51 name: "nearby-module-sdk",
52 java_sdk_libs: [
53 "framework-nearby",
54 ],
55}
56
57// Encapsulate the contributions made by the com.android.nearby to the bootclasspath.
58bootclasspath_fragment {
59 name: "com.android.nearby-bootclasspath-fragment",
60 contents: ["framework-nearby"],
61 apex_available: ["com.android.nearby"],
Paul Duffinf9a3c6a2021-06-30 11:08:34 +010062
63 // The bootclasspath_fragments that provide APIs on which this depends.
64 fragments: [
65 {
66 apex: "com.android.art",
67 module: "art-bootclasspath-fragment",
68 },
69 ],
70
71 // Additional stubs libraries that this fragment's contents use which are
72 // not provided by another bootclasspath_fragment.
73 additional_stubs: [
74 "android-non-updatable",
75 ],
Wei Wang6f0164e2021-06-01 17:00:02 -070076}