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
19filegroup {
20    name: "healthConnectToolbox-sources",
21    srcs: [
22        "src/**/*.java",
23        "src/**/*.kt",
24    ],
25}
26
27android_library {
28    name: "HealthConnectToolboxLibrary",
29    srcs: [":healthConnectToolbox-sources"],
30    sdk_version: "module_current",
31    min_sdk_version: "34",
32    libs: ["kotlin-annotations", "framework-healthfitness"],
33    static_libs: [
34        "kotlin-stdlib",
35        "kotlinx-coroutines-android",
36        "androidx.navigation_navigation-common-ktx",
37        "androidx.navigation_navigation-fragment-ktx",
38        "androidx.navigation_navigation-runtime-ktx",
39        "androidx.navigation_navigation-ui-ktx",
40        "androidx.annotation_annotation",
41        "androidx.work_work-runtime",
42        "androidx.concurrent_concurrent-futures-ktx",
43    ],
44    kotlincflags: ["-Xjvm-default=all"],
45    apex_available: ["com.android.healthfitness"],
46}
47
48android_app {
49    name: "HealthConnectToolbox",
50    sdk_version: "module_current",
51    min_sdk_version: "34",
52    rename_resources_package: false,
53    updatable: true,
54    certificate: "platform",
55    static_libs: [
56        "HealthConnectToolboxLibrary"
57    ],
58    apex_available: ["com.android.healthfitness"],
59}
60
61android_app {
62    name: "HealthConnectToolbox2",
63    sdk_version: "module_current",
64    min_sdk_version: "34",
65    rename_resources_package: false,
66    updatable: true,
67    package_name: "com.android.healthconnect.testapps.toolbox2",
68    manifest: "AndroidManifest2.xml",
69    additional_manifests: [
70        "AndroidManifest.xml",
71    ],
72    certificate: "platform",
73    static_libs: [
74        "HealthConnectToolboxLibrary"
75    ],
76    apex_available: ["com.android.healthfitness"],
77}
78
79android_app {
80    name: "HealthConnectToolbox3",
81    sdk_version: "module_current",
82    min_sdk_version: "34",
83    rename_resources_package: false,
84    updatable: true,
85    package_name: "com.android.healthconnect.testapps.toolbox3",
86    manifest: "AndroidManifest3.xml",
87    additional_manifests: [
88        "AndroidManifest.xml",
89    ],
90    certificate: "platform",
91    static_libs: [
92        "HealthConnectToolboxLibrary"
93    ],
94    apex_available: ["com.android.healthfitness"],
95}
96