1// Copyright (C) 2022 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. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19apex_key { 20 name: "com.android.healthfitness.key", 21 public_key: "com.android.healthfitness.avbpubkey", 22 private_key: "com.android.healthfitness.pem", 23} 24 25android_app_certificate { 26 name: "com.android.healthfitness.certificate", 27 certificate: "com.android.healthfitness", 28} 29 30apex { 31 name: "com.android.healthfitness", 32 manifest: "manifest.json", 33 file_contexts: ":com.android.healthfitness-file_contexts", 34 apps: [ 35 "HealthConnectBackupRestore", 36 "HealthConnectController", 37 ], 38 prebuilts: ["current_sdkinfo"], 39 key: "com.android.healthfitness.key", 40 min_sdk_version: "34", 41 certificate: ":com.android.healthfitness.certificate", 42 updatable: true, 43 bootclasspath_fragments: ["com.android.healthfitness-bootclasspath-fragment"], 44 systemserverclasspath_fragments: ["com.android.healthfitness-systemserverclasspath-fragment"], 45 visibility: ["//packages/modules/common/build"], 46} 47 48sdk { 49 name: "healthfitness-module-sdk", 50 apexes: [ 51 // Adds exportable dependencies of the APEX to the sdk, 52 // e.g. *classpath_fragments. 53 "com.android.healthfitness", 54 ], 55} 56 57// Encapsulate the contributions made by com.android.healthfitness to the bootclasspath. 58bootclasspath_fragment { 59 name: "com.android.healthfitness-bootclasspath-fragment", 60 contents: ["framework-healthfitness"], 61 apex_available: ["com.android.healthfitness"], 62 hidden_api: { 63 split_packages: ["*"], 64 }, 65 additional_stubs: [ 66 "android-non-updatable", 67 ], 68 // The bootclasspath_fragments that provide APIs on which this depends. 69 fragments: [ 70 { 71 apex: "com.android.art", 72 module: "art-bootclasspath-fragment", 73 }, 74 ], 75} 76 77systemserverclasspath_fragment { 78 name: "com.android.healthfitness-systemserverclasspath-fragment", 79 contents: ["service-healthfitness"], 80 apex_available: ["com.android.healthfitness"], 81} 82