-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
130 lines (110 loc) · 4.38 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
buildscript {
apply from: rootProject.file("gradle/dependencies.gradle")
repositories {
google()
gradlePluginPortal()
}
dependencies {
classpath "com.gradle:build-scan-plugin:2.2.1"
classpath "com.android.tools.build:gradle:3.3.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"
classpath "com.novoda:gradle-android-command-plugin:2.0.1"
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.6"
classpath "com.vanniktech:gradle-android-apk-size-plugin:0.4.0"
classpath "com.github.triplet.gradle:play-publisher:2.1.1"
classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.7.1"
classpath "com.github.ben-manes:gradle-versions-plugin:0.21.0"
}
}
repositories {
google()
gradlePluginPortal()
}
apply from: "gradle/scan.gradle"
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.novoda.android-command"
apply plugin: "com.getkeepsafe.dexcount"
apply plugin: "com.vanniktech.android.apk.size"
apply plugin: "com.github.ben-manes.versions"
apply from: "gradle/compile.gradle"
apply from: "gradle/quality.gradle"
apply from: "gradle/publish.gradle"
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "burrows.apps.example.template"
versionCode 1
versionName "1.0"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resConfigs "en" // Keep only english resource files for now
vectorDrawables.useSupportLibrary = true
}
compileOptions {
sourceCompatibility rootProject.ext.javaVersion
targetCompatibility rootProject.ext.javaVersion
}
aaptOptions.cruncherEnabled rootProject.ext.ci
dexOptions.preDexLibraries !rootProject.ext.ci
signingConfigs {
debug {
storeFile file(".buildscript/debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
buildTypes {
release {
minifyEnabled false
proguardFile getDefaultProguardFile("proguard-android-optimize.txt")
proguardFile "proguard-rules.pro"
signingConfig signingConfigs.debug
}
}
lintOptions {
textOutput "stdout"
checkAllWarnings true
warningsAsErrors true
disable "UnusedResources" // Unused will be removed on release
disable "IconExpectedSize" // Using the material icons provided from Google
disable "GoogleAppIndexingApiWarning" // We might want to index our app later
disable "InvalidPackage" // Butterknife, Okio and Realm
disable "ResourceType" // Annotation binding
disable "GradleDependency"
disable "NewerVersionAvailable"
}
testOptions {
animationsDisabled = true
unitTests {
returnDefaultValues = true
}
}
packagingOptions {
exclude "**/*.txt"
exclude "**/*.xml"
exclude "**/*.properties"
}
}
def supportLibraryVersion = "28.0.0"
def espressoVersion = "3.0.2"
configurations.all {
resolutionStrategy.force "com.android.support:support-annotations:$supportLibraryVersion"
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.3.21"
implementation "com.android.support:design:$supportLibraryVersion"
androidTestImplementation "com.android.support:support-annotations:$supportLibraryVersion"
androidTestImplementation "com.android.support.test:runner:1.0.2"
androidTestImplementation "com.android.support.test.espresso:espresso-core:$espressoVersion"
androidTestImplementation "com.android.support.test.espresso:espresso-intents:$espressoVersion"
androidTestImplementation "com.android.support.test.espresso:espresso-contrib:$espressoVersion", { exclude group: "com.android.support" }
testImplementation "junit:junit:4.12"
testImplementation "org.mockito:mockito-inline:2.25.1"
testImplementation "org.robolectric:shadows-support-v4:3.2.2"
testImplementation "org.khronos:opengl-api:gl1.1-android-2.1_r1"
testImplementation "com.android.support:support-annotations:$supportLibraryVersion"
testImplementation "org.assertj:assertj-core:1.7.1"
}