-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
89 lines (71 loc) · 3.29 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
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.example.fragment_sample_mvp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
defaultConfig{
buildConfigField "String", "GITHUB_OWNER", '"myotive"'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
warning 'InvalidPackage'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':common')
androidTestCompile("com.android.support.test.espresso:espresso-core:$espressoVersion", {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile "com.android.support:appcompat-v7:$supportLibVersion"
testCompile "junit:junit:$junitVersion"
// -- Butter Knife view injections
compile "com.jakewharton:butterknife:$butterKnifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterKnifeVersion"
// -- Dagger 2
compile "com.google.dagger:dagger:$daggerVersion"
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
testAnnotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
androidTestCompile("com.android.support.test.espresso:espresso-contrib:$espressoVersion", {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'design'
exclude module: 'recyclerview-v7'
})
androidTestCompile("com.android.support.test.espresso:espresso-intents:$espressoVersion", {
exclude group: 'com.android.support', module: 'support-annotations'
})
// note: dexmaker does not support mockito 2.0 at this time
testCompile 'org.mockito:mockito-core:1.10.19'
androidTestCompile 'org.mockito:mockito-core:1.10.19'
androidTestCompile 'org.droidparts.dexmaker:dexmaker:1.5'
androidTestCompile 'org.droidparts.dexmaker:dexmaker-dx:1.5'
androidTestCompile 'org.droidparts.dexmaker:dexmaker-parent:1.5'
androidTestCompile('org.droidparts.dexmaker:dexmaker-mockito:1.5') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
androidTestCompile 'com.github.fabioCollini:DaggerMock:0.6.2'
androidTestCompile ('com.jakewharton.espresso:okhttp3-idling-resource:1.0.0',{
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
})
androidTestCompile ('com.squareup.okhttp3:mockwebserver:3.5.0', {
exclude group: 'com.squareup.okio', module: 'okio'
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
})
}