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
18android {
19    compileSdkVersion rootProject.ext.compileSdkVersion
20    buildToolsVersion rootProject.ext.buildToolsVersion
21
22    defaultConfig {
23        applicationId "com.android.example.text.styling"
24        minSdkVersion rootProject.ext.minSdkVersion
25        targetSdkVersion rootProject.ext.targetSdkVersion
26        versionCode 1
27        versionName "1.0"
28        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
29    }
30    buildTypes {
31        release {
32            postprocessing {
33                removeUnusedCode false
34                removeUnusedResources false
35                obfuscate false
36                optimizeCode false
37                proguardFile 'proguard-rules.pro'
38            }
39        }
40    }
41}
42
43dependencies {
44    implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
45    implementation "com.android.support.constraint:constraint-layout:$constraintLayoutVersion"
46
47    // Dependencies for local unit tests
48    testImplementation "junit:junit:$junitVersion"
49
50    androidTestImplementation "org.mockito:mockito-core:$mockitoVersion"
51    androidTestImplementation "com.android.support.test:runner:$runnerVersion"
52    androidTestImplementation "com.android.support.test.espresso:espresso-core:$espressoVersion"
53    androidTestImplementation "com.google.dexmaker:dexmaker:$dexmakerVersion"
54    androidTestImplementation "com.google.dexmaker:dexmaker-mockito:$dexmakerMockitoVersion"
55}