@@ -11,19 +11,18 @@ apply from: 'quality.gradle'
11
11
12
12
def isRunningOnTravisAndIsNotPRBuild = System . getenv(" CI" ) == " true" && file(' ../play.p12' ). exists()
13
13
14
- if (isRunningOnTravisAndIsNotPRBuild) {
14
+ if (isRunningOnTravisAndIsNotPRBuild) {
15
15
apply plugin : ' com.github.triplet.play'
16
16
}
17
17
18
18
dependencies {
19
19
20
20
implementation project(' :wikimedia-data-client' )
21
21
// Utils
22
+ implementation ' com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
22
23
implementation ' in.yuvi:http.fluent:1.3'
23
24
implementation ' com.google.code.gson:gson:2.8.5'
24
- implementation (" com.squareup.okhttp3:okhttp:$OKHTTP_VERSION " ){
25
- force = true // API 19 support
26
- }
25
+ implementation ' com.squareup.okhttp3:okhttp:4.2.0'
27
26
implementation ' com.squareup.okio:okio:2.2.2'
28
27
implementation ' io.reactivex.rxjava2:rxandroid:2.1.0'
29
28
implementation ' io.reactivex.rxjava2:rxjava:2.2.3'
@@ -45,16 +44,7 @@ dependencies {
45
44
implementation ' com.dinuscxj:circleprogressbar:1.1.1'
46
45
implementation ' com.karumi:dexter:5.0.0'
47
46
implementation " com.jakewharton:butterknife:$BUTTERKNIFE_VERSION "
48
- implementation ' androidx.lifecycle:lifecycle-extensions:2.2.0'
49
-
50
47
kapt " com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION "
51
- implementation " com.hannesdorfmann:adapterdelegates4-kotlin-dsl-layoutcontainer:$ADAPTER_DELEGATES_VERSION "
52
- implementation " com.hannesdorfmann:adapterdelegates4-pagination:$ADAPTER_DELEGATES_VERSION "
53
- implementation " androidx.paging:paging-runtime-ktx:$PAGING_VERSION "
54
- testImplementation " androidx.paging:paging-common-ktx:$PAGING_VERSION "
55
- implementation " androidx.paging:paging-rxjava2-ktx:$PAGING_VERSION "
56
- implementation " androidx.recyclerview:recyclerview:1.2.0-alpha02"
57
- implementation " com.squareup.okhttp3:okhttp-ws:$OKHTTP_VERSION "
58
48
59
49
// Logging
60
50
implementation ' ch.acra:acra-dialog:5.3.0'
@@ -63,7 +53,7 @@ dependencies {
63
53
api(' com.github.tony19:logback-android-classic:1.1.1-6' ) {
64
54
exclude group : ' com.google.android' , module : ' android'
65
55
}
66
- implementation " com.squareup.okhttp3:logging-interceptor:$O KHTTP_VERSION "
56
+ implementation " com.squareup.okhttp3:logging-interceptor:4.2.0 "
67
57
68
58
// Dependency injector
69
59
implementation " com.google.dagger:dagger-android-support:$DAGGER_VERSION "
@@ -75,21 +65,19 @@ dependencies {
75
65
76
66
// Mocking
77
67
testImplementation ' com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0'
78
- testImplementation ' org.mockito:mockito-inline:2.13.0 '
68
+ testImplementation ' org.mockito:mockito-inline:2.8.47 '
79
69
testImplementation ' org.mockito:mockito-core:2.23.0'
80
70
testImplementation " org.powermock:powermock-module-junit4:2.0.0-beta.5"
81
71
testImplementation " org.powermock:powermock-api-mockito2:2.0.0-beta.5"
82
72
83
73
// Unit testing
84
- testImplementation ' junit:junit:4.13 '
74
+ testImplementation ' junit:junit:4.12 '
85
75
testImplementation ' org.robolectric:robolectric:4.3'
86
76
testImplementation ' androidx.test:core:1.2.0'
87
- testImplementation " com.squareup.okhttp3:mockwebserver:$O KHTTP_VERSION "
77
+ testImplementation ' com.squareup.okhttp3:mockwebserver:3.12.1 '
88
78
testImplementation " org.powermock:powermock-module-junit4:2.0.0-beta.5"
89
79
testImplementation " org.powermock:powermock-api-mockito2:2.0.0-beta.5"
90
80
testImplementation ' org.mockito:mockito-core:2.23.0'
91
- testImplementation " com.jraska.livedata:testing-ktx:1.1.2"
92
- testImplementation " androidx.arch.core:core-testing:2.1.0"
93
81
94
82
// Android testing
95
83
androidTestImplementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$KOTLIN_VERSION "
@@ -99,7 +87,7 @@ dependencies {
99
87
androidTestImplementation ' androidx.test:runner:1.2.0'
100
88
androidTestImplementation ' androidx.test:rules:1.2.0'
101
89
androidTestImplementation ' androidx.annotation:annotation:1.1.0'
102
- androidTestImplementation ' com.squareup.okhttp3:mockwebserver:4.8.0 '
90
+ androidTestImplementation ' com.squareup.okhttp3:mockwebserver:3.12.1 '
103
91
androidTestUtil ' androidx.test:orchestrator:1.2.0'
104
92
105
93
// Debugging
@@ -114,48 +102,43 @@ dependencies {
114
102
implementation ' androidx.constraintlayout:constraintlayout:1.1.3'
115
103
implementation " androidx.exifinterface:exifinterface:1.0.0"
116
104
implementation " androidx.core:core-ktx:$CORE_KTX_VERSION "
117
- implementation " androidx.multidex:multidex:2.0.1"
118
105
119
106
// swipe_layout
120
107
implementation ' com.daimajia.swipelayout:library:1.2.0@aar'
121
108
122
109
// Room
123
110
implementation " androidx.room:room-runtime:$ROOM_VERSION "
124
- implementation " androidx.room:room-ktx:$ROOM_VERSION "
111
+ kapt " androidx.room:room-compiler:$ROOM_VERSION " // For Kotlin use kapt instead of annotationProcessor
112
+ implementation ' com.squareup.retrofit2:retrofit:2.7.1'
125
113
implementation " androidx.room:room-rxjava2:$ROOM_VERSION "
126
- kapt " androidx.room:room-compiler:$ROOM_VERSION "
127
- // For Kotlin use kapt instead of annotationProcessor
128
- implementation ' com.squareup.retrofit2:retrofit:2.8.1'
129
114
testImplementation " androidx.arch.core:core-testing:2.1.0"
130
115
131
116
// Pref
132
117
// Java language implementation
133
118
implementation " androidx.preference:preference:$PREFERENCE_VERSION "
134
119
// Kotlin
135
120
implementation " androidx.preference:preference-ktx:$PREFERENCE_VERSION "
136
-
137
- implementation " androidx.multidex:multidex:$MULTIDEX_VERSION "
138
121
}
139
122
140
123
android {
141
124
compileSdkVersion 28
125
+ buildToolsVersion " 28.0.3"
142
126
143
127
defaultConfig {
144
128
// applicationId 'fr.free.nrw.commons'
145
- versionCode 775
146
- versionName ' 2.13.1 '
129
+ versionCode 561
130
+ versionName ' 2.12.3 '
147
131
setProperty(" archivesBaseName" , " app-commons-v$versionName -" + getBranchName())
148
132
149
133
minSdkVersion 19
150
134
targetSdkVersion 28
151
135
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
152
136
testInstrumentationRunnerArguments clearPackageData : ' true'
153
137
154
- multiDexEnabled true
155
-
156
138
testOptions {
157
139
execution ' ANDROIDX_TEST_ORCHESTRATOR'
158
140
}
141
+
159
142
vectorDrawables. useSupportLibrary = true
160
143
}
161
144
@@ -182,7 +165,7 @@ android {
182
165
test. resources. srcDirs + = ' src/main/resoures'
183
166
}
184
167
185
- signingConfigs {
168
+ signingConfigs {
186
169
release
187
170
}
188
171
@@ -191,7 +174,7 @@ android {
191
174
minifyEnabled true
192
175
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.txt'
193
176
testProguardFile ' test-proguard-rules.txt'
194
- if (isRunningOnTravisAndIsNotPRBuild) {
177
+ if (isRunningOnTravisAndIsNotPRBuild) {
195
178
signingConfig signingConfigs. release
196
179
}
197
180
}
@@ -214,18 +197,17 @@ android {
214
197
215
198
configurations. all {
216
199
resolutionStrategy. force ' androidx.annotation:annotation:1.0.2'
217
- exclude module : ' okhttp-ws'
218
200
}
201
+
219
202
flavorDimensions ' tier'
220
203
productFlavors {
221
204
prod {
222
205
223
- applicationId ' fr.free.nrw.commons'
206
+ applicationId ' fr.free.nrw.commons'
224
207
225
208
buildConfigField " String" , " WIKIMEDIA_API_POTD" , " \" https://commons.wikimedia.org/w/api.php?action=featuredfeed&feed=potd&feedformat=rss&language=en\" "
226
209
buildConfigField " String" , " WIKIMEDIA_API_HOST" , " \" https://commons.wikimedia.org/w/api.php\" "
227
210
buildConfigField " String" , " WIKIDATA_API_HOST" , " \" https://www.wikidata.org/w/api.php\" "
228
- buildConfigField " String" , " WIKIDATA_URL" , " \" https://www.wikidata.org\" "
229
211
buildConfigField " String" , " WIKIMEDIA_FORGE_API_HOST" , " \" https://tools.wmflabs.org/\" "
230
212
buildConfigField " String" , " WIKIMEDIA_CAMPAIGNS_URL" , " \" https://raw.githubusercontent.com/commons-app/campaigns/master/campaigns.json\" "
231
213
buildConfigField " String" , " IMAGE_URL_BASE" , " \" https://upload.wikimedia.org/wikipedia/commons\" "
@@ -247,7 +229,6 @@ android {
247
229
buildConfigField " String" , " COMMIT_SHA" , " \" " + getBuildVersion(). toString() + " \" "
248
230
buildConfigField " String" , " TEST_USERNAME" , " \" " + System . getenv(" test_user_name" ) + " \" "
249
231
buildConfigField " String" , " TEST_PASSWORD" , " \" " + System . getenv(" test_user_password" ) + " \" "
250
- buildConfigField " String" , " DEPICTS_PROPERTY" , " \" P180\" "
251
232
252
233
dimension ' tier'
253
234
}
@@ -259,7 +240,6 @@ android {
259
240
buildConfigField " String" , " WIKIMEDIA_API_POTD" , " \" https://commons.wikimedia.org/w/api.php?action=featuredfeed&feed=potd&feedformat=rss&language=en\" "
260
241
buildConfigField " String" , " WIKIMEDIA_API_HOST" , " \" https://commons.wikimedia.beta.wmflabs.org/w/api.php\" "
261
242
buildConfigField " String" , " WIKIDATA_API_HOST" , " \" https://www.wikidata.org/w/api.php\" "
262
- buildConfigField " String" , " WIKIDATA_URL" , " \" https://www.wikidata.org\" "
263
243
buildConfigField " String" , " WIKIMEDIA_FORGE_API_HOST" , " \" https://tools.wmflabs.org/\" "
264
244
buildConfigField " String" , " WIKIMEDIA_CAMPAIGNS_URL" , " \" https://raw.githubusercontent.com/commons-app/campaigns/master/campaigns_beta_active.json\" "
265
245
buildConfigField " String" , " IMAGE_URL_BASE" , " \" https://upload.beta.wmflabs.org/wikipedia/commons\" "
@@ -281,7 +261,6 @@ android {
281
261
buildConfigField " String" , " COMMIT_SHA" , " \" " + getBuildVersion(). toString() + " \" "
282
262
buildConfigField " String" , " TEST_USERNAME" , " \" " + System . getenv(" test_user_name" ) + " \" "
283
263
buildConfigField " String" , " TEST_PASSWORD" , " \" " + System . getenv(" test_user_password" ) + " \" "
284
- buildConfigField " String" , " DEPICTS_PROPERTY" , " \" P245962\" "
285
264
286
265
dimension ' tier'
287
266
}
@@ -301,7 +280,7 @@ android {
301
280
buildToolsVersion buildToolsVersion
302
281
}
303
282
304
- if (isRunningOnTravisAndIsNotPRBuild) {
283
+ if (isRunningOnTravisAndIsNotPRBuild) {
305
284
play {
306
285
track = " alpha"
307
286
userFraction = 1
0 commit comments