Skip to content

Commit

Permalink
Merge pull request #237 from qdsfdhvh/master
Browse files Browse the repository at this point in the history
Version to 1.6.3
  • Loading branch information
qdsfdhvh authored Jul 31, 2023
2 parents f32e82c + 7a5c6f0 commit 573d5d7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
+ api("io.github.qdsfdhvh:image-loader:1.6.2")
+ api("io.github.qdsfdhvh:image-loader:1.6.3")
// optional - Moko Resources Decoder
+ api("io.github.qdsfdhvh:image-loader-extension-moko-resources:1.6.2")
+ api("io.github.qdsfdhvh:image-loader-extension-moko-resources:1.6.3")
// optional - Blur Interceptor (only support bitmap)
+ api("io.github.qdsfdhvh:image-loader-extension-blur:1.6.2")
+ api("io.github.qdsfdhvh:image-loader-extension-blur:1.6.3")
}
}
val jvmMain by getting {
dependencies {
// optional - ImageIO Decoder
+ api("io.github.qdsfdhvh:image-loader-extension-imageio:1.6.2")
+ api("io.github.qdsfdhvh:image-loader-extension-imageio:1.6.3")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object Versions {
private const val monir = "6"

// backwards compatible bug fixes
private const val path = "2"
private const val path = "3"
const val version = "$major.$monir.$path"
}

Expand Down
8 changes: 4 additions & 4 deletions docs/docs/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
+ api("io.github.qdsfdhvh:image-loader:1.6.2")
+ api("io.github.qdsfdhvh:image-loader:1.6.3")
// optional - Moko Resources Decoder
+ api("io.github.qdsfdhvh:image-loader-extension-moko-resources:1.6.2")
+ api("io.github.qdsfdhvh:image-loader-extension-moko-resources:1.6.3")
// optional - Blur Interceptor (only support bitmap)
+ api("io.github.qdsfdhvh:image-loader-extension-blur:1.6.2")
+ api("io.github.qdsfdhvh:image-loader-extension-blur:1.6.3")
}
}
val jvmMain by getting {
dependencies {
// optional - ImageIO Decoder
+ api("io.github.qdsfdhvh:image-loader-extension-imageio:1.6.2")
+ api("io.github.qdsfdhvh:image-loader-extension-imageio:1.6.3")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fun rememberImageAction(
url: String,
imageLoader: ImageLoader = LocalImageLoader.current,
): State<ImageAction> {
val request = remember { ImageRequest(url) }
val request = remember(url) { ImageRequest(url) }
return rememberImageAction(request, imageLoader)
}

Expand All @@ -24,7 +24,7 @@ fun rememberImageAction(
resId: Int,
imageLoader: ImageLoader = LocalImageLoader.current,
): State<ImageAction> {
val request = remember { ImageRequest(resId) }
val request = remember(resId) { ImageRequest(resId) }
return rememberImageAction(request, imageLoader)
}

Expand All @@ -36,7 +36,7 @@ fun rememberImagePainter(
placeholderPainter: (@Composable () -> Painter)? = null,
errorPainter: (@Composable () -> Painter)? = null,
): Painter {
val request = remember { ImageRequest(url) }
val request = remember(url) { ImageRequest(url) }
return rememberImagePainter(
request = request,
imageLoader = imageLoader,
Expand All @@ -54,7 +54,7 @@ fun rememberImagePainter(
placeholderPainter: (@Composable () -> Painter)? = null,
errorPainter: (@Composable () -> Painter)? = null,
): Painter {
val request = remember { ImageRequest(resId) }
val request = remember(resId) { ImageRequest(resId) }
return rememberImagePainter(
request = request,
imageLoader = imageLoader,
Expand Down

0 comments on commit 573d5d7

Please sign in to comment.