1/*
2 * Copyright (C) 2018 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 plugin: 'com.android.application'
17
18apply plugin: 'kotlin-android'
19
20apply plugin: 'kotlin-android-extensions'
21
22android {
23    compileSdkVersion rootProject.compileSdkVersion
24    buildToolsVersion rootProject.buildToolsVersion
25
26    defaultConfig {
27        applicationId "com.android.example.text.styling"
28        minSdkVersion rootProject.minSdkVersion
29        targetSdkVersion rootProject.targetSdkVersion
30        versionCode 1
31        versionName "1.0"
32        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
33    }
34    buildTypes {
35        release {
36            postprocessing {
37                removeUnusedCode false
38                removeUnusedResources false
39                obfuscate false
40                optimizeCode false
41                proguardFile 'proguard-rules.pro'
42            }
43        }
44    }
45}
46
47dependencies {
48    implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
49    implementation "com.android.support.constraint:constraint-layout:$constraintLayoutVersion"
50
51    // Android KTX
52    implementation "androidx.core:core-ktx:$androidktx"
53
54    // Dependencies for local unit tests
55    testImplementation "junit:junit:$junitVersion"
56
57    androidTestImplementation "org.mockito:mockito-core:$mockitoVersion"
58    androidTestImplementation "com.android.support.test:runner:$runnerVersion"
59    androidTestImplementation "com.android.support.test.espresso:espresso-core:$espressoVersion"
60    androidTestImplementation "com.google.dexmaker:dexmaker:$dexmakerVersion"
61    androidTestImplementation "com.google.dexmaker:dexmaker-mockito:$dexmakerMockitoVersion"
62
63    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64}
65
66repositories {
67    google()
68}
69