Skip to content

Commit 2d51a7c

Browse files
rohit9625nicolas-raoulRitikaPahwa4444
authored
chore: upgrade native libraries for 16KB page size compatibility (#6445)
* chore: bump maplibre-native for 16KB page size compatibility Also, bump AGP * chore: bump freso for 16KB page size compatibility and fix build issues --------- Co-authored-by: Nicolas Raoul <[email protected]> Co-authored-by: Ritika Pahwa <[email protected]>
1 parent 0ade070 commit 2d51a7c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ dependencies {
226226
implementation(libs.rxbinding)
227227
implementation(libs.rxbinding.appcompat)
228228
implementation(libs.facebook.fresco)
229+
implementation(libs.facebook.fresco.middleware)
229230
implementation(libs.apache.commons.lang3)
230231

231232
// UI

app/src/main/java/fr/free/nrw/commons/contributions/SetWallpaperWorker.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ class SetWallpaperWorker(context: Context, params: WorkerParameters) :
4545
}
4646
}
4747

48-
override fun onFailureImpl(dataSource: DataSource<CloseableReference<CloseableImage>>?) {
48+
override fun onFailureImpl(dataSource: DataSource<CloseableReference<CloseableImage?>?>) {
4949
Timber.d("Error getting bitmap from image url %s", imageUrl.toString())
5050
showNotification(context, "Setting Wallpaper Failed", "Failed to download image.")
51-
dataSource?.close()
51+
dataSource.close()
5252
}
5353
}, CallerThreadExecutor.getInstance())
5454

gradle/libs.versions.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[versions]
2-
agp = "8.12.0"
2+
agp = "8.13.0"
33
acra = "5.8.4"
44
activityCompose = "1.9.3"
55
adapterdelegates = "4.3.0"
66
androidmediautil = "v1.0-1"
7-
androidSdkVersion = "10.0.1"
7+
androidSdkVersion = "11.13.5"
88
androidPluginScalebar = "1.0.0"
99
androidxJunitVersion = "1.1.5"
1010
annotation = "1.3.0"
@@ -27,7 +27,7 @@ dexterVersion = "5.0.0"
2727
espresso = "3.6.1"
2828
exifinterface = "1.3.7"
2929
fragmentTesting = "1.6.2"
30-
frescoVersion = "1.13.0"
30+
frescoVersion = "3.6.0"
3131
commonsLang3Version = "3.8.1"
3232
glide = "4.12.0"
3333
gson = "2.8.5"
@@ -126,6 +126,7 @@ dagger-compiler = { module = "com.google.dagger:dagger-compiler", version.ref =
126126

127127
# Image loading
128128
facebook-fresco = { module = "com.facebook.fresco:fresco", version.ref = "frescoVersion" }
129+
facebook-fresco-middleware = { module = "com.facebook.fresco:middleware", version.ref = "frescoVersion" }
129130
glide-compiler = { module = "com.github.bumptech.glide:compiler", version.ref = "glide" }
130131
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
131132
kotlinx-coroutines-rx2 = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-rx2", version.ref = "kotlinxCoroutinesRx2" }

0 commit comments

Comments
 (0)