This repository was archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
112 lines (95 loc) · 3.48 KB
/
build.gradle
File metadata and controls
112 lines (95 loc) · 3.48 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
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
apply plugin: 'com.android.library'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'de.mobilej.unmock'
apply plugin: 'net.ltgt.errorprone'
android {
compileSdkVersion rootProject.ext.androidCompileSdkVersion
buildToolsVersion rootProject.ext.androidBuildToolsVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode rootProject.ext.releaseVersionCode
versionName rootProject.ext.releaseVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
testCoverageEnabled = true
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
}
unMock {
downloadFrom 'https://oss.sonatype.org/content/groups/public/org/robolectric/android-all/6.0.0_r1-robolectric-0/android-all-6.0.0_r1-robolectric-0.jar'
downloadTo "${System.getenv('HOME')}/.gradle/caches/"
keep "android.os.Looper"
keep "android.content.ContentValues"
keepStartingWith "android.util."
}
dependencies {
def modelBaseDependencies = rootProject.ext.modelBaseDependencies
def aptDependencies = rootProject.ext.aptDependencies
def testDependencies = rootProject.ext.testDependencies
compile modelBaseDependencies.androidSupportAppCompatV7
compile modelBaseDependencies.javaxAnnotation
compile modelBaseDependencies.rxJava2
compile(modelBaseDependencies.rxAndroid2) {
exclude module: 'rxjava'
}
compile modelBaseDependencies.rxJava2Interop
// this should be removed after belows update
compile modelBaseDependencies.rxJava
compile(modelBaseDependencies.rxAndroid) {
exclude module: 'rxjava'
}
compile(modelBaseDependencies.rxBindingAppCompatV7) {
exclude module: 'rxjava'
exclude module: 'rxandroid'
exclude module: 'appcompat-v7'
exclude module: 'support-annotations'
}
compile modelBaseDependencies.eventBus
compile modelBaseDependencies.dagger
compile(modelBaseDependencies.butterKnife) {
exclude module: 'support-annotations'
}
compile modelBaseDependencies.gson
compile modelBaseDependencies.okHttp
compile(modelBaseDependencies.retrofit) {
exclude module: 'okhttp'
}
compile(modelBaseDependencies.retrofitGsonConverter) {
exclude module: 'gson'
}
compile(modelBaseDependencies.retrofitRxJava2Adapter) {
exclude module: 'rxjava'
}
compile modelBaseDependencies.threetenabp
compile modelBaseDependencies.autoBundle
compile modelBaseDependencies.timber
compile modelBaseDependencies.okHttpLogging
compile(modelBaseDependencies.ok2Curl) {
exclude module: 'okhttp'
}
compile(modelBaseDependencies.stethoOkhttp) {
exclude module: 'okhttp'
exclude module: 'jsr305'
}
provided aptDependencies.autoValue
annotationProcessor aptDependencies.daggerApt
annotationProcessor aptDependencies.autoParcelApt
retrolambdaConfig aptDependencies.retrolambda
errorprone aptDependencies.errorprone
testCompile testDependencies.hamcrestLibrary
testCompile(testDependencies.junit) {
exclude module: 'hamcrest-core'
}
testCompile testDependencies.mockito
}