-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
142 lines (126 loc) · 7.84 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url 'https://dl.bintray.com/kotlin/kotlin-eap'
}
maven { url 'https://maven.fabric.io/public' }
}
ext.versions = [supportLib : '23.4.0',
kotlin : '1.1.3',
dagger : '2.4',
rxJava : '1.1.5',
retrofit : '2.1.0',
rxAndroid : '1.2.0',
autoValue : '1.2',
autoValueParcelable : '0.2.1',
autoValueMoshi : '0.3.0',
autoValueCursor : '0.4.0',
autoValueAnnotations: '1.2-update1',
sqlBriteDao : '0.6.1',
mosby : '2.0.1',
adapterDelegates : '2.0.0',
picasso : '2.5.2',
picassoOkHttp3 : '1.0.2',
threetenabp : '1.0.3',
smoothProgressBar : '1.2.0',
kotterknife : '0.1.0-SNAPSHOT',
okhttp : '3.2.0', // TODO update once fixed with robolectric https://github.com/square/okhttp/issues/2533
loganSquare : '1.3.6',
loganSquareConverter: '1.4.0',
fragmentArgs : '3.0.2',
timber : '4.1.2',
crashlytics : '2.5.6@aar',
twitterKit : '1.13.2',
licenseDialog : '1.8.1',
rxBindings : '0.4.0',
junit : '4.12',
mockito : '1.10.19',
mockitoKotlin : '0.4.0',
powerMock : '1.6.5',
robolectric : '3.0',
espresso : '2.2.2',
supportTest : '0.4.1']
ext {
minSdk = 21
targetSdk = 25
compileSdk = 25
buildTools = "26.0.0"
versionName = "0.1.0"
versionCode = 1
libs = [supportLib : "com.android.support:appcompat-v7:$versions.supportLib",
recyclerView : "com.android.support:recyclerview-v7:$versions.supportLib",
cardView : "com.android.support:cardview-v7:$versions.supportLib",
palette : "com.android.support:palette-v7:$versions.supportLib",
supportAnnotations : "com.android.support:support-annotations:$versions.supportLib",
supportDesign : "com.android.support:design:$versions.supportLib",
kotlinStdLib : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin",
kotlinJunit : "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin",
dagger : "com.google.dagger:dagger:$versions.dagger",
daggerCompiler : "com.google.dagger:dagger-compiler:$versions.dagger",
rxJava : "io.reactivex:rxjava:$versions.rxJava",
rxAndroid : "io.reactivex:rxandroid:$versions.rxAndroid",
retrofit : "com.squareup.retrofit2:retrofit:$versions.retrofit",
retrofitRxJava : "com.squareup.retrofit2:adapter-rxjava:$versions.retrofit",
retrofitMoshi : "com.squareup.retrofit2:converter-moshi:$versions.retrofit",
okhttp : "com.squareup.okhttp3:okhttp:$versions.okhttp",
autoValueCompiler : "com.google.auto.value:auto-value:$versions.autoValue",
autoValueAnnotations : "com.jakewharton.auto.value:auto-value-annotations:$versions.autoValueAnnotations",
autoValueParcelableCompiler: "com.ryanharter.auto.value:auto-value-parcel:$versions.autoValueParcelable",
autoValueParcelableAdapter : "com.ryanharter.auto.value:auto-value-parcel-adapter:$versions.autoValueParcelable",
autoValueMoshiCompiler : "com.ryanharter.auto.value:auto-value-moshi:$versions.autoValueMoshi",
autoValueCursorCompiler : "com.gabrielittner.auto.value:auto-value-cursor:$versions.autoValueCursor",
autoValueCursor : "com.gabrielittner.auto.value:auto-value-cursor-annotations:$versions.autoValueCursor",
sqlBriteDao : "com.hannesdorfmann.sqlbrite:dao:$versions.sqlBriteDao",
mosby : "com.hannesdorfmann.mosby:viewstate:$versions.mosby",
adapterDelegates : "com.hannesdorfmann:adapterdelegates2:$versions.adapterDelegates",
picasso : "com.squareup.picasso:picasso:$versions.picasso",
picassoOkHttp3 : "com.jakewharton.picasso:picasso2-okhttp3-downloader:$versions.picassoOkHttp3",
threetenabp : "com.jakewharton.threetenabp:threetenabp:$versions.threetenabp",
smoothProgressBar : "com.github.castorflex.smoothprogressbar:library-circular:$versions.smoothProgressBar",
kotterknife : "com.jakewharton:kotterknife:$versions.kotterknife",
loganSquare : "com.bluelinelabs:logansquare:$versions.loganSquare",
loganSquareCompiler : "com.bluelinelabs:logansquare-compiler:$versions.loganSquare",
loganSquareConverter : "com.github.aurae.retrofit2:converter-logansquare:$versions.loganSquareConverter",
fragmentArgs : "com.hannesdorfmann.fragmentargs:annotation:$versions.fragmentArgs",
fragmentArgsCompiler : "com.hannesdorfmann.fragmentargs:processor:$versions.fragmentArgs",
timber : "com.jakewharton.timber:timber:$versions.timber",
crashlytics : "com.crashlytics.sdk.android:crashlytics:$versions.crashlytics",
twitterKit : "com.twitter.sdk.android:twitter:$versions.twitterKit@aar",
licenseDialog : "de.psdev.licensesdialog:licensesdialog:$versions.licenseDialog",
rxBindings : "com.jakewharton.rxbinding:rxbinding:$versions.rxBindings",
junit : "junit:junit:$versions.junit",
mockito : "org.mockito:mockito-core:$versions.mockito",
mockitoKotlin : "com.nhaarman:mockito-kotlin:$versions.mockitoKotlin",
powerMock : "org.powermock:powermock-api-mockito:$versions.powerMock",
powerMockJunit : "org.powermock:powermock-module-junit4:$versions.powerMock",
robolectric : "org.robolectric:robolectric:$versions.robolectric",
supportTestRunner : "com.android.support.test:runner:$versions.supportTest",
supportTestRule : "com.android.support.test:rules:$versions.supportTest",
espresso : "com.android.support.test.espresso:espresso-core:$versions.espresso"]
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.0'
classpath 'io.fabric.tools:gradle:1.+'
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://dl.bintray.com/kotlin/kotlin-eap'
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://maven.google.com' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}