1/*
2 * Copyright (C) 2019 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
17apply plugin: 'com.android.application'
18
19android {
20    compileSdkVersion 28
21
22    defaultConfig {
23        applicationId 'com.example.android.pdfrendererbasic'
24        minSdkVersion 21
25        targetSdkVersion 28
26        versionCode 1
27        versionName '1.0'
28        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
29    }
30
31    compileOptions {
32        sourceCompatibility JavaVersion.VERSION_1_8
33        targetCompatibility JavaVersion.VERSION_1_8
34    }
35
36    testOptions {
37        unitTests {
38            returnDefaultValues = true
39            includeAndroidResources = true
40        }
41    }
42}
43
44dependencies {
45    implementation 'androidx.appcompat:appcompat:1.0.2'
46
47    def lifecycle_version = '2.0.0'
48    implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
49    androidTestImplementation "androidx.arch.core:core-testing:$lifecycle_version"
50
51    testImplementation 'com.google.truth:truth:0.42'
52    testImplementation 'androidx.test:core:1.1.0'
53    testImplementation 'androidx.test:runner:1.1.1'
54    androidTestImplementation 'androidx.test.ext:truth:1.1.0'
55    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
56}
57