-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbaseAndroid.gradle
More file actions
69 lines (57 loc) · 1.76 KB
/
baseAndroid.gradle
File metadata and controls
69 lines (57 loc) · 1.76 KB
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
/**
* This gradle file contains the basic project configuration that all modules should use
*/
apply from: "$rootDir/baseExt.gradle"
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion versions.compileSdkVersion
defaultConfig {
minSdkVersion versions.minSdkVersion
targetSdkVersion versions.targetSdkVersion
versionCode versions.versionCode
versionName versions.versionName
testInstrumentationRunner versions.testInstrumentationRunner
multiDexEnabled versions.multiDexEnabled
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
/**
* We dont want to store the UT results anywhere, this is going to speed up the build process
*/
testOptions.unitTests.all {
reports.html.enabled = false
reports.junitXml.enabled = false
maxParallelForks = 7 //Speeds up yhe UT by running'em into 7 different forks
}
dexOptions {
javaMaxHeapSize "4g"
preDexLibraries = true
}
packagingOptions {
exclude 'META-INF/rxjava.properties'
}
/**
* This two options are basically disabling the lint validation during building time, we may want
* to enable them from time to time, to check on the lint errors
*/
lintOptions {
tasks.lint.enabled = false
abortOnError false
}
/**
* Speeds up the building time
*/
kapt {
useBuildCache = true
}
compileOptions {
incremental = true //Enables incremental builds so we don't need to rebuild unchanged modules
}
androidExtensions {
experimental = true //Enables @Parcelize and other extensions
}
dataBinding.enabled = true
}