Skip to content

Commit

Permalink
[CHORE/#453] library 버전 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
kkk5474096 committed Jul 22, 2024
1 parent 6291b37 commit 4f73208
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
15 changes: 9 additions & 6 deletions app/src/main/java/com/el/yello/util/extension/ImageViewExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import com.el.yello.R

fun ImageView.loadUrl(url: String) {
if (url.endsWith(".svg")) {
val imageLoader = ImageLoader.Builder(this.context)
.componentRegistry { add(SvgDecoder(this@loadUrl.context)) }
.build()
val imageLoader = ImageLoader.Builder(context)
.components {
add(SvgDecoder.Factory())
}.build()

val request = ImageRequest.Builder(this.context)
.crossfade(true)
Expand All @@ -36,9 +37,11 @@ fun ImageView.loadUrlWithCircleCrop(url: String) {
return
}

val imageLoader = ImageLoader.Builder(this.context)
.componentRegistry { add(SvgDecoder(this@loadUrlWithCircleCrop.context)) }
.build()
val imageLoader = ImageLoader.Builder(context)
.components {
add(SvgDecoder.Factory())
}.build()


val request = ImageRequest.Builder(this.context)
.crossfade(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AndroidApplicationComposePlugin : Plugin<Project> {
}

composeOptions {
kotlinCompilerExtensionVersion = "1.4.6"
kotlinCompilerExtensionVersion = "1.5.11"
}
}
val libs = extensions.getVersionCatalog()
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
buildToolsVersion = "34.0.0"
## Kotlin
kotlinVersion = "1.8.20"
kotlinVersion = "1.9.23"
kotlinSerializationJsonVersion = "1.5.1"
coroutinesAndroidVersion = "1.7.1"
kotlinDateTimeVersion = "0.4.0"
Expand Down Expand Up @@ -43,7 +43,7 @@ composeHiltVersion= "1.2.0"
firebaseVersion = "30.4.0"

## Third-party
coilVersion = "1.2.0"
coilVersion = "2.6.0"
retrofitVersion = "2.11.0"
kotlinSerializationConverterVersion = "1.0.0"
okHttpVersion = "4.12.0"
Expand Down

0 comments on commit 4f73208

Please sign in to comment.