/* * Copyright (C) 2022 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. */ repositories { google() mavenCentral() } buildscript { repositories { mavenCentral() google() } dependencies { classpath 'com.android.tools.build:gradle:8.0.2' classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10' } } apply plugin: 'com.android.application' apply plugin: 'org.jetbrains.kotlin.android' android { namespace 'com.android.healthconnect.testapps.toolbox' buildToolsVersion = "34.0.0" compileSdkVersion "android-UpsideDownCake" defaultConfig { targetSdkVersion 34 minSdkVersion 31 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = [ 'src', ] res.srcDirs = [ 'res', ] } androidTest { java.srcDirs = [ 'tests/src', ] res.srcDirs = [ 'tests/res' ] } } } dependencies { implementation('androidx.preference:preference:1.2.1') { exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel' exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx' } implementation 'com.google.android.material:material:1.11.0' implementation 'androidx.appcompat:appcompat:1.6.1' implementation "androidx.navigation:navigation-fragment-ktx:2.7.7" implementation "androidx.navigation:navigation-ui-ktx:2.7.7" implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0' implementation "androidx.fragment:fragment-ktx:1.6.2" implementation "androidx.activity:activity-ktx:1.9.0" implementation "androidx.fragment:fragment-ktx:1.6.2" implementation "androidx.activity:activity-ktx:1.9.0" implementation 'androidx.work:work-runtime-ktx:2.9.0' // test dependencies testImplementation 'junit:junit:4.13.2' androidTestImplementation "com.google.truth:truth:1.1.3" androidTestImplementation('androidx.test.espresso:espresso-core:3.5.1') androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test:runner:1.5.2' androidTestImplementation 'androidx.test:rules:1.5.0' androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.5' androidTestImplementation 'org.mockito:mockito-core:2.23.0' androidTestImplementation "androidx.navigation:navigation-testing:2.7.7" }