1/*
2 * Copyright 2021 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 */
16apply from: '../../constants.gradle'
17apply plugin: 'com.android.application'
18
19android {
20    compileSdkVersion project.ext.compileSdkVersion
21
22    compileOptions {
23        sourceCompatibility JavaVersion.VERSION_1_8
24        targetCompatibility JavaVersion.VERSION_1_8
25    }
26
27    defaultConfig {
28        versionName project.ext.releaseVersion
29        versionCode project.ext.releaseVersionCode
30        minSdkVersion 21
31        targetSdkVersion project.ext.appTargetSdkVersion
32        multiDexEnabled true
33    }
34
35    buildTypes {
36        release {
37            shrinkResources true
38            minifyEnabled true
39            proguardFiles getDefaultProguardFile('proguard-android.txt')
40            signingConfig signingConfigs.debug
41        }
42    }
43
44    lintOptions {
45        // This demo app isn't indexed and doesn't have translations.
46        disable 'GoogleAppIndexingWarning','MissingTranslation'
47    }
48}
49
50dependencies {
51    implementation 'androidx.core:core:' + androidxCoreVersion
52    compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
53    implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion
54    implementation 'androidx.appcompat:appcompat:' + androidxAppCompatVersion
55    implementation 'androidx.constraintlayout:constraintlayout:' + androidxConstraintLayoutVersion
56    implementation 'androidx.multidex:multidex:' + androidxMultidexVersion
57    implementation 'com.google.android.material:material:' + androidxMaterialVersion
58    implementation project(modulePrefix + 'library-core')
59    implementation project(modulePrefix + 'library-transformer')
60    implementation project(modulePrefix + 'library-ui')
61}
62