• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: [
33        "kotlin-annotations",
34        "framework-healthfitness.stubs.module_lib",
35    ],
36    static_libs: [
37        "kotlin-stdlib",
38        "kotlinx-coroutines-android",
39        "kotlinx_serialization_core",
40        "androidx.documentfile_documentfile",
41        "androidx.navigation_navigation-common-ktx",
42        "androidx.navigation_navigation-fragment-ktx",
43        "androidx.navigation_navigation-runtime-ktx",
44        "androidx.navigation_navigation-ui-ktx",
45        "androidx.annotation_annotation",
46        "androidx.work_work-runtime",
47        "androidx.concurrent_concurrent-futures-ktx",
48        "androidx.activity_activity-compose",
49        "androidx.compose.foundation_foundation",
50        "androidx.compose.runtime_runtime",
51        "androidx.compose.runtime_runtime-livedata",
52        "androidx.compose.ui_ui",
53        "androidx.navigation_navigation-compose",
54        "androidx.lifecycle_lifecycle-runtime-compose",
55        "androidx.compose.material3_material3",
56        "androidx.compose.material_material-icons-extended",
57        "androidx.lifecycle_lifecycle-viewmodel-compose",
58        "androidx.compose.ui_ui-tooling",
59    ],
60    kotlincflags: ["-Xjvm-default=all"],
61    kotlin_plugins: [
62        "kotlin-serialize-compiler-plugin",
63    ],
64}
65
66android_app {
67    name: "HealthConnectToolbox",
68    sdk_version: "module_current",
69    min_sdk_version: "34",
70    rename_resources_package: false,
71    updatable: true,
72    certificate: "platform",
73    static_libs: [
74        "HealthConnectToolboxLibrary",
75    ],
76}
77
78android_app {
79    name: "HealthConnectToolbox2",
80    sdk_version: "module_current",
81    min_sdk_version: "34",
82    rename_resources_package: false,
83    updatable: true,
84    package_name: "com.android.healthconnect.testapps.toolbox2",
85    manifest: "AndroidManifest2.xml",
86    additional_manifests: [
87        "AndroidManifest.xml",
88    ],
89    certificate: "platform",
90    static_libs: [
91        "HealthConnectToolboxLibrary",
92    ],
93}
94
95android_app {
96    name: "HealthConnectToolbox3",
97    sdk_version: "module_current",
98    min_sdk_version: "34",
99    rename_resources_package: false,
100    updatable: true,
101    package_name: "com.android.healthconnect.testapps.toolbox3",
102    manifest: "AndroidManifest3.xml",
103    additional_manifests: [
104        "AndroidManifest.xml",
105    ],
106    certificate: "platform",
107    static_libs: [
108        "HealthConnectToolboxLibrary",
109    ],
110}
111