@@ -3,7 +3,6 @@ apply plugin: 'com.google.firebase.firebase-crash'
3
3
apply plugin : ' io.fabric'
4
4
apply plugin : ' me.tatarka.retrolambda'
5
5
apply plugin : ' realm-android'
6
- apply plugin : ' blockcanaryex'
7
6
apply plugin : ' checkstyle'
8
7
apply plugin : ' findbugs'
9
8
apply plugin : ' jacoco'
@@ -18,14 +17,13 @@ String VERSION_HASH = 'git rev-parse --short HEAD'.execute().text.trim()
18
17
19
18
android {
20
19
compileSdkVersion 25
21
- buildToolsVersion ' 25.0.2'
22
-
20
+ buildToolsVersion ' 25.0.3'
23
21
defaultConfig {
24
- applicationId ' com.github.ayltai.newspaper'
25
- minSdkVersion 16
22
+ applicationId ' com.github.ayltai.newspaper'
23
+ minSdkVersion 16
26
24
targetSdkVersion 25
27
- versionCode 12
28
- versionName ' 1.2.7r ' + VERSION_REVISION + ' -' + VERSION_HASH
25
+ versionCode 13
26
+ versionName ' 2.0.0r ' + VERSION_REVISION + ' -' + VERSION_HASH
29
27
30
28
testInstrumentationRunner ' android.support.test.runner.AndroidJUnitRunner'
31
29
testInstrumentationRunnerArguments disableAnalytics : ' true'
@@ -67,6 +65,7 @@ android {
67
65
68
66
lintOptions {
69
67
abortOnError false
68
+ disable ' RestrictedApi'
70
69
}
71
70
72
71
dexOptions {
@@ -92,52 +91,72 @@ configurations {
92
91
codacy
93
92
}
94
93
94
+ ext {
95
+ supportLibraryVersion = ' 25.3.1'
96
+ firebaseSdkVersion = ' 10.2.4'
97
+ daggerVersion = ' 2.10'
98
+ frescoVersion = ' 1.3.0'
99
+ bigImageViewerVersion = ' 1.2.9'
100
+ debugDrawerVersion = ' 0.7.0'
101
+ stethoVersion = ' 1.5.0'
102
+ leakCanaryVersion = ' 1.5.1'
103
+ espressoVersion = ' 2.2.2'
104
+ }
105
+
95
106
dependencies {
96
107
compile fileTree(dir : ' libs' , include : [' *.jar' ])
97
108
98
- // Android
99
- compile ' com.android.support:support-annotations:25.3.1 '
100
- compile ' com.android.support:appcompat-v7:25.3.1 '
101
- compile ' com.android.support:support-compat:25.3.1 '
102
- compile ' com.android.support:support-v13:25.3.1 '
103
- compile ' com.android.support:support-v4:25.3.1 '
104
- compile ' com.android.support:design:25.3.1 '
105
- compile ' com.android.support:recyclerview-v7:25.3.1 '
106
- compile ' com.android.support:cardview-v7:25.3.1 '
107
- compile ' com.android.support:support-core-utils:25.3.1 '
108
- compile ' com.android.support:preference-v7:25.3.1 '
109
- compile ' com.android.support:preference-v14:25.3.1 '
109
+ // Android Support libraries
110
+ compile " com.android.support:support-annotations:${ supportLibraryVersion } "
111
+ compile " com.android.support:appcompat-v7:${ supportLibraryVersion } "
112
+ compile " com.android.support:support-compat:${ supportLibraryVersion } "
113
+ compile " com.android.support:support-v13:${ supportLibraryVersion } "
114
+ compile " com.android.support:support-v4:${ supportLibraryVersion } "
115
+ compile " com.android.support:design:${ supportLibraryVersion } "
116
+ compile " com.android.support:recyclerview-v7:${ supportLibraryVersion } "
117
+ compile " com.android.support:cardview-v7:${ supportLibraryVersion } "
118
+ compile " com.android.support:support-core-utils:${ supportLibraryVersion } "
119
+ compile " com.android.support:preference-v7:${ supportLibraryVersion } "
120
+ compile " com.android.support:preference-v14:${ supportLibraryVersion } "
110
121
compile (' com.takisoft.fix:preference-v7:25.3.1.0' ) {
111
122
exclude group : ' com.android.support' , module : ' preference-v7'
112
123
exclude group : ' com.android.support' , module : ' preference-v14'
113
124
}
114
125
115
126
// Firebase
116
- compile (' com.google.firebase:firebase-core:10.2.1 ' ) {
127
+ compile (" com.google.firebase:firebase-core:${ firebaseSdkVersion } " ) {
117
128
exclude group : ' com.android.support' , module : ' support-annotations'
118
129
exclude group : ' com.android.support' , module : ' support-v4'
119
130
}
120
- compile (' com.google.firebase:firebase-crash:10.2.1 ' ) {
131
+ compile (" com.google.firebase:firebase-crash:${ firebaseSdkVersion } " ) {
121
132
exclude group : ' com.android.support' , module : ' support-annotations'
122
133
exclude group : ' com.android.support' , module : ' support-v4'
123
134
}
124
- compile (' com.google.firebase:firebase-config:10.2.1 ' ) {
135
+ compile (" com.google.firebase:firebase-config:${ firebaseSdkVersion } " ) {
125
136
exclude group : ' com.android.support' , module : ' support-annotations'
126
137
exclude group : ' com.android.support' , module : ' support-v4'
127
138
}
128
- compile (' com.google.firebase:firebase-invites:10.2.1 ' ) {
139
+ compile (" com.google.firebase:firebase-invites:${ firebaseSdkVersion } " ) {
129
140
exclude group : ' com.android.support' , module : ' support-annotations'
130
141
exclude group : ' com.android.support' , module : ' support-v4'
131
142
}
132
143
133
144
// Fabric
134
- releaseCompile(' io.fabric.sdk.android:fabric:1.3.16@aar' ) { transitive = true ; }
135
- releaseCompile(' com.crashlytics.sdk.android:crashlytics:2.6.7@aar' ) { transitive = true ; }
136
- releaseCompile(' com.crashlytics.sdk.android:answers:1.3.12@aar' ) { transitive = true ; }
137
- testCompile(' com.crashlytics.sdk.android:answers:1.3.12@aar' ) { transitive = true ; }
145
+ releaseCompile(' io.fabric.sdk.android:fabric:1.3.16@aar' ) {
146
+ transitive = true ;
147
+ }
148
+ releaseCompile(' com.crashlytics.sdk.android:crashlytics:2.6.7@aar' ) {
149
+ transitive = true ;
150
+ }
151
+ releaseCompile(' com.crashlytics.sdk.android:answers:1.3.12@aar' ) {
152
+ transitive = true ;
153
+ }
154
+ testCompile(' com.crashlytics.sdk.android:answers:1.3.12@aar' ) {
155
+ transitive = true ;
156
+ }
138
157
139
158
// ReactiveX
140
- compile ' io.reactivex:rxjava:1.2.10 '
159
+ compile ' io.reactivex:rxjava:1.3.0 '
141
160
compile (' io.reactivex:rxandroid:1.2.1' ) {
142
161
exclude group : ' io.reactivex' , module : ' rxjava'
143
162
}
@@ -148,8 +167,8 @@ dependencies {
148
167
}
149
168
150
169
// Dagger 2
151
- compile ' com.google.dagger:dagger:2.10 '
152
- annotationProcessor ' com.google.dagger:dagger-compiler:2.10 '
170
+ compile " com.google.dagger:dagger:${ daggerVersion } "
171
+ annotationProcessor " com.google.dagger:dagger-compiler:${ daggerVersion } "
153
172
154
173
// Flow by Square
155
174
compile (' com.squareup.flow:flow:1.0.0-alpha3' ) {
@@ -163,26 +182,26 @@ dependencies {
163
182
compile ' io.realm:android-adapters:2.0.0'
164
183
165
184
// Image processing
166
- compile ' com.facebook.fresco:fresco:1.3.0 '
167
- compile ' com.facebook.fresco:imagepipeline-okhttp3:1.3.0 '
185
+ compile " com.facebook.fresco:fresco:${ frescoVersion } "
186
+ compile " com.facebook.fresco:imagepipeline-okhttp3:${ frescoVersion } "
168
187
compile (' com.github.stfalcon:frescoimageviewer:0.5.0' ) {
169
188
exclude group : ' com.facebook.fresco' , module : ' fresco'
170
189
}
171
- compile (' com.google.android.gms:play-services-vision:10.2.1 ' ) {
190
+ compile (" com.google.android.gms:play-services-vision:${ firebaseSdkVersion } " ) {
172
191
exclude group : ' com.android.support' , module : ' support-annotations'
173
192
exclude group : ' com.android.support' , module : ' support-v4'
174
193
}
175
194
compile (' com.davemorrissey.labs:subsampling-scale-image-view:3.6.0' ) {
176
195
exclude group : ' com.android.support' , module : ' support-annotations'
177
196
}
178
- compile (' com.github.piasy:BigImageViewer:1.2.8 ' ) {
197
+ compile (" com.github.piasy:BigImageViewer:${ bigImageViewerVersion } " ) {
179
198
exclude group : ' com.android.support' , module : ' support-annotations'
180
199
exclude group : ' com.davemorrissey.labs' , module : ' subsampling-scale-image-view'
181
200
}
182
- compile (' com.github.piasy:FrescoImageLoader:1.2.8 ' ) {
201
+ compile (" com.github.piasy:FrescoImageLoader:${ bigImageViewerVersion } " ) {
183
202
exclude group : ' com.facebook.fresco' , module : ' fresco'
184
203
}
185
- compile ' com.github.piasy:ProgressPieIndicator:1.2.8 '
204
+ compile " com.github.piasy:ProgressPieIndicator:${ bigImageViewerVersion } "
186
205
187
206
// Eye candies
188
207
compile (' hanks.xyz:smallbang-library:0.1.2' ) {
@@ -212,45 +231,43 @@ dependencies {
212
231
213
232
// Debugging
214
233
debugCompile ' jp.wasabeef:takt:1.0.4'
215
- debugCompile (' io.palaima.debugdrawer:debugdrawer:0.7.0 ' ) {
234
+ debugCompile (" io.palaima.debugdrawer:debugdrawer:${ debugDrawerVersion } " ) {
216
235
exclude group : ' com.android.support' , module : ' support-annotations'
217
236
exclude group : ' com.android.support' , module : ' support-v4'
218
237
exclude group : ' com.android.support' , module : ' appcompat-v7'
219
238
}
220
- debugCompile (' io.palaima.debugdrawer:debugdrawer-commons:0.7.0 ' ) {
239
+ debugCompile (" io.palaima.debugdrawer:debugdrawer-commons:${ debugDrawerVersion } " ) {
221
240
exclude group : ' com.android.support' , module : ' support-annotations'
222
241
}
223
- debugCompile (' io.palaima.debugdrawer:debugdrawer-actions:0.7.0 ' ) {
242
+ debugCompile (" io.palaima.debugdrawer:debugdrawer-actions:${ debugDrawerVersion } " ) {
224
243
exclude group : ' com.android.support' , module : ' support-annotations'
225
244
}
226
- debugCompile (' io.palaima.debugdrawer:debugdrawer-fps:0.7.0 ' ) {
245
+ debugCompile (" io.palaima.debugdrawer:debugdrawer-fps:${ debugDrawerVersion } " ) {
227
246
exclude group : ' com.android.support' , module : ' support-annotations'
228
247
}
229
- debugCompile ' com.facebook.stetho:stetho:1.5.0'
230
- debugCompile ' com.facebook.stetho:stetho-okhttp3:1.5.0'
231
- debugCompile ' com.squareup.leakcanary:leakcanary-android:1.5.1'
232
- testCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
233
- debugCompile ' com.letv.sarrsdesktop:BlockCanaryExJRT:0.9.5.2'
234
- testCompile ' com.letv.sarrsdesktop:BlockCanaryExJRTNoOp:0.9.5.2'
248
+ debugCompile " com.facebook.stetho:stetho:${ stethoVersion} "
249
+ debugCompile " com.facebook.stetho:stetho-okhttp3:${ stethoVersion} "
250
+ debugCompile " com.squareup.leakcanary:leakcanary-android:${ leakCanaryVersion} "
251
+ testCompile " com.squareup.leakcanary:leakcanary-android-no-op:${ leakCanaryVersion} "
235
252
236
253
// Tests
237
254
testCompile ' junit:junit:4.12'
238
- testCompile ' org.mockito:mockito-core:1.10.19 '
255
+ testCompile ' org.mockito:mockito-core:2.7.22 '
239
256
testCompile ' org.robolectric:robolectric:3.3.2'
240
257
androidTestCompile (' com.android.support.test:runner:0.5' ) {
241
258
exclude group : ' com.android.support' , module : ' support-annotations'
242
259
}
243
- androidTestCompile (' com.android.support.test.espresso:espresso-core:2.2.2 ' ) {
260
+ androidTestCompile (" com.android.support.test.espresso:espresso-core:${ espressoVersion } " ) {
244
261
exclude group : ' com.android.support' , module : ' support-annotations'
245
262
}
246
- androidTestCompile (' com.android.support.test.espresso:espresso-contrib:2.2.2 ' ) {
263
+ androidTestCompile (" com.android.support.test.espresso:espresso-contrib:${ espressoVersion } " ) {
247
264
exclude group : ' com.android.support' , module : ' support-annotations'
248
265
exclude group : ' com.android.support' , module : ' support-v4'
249
266
exclude group : ' com.android.support' , module : ' appcompat-v7'
250
267
exclude group : ' com.android.support' , module : ' design'
251
268
exclude group : ' com.android.support' , module : ' recyclerview-v7'
252
269
}
253
- androidTestCompile (' com.android.support.test.espresso:espresso-intents:2.2.2 ' ) {
270
+ androidTestCompile (" com.android.support.test.espresso:espresso-intents:${ espressoVersion } " ) {
254
271
exclude group : ' com.android.support' , module : ' support-annotations'
255
272
}
256
273
@@ -370,7 +387,7 @@ task (codacyDepsize) << {
370
387
371
388
task (codacyLocs) << {
372
389
configurations. codacy. each {
373
- String jarName = it
390
+ String jarName = it
374
391
println jarName
375
392
}
376
393
}
0 commit comments