1// 2// Copyright (C) 2023 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_app_certificate { 21 name: "com.android.health.connect.backuprestore.certificate", 22 certificate: "com.android.health.connect.backuprestore", 23} 24 25filegroup { 26 name: "healthConnectBackupRestore-sources", 27 srcs: [ 28 "src/**/*.java", 29 ], 30} 31 32android_library { 33 name: "HealthConnectBackupRestoreLibrary", 34 srcs: [":healthConnectBackupRestore-sources"], 35 sdk_version: "module_current", 36 min_sdk_version: "34", 37 libs: [ 38 "framework-annotations-lib", 39 "framework-healthfitness.impl", 40 ], 41 apex_available: ["com.android.healthfitness"], 42 errorprone: { 43 extra_check_modules: [ 44 "//external/nullaway:nullaway_plugin" 45 ], 46 javacflags: [ 47 "-Xep:NullAway:ERROR", 48 "-XepOpt:NullAway:AnnotatedPackages=com.android.health.connect.backuprestore", 49 "-XepOpt:NullAway:KnownInitializers=android.app.backup.BackupAgent.onCreate", 50 ], 51 }, 52} 53 54android_app { 55 name: "HealthConnectBackupRestore", 56 defaults: ["platform_app_defaults"], 57 sdk_version: "module_current", 58 min_sdk_version: "34", 59 updatable: true, 60 certificate: ":com.android.health.connect.backuprestore.certificate", 61 additional_manifests: [ 62 "PermissionsManifest.xml" 63 ], 64 65 static_libs: ["HealthConnectBackupRestoreLibrary",], 66 67 apex_available: ["com.android.healthfitness"], 68} 69