Skip to content

Commit c6a72e0

Browse files
Merge pull request #275 from MihaiCristianCondrea/codex/fix-noclassdeffounderror-for-supplier
Enable core library desugaring for Glide compatibility
2 parents 8c87c90 + 87c13ed commit c6a72e0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ android {
6565
compileOptions {
6666
sourceCompatibility JavaVersion.VERSION_21
6767
targetCompatibility JavaVersion.VERSION_21
68+
coreLibraryDesugaringEnabled true
6869
}
6970

7071
buildFeatures {
@@ -82,6 +83,8 @@ android {
8283

8384
dependencies {
8485

86+
coreLibraryDesugaring libs.desugar.jdk.libs
87+
8588
// Google Play services and related UI components
8689
implementation libs.bundles.google.core
8790

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ hilt = "2.57.2"
3232
room = "2.8.3"
3333
glide = "5.0.5"
3434
retrofit = "3.0.0"
35+
desugarJdkLibs = "2.1.2"
3536

3637
[libraries]
3738
# AndroidX & Material
@@ -81,6 +82,7 @@ review = { module = "com.google.android.play:review", version.ref = "review" }
8182
volley = { module = "com.android.volley:volley", version.ref = "volley" }
8283
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
8384
glide-compiler = { module = "com.github.bumptech.glide:compiler", version.ref = "glide" }
85+
desugar-jdk-libs = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desugarJdkLibs" }
8486

8587
# --- TESTING ---
8688
# Unit Tests (test folder)

0 commit comments

Comments
 (0)