1/* 2 * Copyright (C) 2022 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 */ 16 17repositories { 18 google() 19 mavenCentral() 20} 21 22buildscript { 23 repositories { 24 mavenCentral() 25 google() 26 } 27 dependencies { 28 classpath 'com.android.tools.build:gradle:8.0.2' 29 classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10' 30 } 31} 32 33apply plugin: 'com.android.application' 34apply plugin: 'org.jetbrains.kotlin.android' 35 36android { 37 namespace 'com.android.healthconnect.testapps.toolbox' 38 buildToolsVersion = "34.0.0" 39 compileSdkVersion "android-UpsideDownCake" 40 defaultConfig { 41 targetSdkVersion 34 42 minSdkVersion 31 43 44 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 45 } 46 47 sourceSets { 48 main { 49 manifest.srcFile 'AndroidManifest.xml' 50 java.srcDirs = [ 51 'src', 52 ] 53 res.srcDirs = [ 54 'res', 55 ] 56 } 57 58 androidTest { 59 java.srcDirs = [ 60 'tests/src', 61 ] 62 res.srcDirs = [ 63 'tests/res' 64 ] 65 } 66 } 67} 68 69dependencies { 70 implementation('androidx.preference:preference:1.2.1') { 71 exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel' 72 exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx' 73 } 74 implementation 'com.google.android.material:material:1.11.0' 75 implementation 'androidx.appcompat:appcompat:1.6.1' 76 implementation "androidx.navigation:navigation-fragment-ktx:2.7.7" 77 implementation "androidx.navigation:navigation-ui-ktx:2.7.7" 78 implementation 'androidx.legacy:legacy-support-v4:1.0.0' 79 implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0' 80 implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0' 81 implementation "androidx.fragment:fragment-ktx:1.6.2" 82 implementation "androidx.activity:activity-ktx:1.9.0" 83 implementation "androidx.fragment:fragment-ktx:1.6.2" 84 implementation "androidx.activity:activity-ktx:1.9.0" 85 implementation 'androidx.work:work-runtime-ktx:2.9.0' 86 87 // test dependencies 88 testImplementation 'junit:junit:4.13.2' 89 androidTestImplementation "com.google.truth:truth:1.1.3" 90 androidTestImplementation('androidx.test.espresso:espresso-core:3.5.1') 91 androidTestImplementation 'androidx.test.ext:junit:1.1.5' 92 androidTestImplementation 'androidx.test:runner:1.5.2' 93 androidTestImplementation 'androidx.test:rules:1.5.0' 94 androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.5' 95 androidTestImplementation 'org.mockito:mockito-core:2.23.0' 96 androidTestImplementation "androidx.navigation:navigation-testing:2.7.7" 97 98}