• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:7.2.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    compileSdkVersion 33
39    defaultConfig {
40        targetSdkVersion 33
41        minSdkVersion 31
42
43        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
44    }
45
46    sourceSets {
47        main {
48            manifest.srcFile 'AndroidManifest.xml'
49            java.srcDirs = [
50                    'src',
51            ]
52            res.srcDirs = [
53                    'res',
54            ]
55        }
56
57        androidTest {
58            java.srcDirs = [
59                    'tests/src',
60            ]
61            res.srcDirs = [
62                    'tests/res'
63            ]
64        }
65    }
66    buildToolsVersion '30.0.3'
67}
68
69dependencies {
70    implementation('androidx.preference:preference:1.2.0') {
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.7.0'
75    implementation 'androidx.appcompat:appcompat:1.5.1'
76    implementation "androidx.navigation:navigation-fragment-ktx:2.5.3"
77    implementation "androidx.navigation:navigation-ui-ktx:2.5.3"
78    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
79    implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
80    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
81    implementation "androidx.fragment:fragment-ktx:1.5.4"
82    implementation "androidx.activity:activity-ktx:1.6.1"
83    implementation "androidx.fragment:fragment-ktx:1.5.4"
84    implementation "androidx.activity:activity-ktx:1.6.1"
85
86    // test dependencies
87    testImplementation 'junit:junit:4.13.2'
88    androidTestImplementation "com.google.truth:truth:1.1.3"
89    androidTestImplementation('androidx.test.espresso:espresso-core:3.4.0')
90    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
91    androidTestImplementation 'androidx.test:runner:1.4.0'
92    androidTestImplementation 'androidx.test:rules:1.4.0'
93    androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.3'
94    androidTestImplementation 'org.mockito:mockito-core:1.10.19'
95    androidTestImplementation "androidx.navigation:navigation-testing:2.5.3"
96
97}