| /* |
| * 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:7.2.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' |
| compileSdkVersion 33 |
| defaultConfig { |
| targetSdkVersion 33 |
| 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' |
| ] |
| } |
| } |
| buildToolsVersion '30.0.3' |
| } |
| |
| dependencies { |
| implementation('androidx.preference:preference:1.2.0') { |
| exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel' |
| exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx' |
| } |
| implementation 'com.google.android.material:material:1.7.0' |
| implementation 'androidx.appcompat:appcompat:1.5.1' |
| implementation "androidx.navigation:navigation-fragment-ktx:2.5.3" |
| implementation "androidx.navigation:navigation-ui-ktx:2.5.3" |
| implementation 'androidx.legacy:legacy-support-v4:1.0.0' |
| implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1' |
| implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' |
| implementation "androidx.fragment:fragment-ktx:1.5.4" |
| implementation "androidx.activity:activity-ktx:1.6.1" |
| implementation "androidx.fragment:fragment-ktx:1.5.4" |
| implementation "androidx.activity:activity-ktx:1.6.1" |
| |
| // test dependencies |
| testImplementation 'junit:junit:4.13.2' |
| androidTestImplementation "com.google.truth:truth:1.1.3" |
| androidTestImplementation('androidx.test.espresso:espresso-core:3.4.0') |
| androidTestImplementation 'androidx.test.ext:junit:1.1.3' |
| androidTestImplementation 'androidx.test:runner:1.4.0' |
| androidTestImplementation 'androidx.test:rules:1.4.0' |
| androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.3' |
| androidTestImplementation 'org.mockito:mockito-core:1.10.19' |
| androidTestImplementation "androidx.navigation:navigation-testing:2.5.3" |
| |
| } |