Wei Wang | 6f0164e | 2021-06-01 17:00:02 -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. |
Bob Badour | 2463cea | 2021-06-02 21:05:19 -0700 | [diff] [blame] | 14 | package { |
| 15 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 16 | } |
| 17 | |
Wei Wang | 6f0164e | 2021-06-01 17:00:02 -0700 | [diff] [blame] | 18 | apex_key { |
| 19 | name: "com.android.nearby.key", |
| 20 | public_key: "com.android.nearby.avbpubkey", |
| 21 | private_key: "com.android.nearby.pem", |
| 22 | } |
| 23 | |
| 24 | android_app_certificate { |
| 25 | name: "com.android.nearby.certificate", |
| 26 | certificate: "com.android.nearby", |
| 27 | } |
| 28 | |
| 29 | apex { |
| 30 | name: "com.android.nearby", |
| 31 | manifest: "manifest.json", |
Wei Wang | 4ebc6f8 | 2021-06-04 14:46:29 -0700 | [diff] [blame] | 32 | // TODO(b/189890387): change the SDK version to "32" when T release is finalized. |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 33 | min_sdk_version: "current", |
| 34 | updatable: true, |
Wei Wang | 6f0164e | 2021-06-01 17:00:02 -0700 | [diff] [blame] | 35 | file_contexts: ":apex.test-file_contexts", // Default, please edit, see go/android-apex-howto |
| 36 | key: "com.android.nearby.key", |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 37 | certificate: ":com.android.nearby.certificate", |
| 38 | |
| 39 | bootclasspath_fragments: ["com.android.nearby-bootclasspath-fragment"], |
| 40 | java_libs: [ |
| 41 | "service-nearby", |
| 42 | ], |
| 43 | } |
| 44 | |
Wei Wang | d4878b8 | 2021-07-11 21:23:29 -0700 | [diff] [blame^] | 45 | filegroup { |
| 46 | name: "nearby-jarjar-rules", |
| 47 | srcs: ["jarjar-rules.txt"], |
| 48 | } |
| 49 | |
Wei Wang | 6b7561d | 2021-06-03 17:33:14 -0700 | [diff] [blame] | 50 | sdk { |
| 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. |
| 58 | bootclasspath_fragment { |
| 59 | name: "com.android.nearby-bootclasspath-fragment", |
| 60 | contents: ["framework-nearby"], |
| 61 | apex_available: ["com.android.nearby"], |
Paul Duffin | f9a3c6a | 2021-06-30 11:08:34 +0100 | [diff] [blame] | 62 | |
| 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 Wang | 6f0164e | 2021-06-01 17:00:02 -0700 | [diff] [blame] | 76 | } |