-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
113 lines (91 loc) · 2.35 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
buildscript {
ext.kotlin_version = '1.2.0'
ext.android_plugin_version = '3.0.1'
repositories {
jcenter()
google()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:$android_plugin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
jcenter()
google()
maven { url 'https://jitpack.io' }
}
}
subprojects {
afterEvaluate {
if (!android) return
android {
compileSdkVersion 27
buildToolsVersion "27.0.1"
defaultConfig {
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
resConfigs "pt"
}
lintOptions {
abortOnError false
}
aaptOptions {
cruncherEnabled = false
}
testOptions {
unitTests.all {
jacoco {
includeNoLocationClasses = true
}
}
execution 'ANDROID_TEST_ORCHESTRATOR'
unitTests.returnDefaultValues = true
animationsDisabled true
}
packagingOptions {
exclude 'META-INF/LICENSE'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
androidTest.java.srcDirs += 'src/androidTest/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
}
}
ext {
// Android
androidSupport = '27.0.2'
playServices = '11.6.0'
constraintLayout = '1.0.2'
// Google
gson = '2.8.2'
// Square
picasso = '2.5.2'
okHttp = '3.9.0'
retrofit = '2.3.0'
timber = '4.5.1'
// Android Arch
arch = '1.0.0'
// Testing
kappuccino = '1.0.6'
espresso = "3.0.1"
rules = "1.0.1"
runner = "1.0.1"
mockito = "2.11.0"
mockitoKotlin = "1.5.0"
dexopener = "0.12.0"
mirror = "1.6.1"
}
task clean(type: Delete) {
delete rootProject.buildDir
}