-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (102 loc) · 5.05 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.20'
ext.gradle_tools = '3.2.1'
ext.build_tools = '28.0.0'
ext.compile_sdk = 28
ext.target_sdk = 28
ext.min_sdk = 21
ext.version_name = '1.0'
ext.version_code = 1
ext.test_runner = 'android.support.test.runner.AndroidJUnitRunner'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
//Android libraries
appCompat_version = '27.1.0'
constraintLayout_version = '1.0.2'
archComponents_version = '1.1.1'
glide_version = '4.0.0'
//Third party libraries
kotlin_coroutines_version = '0.22.1'
dagger_version = '2.11'
javaxAnnotations_version = '1.0'
javaxInject_version = '1'
retrofit_version = '2.3.0'
rxjava_version = '2.1.6'
rxjava_android_version = '2.0.1'
okhttp_logging_interceptor_version = '3.8.1'
//Unit Testing
robolectric_version = '3.8'
junit_version = '4.12'
mockito_version = '1.4.0'
kluent_version = '1.14'
//Acceptance Testing
runner_version = '1.0.2-alpha1'
espresso_version = '3.0.2-alpha1'
//Development
leakCanaryVersion = '1.5'
mainApplication = [
kotlin : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
kotlinCoroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version",
kotlinCoroutinesAndroid : "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version",
appCompat : "com.android.support:appcompat-v7:$appCompat_version",
cardView : "com.android.support:cardview-v7:$appCompat_version",
recyclerView : "com.android.support:recyclerview-v7:$appCompat_version",
design : "com.android.support:design:$appCompat_version",
constraintLayout : "com.android.support.constraint:constraint-layout:$constraintLayout_version",
androidAnnotations : "com.android.support:support-annotations:$appCompat_version",
archComponents : "android.arch.lifecycle:extensions:$archComponents_version",
archComponentsCompiler : "android.arch.lifecycle:compiler:$archComponents_version",
glide : "com.github.bumptech.glide:glide:$glide_version",
daggerCompiler : "com.google.dagger:dagger-compiler:$dagger_version",
dagger : "com.google.dagger:dagger:$dagger_version",
javaxAnnotation : "javax.annotation:jsr250-api:$javaxAnnotations_version",
javaxInject : "javax.inject:javax.inject:$javaxInject_version",
retrofit_2 : "com.squareup.retrofit2:retrofit:${retrofit_version}",
retrofit : "com.squareup.retrofit2:converter-gson:$retrofit_version",
okhttpLoggingInterceptor: "com.squareup.okhttp3:logging-interceptor:$okhttp_logging_interceptor_version",
]
unitTesting = [
kotlin : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
kotlinTest : "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version",
robolectric : "org.robolectric:robolectric:$robolectric_version",
junit : "junit:junit:$junit_version",
mockito : "com.nhaarman:mockito-kotlin:$mockito_version",
kluent : "org.amshove.kluent:kluent:$kluent_version",
]
acceptanceTesting = [
testRunner : "com.android.support.test:runner:$runner_version",
testRules : "com.android.support.test:rules:$runner_version",
espressoCore : "com.android.support.test.espresso:espresso-core:$espresso_version",
espressoIntents : "com.android.support.test.espresso:espresso-intents:$espresso_version",
androidAnnotations : "com.android.support:support-annotations:$appCompat_version",
]
development = [
leakCanary : "com.squareup.leakcanary:leakcanary-android:${leakCanaryVersion}",
leakCanaryNoop : "com.squareup.leakcanary:leakcanary-android-no-op:${leakCanaryVersion}",
]
rxjava = [
adapter_rxjava : "com.squareup.retrofit2:adapter-rxjava2:${retrofit_version}",
rxjava : "io.reactivex.rxjava2:rxjava:${rxjava_version}",
rxandroid : "io.reactivex.rxjava2:rxandroid:${rxjava_android_version}"
]
}