| /* |
| * Copyright (C) 2021 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| /** |
| * This file was created using the `create_project.py` script located in the |
| * `<AndroidX root>/development/project-creator` directory. |
| * |
| * Please use that script when creating a new project, rather than copying an existing project and |
| * modifying its settings. |
| */ |
| import androidx.build.BundleInsideHelper |
| import androidx.build.LibraryType |
| import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| id("org.jetbrains.kotlin.android") |
| } |
| |
| dependencies { |
| api(libs.kotlinStdlib) |
| // Add dependencies here |
| api("androidx.activity:activity:1.2.0") |
| api("androidx.annotation:annotation:1.2.0") |
| implementation(project(":health:connect:connect-client-proto")) |
| implementation(libs.guavaListenableFuture) |
| implementation(libs.guavaAndroid) |
| implementation(libs.kotlinCoroutinesAndroid) |
| implementation(libs.kotlinCoroutinesGuava) |
| implementation("androidx.core:core-ktx:1.12.0") |
| |
| testImplementation(libs.testCore) |
| testImplementation(libs.testRunner) |
| testImplementation(libs.junit) |
| testImplementation(libs.truth) |
| testImplementation(libs.kotlinCoroutinesTest) |
| androidTestImplementation(libs.testRules) |
| testImplementation(libs.mockitoCore4) |
| testImplementation(libs.robolectric) |
| testImplementation(libs.testExtJunit) |
| testImplementation(libs.kotlinTest) |
| testImplementation(libs.espressoCore) |
| testImplementation(libs.espressoIntents) |
| testImplementation(libs.kotlinReflect) |
| |
| androidTestImplementation(libs.testExtJunit) |
| androidTestImplementation(libs.kotlinCoroutinesTest) |
| androidTestImplementation(libs.kotlinReflect) |
| androidTestImplementation(libs.kotlinTest) |
| androidTestImplementation(libs.junit) |
| androidTestImplementation(libs.truth) |
| } |
| |
| android { |
| defaultConfig { |
| minSdkVersion 26 |
| } |
| buildFeatures { |
| aidl = true |
| } |
| buildTypes.configureEach { |
| consumerProguardFiles "proguard-rules.pro" |
| } |
| testOptions.unitTests.includeAndroidResources = true |
| namespace "androidx.health.connect.client" |
| compileSdk = 34 |
| compileSdkExtension = 10 |
| } |
| |
| androidx { |
| name = "Health Connect Client" |
| type = LibraryType.PUBLISHED_LIBRARY |
| inceptionYear = "2022" |
| description = "read or write user's health and fitness records." |
| metalavaK2UastEnabled = true |
| legacyDisableKotlinStrictApiMode = true |
| samples(project(":health:connect:connect-client-samples")) |
| } |