-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
116 lines (91 loc) · 2.51 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
buildscript {
ext.kotlin_version = '1.2.21'
repositories {
jcenter()
google()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'
}
}
allprojects {
repositories {
jcenter()
google()
maven { url 'https://jitpack.io' }
}
}
subprojects {
afterEvaluate {
if (!project.hasProperty('android')) return
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
resConfigs "en"
}
lintOptions {
abortOnError false
absolutePaths false
disable 'InvalidPackage'
}
aaptOptions {
cruncherEnabled = false
}
testOptions {
unitTests.returnDefaultValues = true
animationsDisabled true
// Está com problemas para gerar cobertura de código e com tempo de execução
// execution 'ANDROID_TEST_ORCHESTRATOR'
}
packagingOptions {
exclude 'META-INF/LICENSE'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
androidTest.java.srcDirs += 'src/androidTest/kotlin'
androidTest.resources.srcDirs += 'src/androidTest/res'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
}
}
ext {
// Android
androidSupport = '27.1.0'
playServices = '11.8.0'
constraintLayout = '1.1.0-beta5'
// Google
gson = '2.8.2'
// Square
picasso = '2.5.2'
okHttp = '3.9.1'
retrofit = '2.3.0'
timber = '4.6.0'
threeTenABP = '1.0.5'
// Android Arch
arch = '1.1.0'
// Testing
kappuccino = '1.1.0'
espresso = "3.0.1"
rules = "1.0.1"
runner = "1.0.1"
mockito = "2.11.0"
mockitoKotlin = "1.5.0"
dexopener = "0.12.1"
mirror = "1.6.1"
}
task clean(type: Delete) {
delete rootProject.buildDir
}