@@ -37,7 +37,7 @@ android {
3737 applicationId ' org.wikipedia'
3838 minSdk 21
3939 targetSdk 34
40- versionCode 50467
40+ versionCode 50485
4141 testApplicationId ' org.wikipedia.test'
4242 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
4343 testInstrumentationRunnerArguments clearPackageData : ' true'
@@ -65,13 +65,16 @@ android {
6565 buildConfig true
6666 }
6767
68+ androidResources {
69+ generateLocaleConfig = true
70+ }
71+
6872 sourceSets {
6973
70- prod { java. srcDirs + = ' src/extra/java' }
71- beta { java. srcDirs + = ' src/extra/java' }
72- alpha { java. srcDirs + = ' src/extra/java' }
73- dev { java. srcDirs + = ' src/extra/java' }
74- custom { java. srcDirs + = ' src/extra/java' }
74+ [ prod, beta, alpha, dev, custom ]. forEach {
75+ it. java. srcDirs + = ' src/extra/java'
76+ it. res. srcDirs + = ' src/extra/res'
77+ }
7578
7679 androidTest {
7780 assets. srcDirs + = files(" $projectDir /schemas" . toString())
@@ -169,17 +172,18 @@ dependencies {
169172 // Debug with ./gradlew -q app:dependencies --configuration compile
170173
171174 String okHttpVersion = ' 4.12.0'
172- String retrofitVersion = ' 2.9 .0'
175+ String retrofitVersion = ' 2.11 .0'
173176 String glideVersion = ' 4.16.0'
174177 String mockitoVersion = ' 5.2.0'
175- String leakCanaryVersion = ' 2.13'
176- String kotlinCoroutinesVersion = ' 1.7.3'
177- String firebaseMessagingVersion = ' 23.4.0'
178- String mlKitVersion = ' 17.0.4'
178+ String leakCanaryVersion = ' 2.14'
179+ String kotlinCoroutinesVersion = ' 1.8.0'
180+ String firebaseMessagingVersion = ' 23.4.1'
181+ String mlKitVersion = ' 17.0.5'
182+ String googlePayVersion = ' 19.3.0'
179183 String roomVersion = " 2.6.1"
180184 String espressoVersion = ' 3.5.1'
181- String serialization_version = ' 1.6.2 '
182- String metricsVersion = ' 2.1 '
185+ String serialization_version = ' 1.6.3 '
186+ String metricsVersion = ' 2.4 '
183187
184188 coreLibraryDesugaring ' com.android.tools:desugar_jdk_libs:2.0.4'
185189
@@ -190,8 +194,8 @@ dependencies {
190194
191195 implementation " com.google.android.material:material:1.11.0"
192196 implementation ' androidx.appcompat:appcompat:1.6.1'
193- implementation " androidx.core:core-ktx:1.12 .0"
194- implementation " androidx.browser:browser:1.7 .0"
197+ implementation " androidx.core:core-ktx:1.13 .0"
198+ implementation " androidx.browser:browser:1.8 .0"
195199 implementation ' androidx.constraintlayout:constraintlayout:2.1.4'
196200 implementation " androidx.fragment:fragment-ktx:1.6.2"
197201 implementation " androidx.paging:paging-runtime-ktx:3.2.1"
@@ -213,6 +217,7 @@ dependencies {
213217 implementation " com.github.bumptech.glide:okhttp3-integration:$glideVersion "
214218 ksp " com.github.bumptech.glide:ksp:$glideVersion "
215219
220+ implementation " com.squareup.okhttp3:okhttp-tls:$okHttpVersion "
216221 implementation " com.squareup.okhttp3:logging-interceptor:$okHttpVersion "
217222 implementation " com.squareup.retrofit2:retrofit:$retrofitVersion "
218223 implementation " com.squareup.retrofit2:adapter-rxjava3:$retrofitVersion "
@@ -224,6 +229,9 @@ dependencies {
224229 implementation ' com.github.skydoves:balloon:1.6.4'
225230 implementation " com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0"
226231
232+ implementation ' org.maplibre.gl:android-sdk:10.3.0'
233+ implementation ' org.maplibre.gl:android-plugin-annotation-v9:2.0.2'
234+
227235 implementation(" androidx.room:room-runtime:$roomVersion " )
228236 annotationProcessor " androidx.room:room-compiler:$roomVersion "
229237 ksp " androidx.room:room-compiler:$roomVersion "
@@ -244,12 +252,19 @@ dependencies {
244252 devImplementation " com.google.firebase:firebase-messaging-ktx:$firebaseMessagingVersion "
245253 customImplementation " com.google.firebase:firebase-messaging-ktx:$firebaseMessagingVersion "
246254
255+ // For integrating with Google Pay for donations
256+ prodImplementation " com.google.android.gms:play-services-wallet:$googlePayVersion "
257+ betaImplementation " com.google.android.gms:play-services-wallet:$googlePayVersion "
258+ alphaImplementation " com.google.android.gms:play-services-wallet:$googlePayVersion "
259+ devImplementation " com.google.android.gms:play-services-wallet:$googlePayVersion "
260+ customImplementation " com.google.android.gms:play-services-wallet:$googlePayVersion "
261+
247262 debugImplementation " com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion "
248263 implementation " com.squareup.leakcanary:plumber-android:$leakCanaryVersion "
249264
250265 testImplementation ' junit:junit:4.13.2'
251266 testImplementation " org.mockito:mockito-inline:$mockitoVersion "
252- testImplementation ' org.robolectric:robolectric:4.11 .1'
267+ testImplementation ' org.robolectric:robolectric:4.12 .1'
253268 testImplementation " com.squareup.okhttp3:okhttp:$okHttpVersion "
254269 testImplementation " com.squareup.okhttp3:mockwebserver:$okHttpVersion "
255270 testImplementation ' org.hamcrest:hamcrest:2.2'
@@ -260,7 +275,7 @@ dependencies {
260275 androidTestImplementation " androidx.test.espresso:espresso-intents:$espressoVersion "
261276 androidTestImplementation " androidx.test.espresso:espresso-web:$espressoVersion "
262277 androidTestImplementation ' androidx.test.ext:junit:1.1.5'
263- androidTestImplementation ' androidx.test.uiautomator:uiautomator:2.2 .0'
278+ androidTestImplementation ' androidx.test.uiautomator:uiautomator:2.3 .0'
264279 androidTestImplementation " androidx.room:room-testing:$roomVersion "
265280 androidTestUtil ' androidx.test:orchestrator:1.4.2'
266281}
0 commit comments