-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit migrates the project from Coil 2 to Coil 3, which includes several breaking changes. - Updates the `coil` dependency in `libs.versions.toml` from "2.7.0" to "3.1.0". - Updates `coil-compose`, `coil-video`, and `coil-gif` modules in `libs.versions.toml` to use Coil 3. - Updates imports from `coil.compose.*` to `coil3.compose.*`. - Updates imports from `coil.request.*` to `coil3.request.*`. - Updates imports from `coil.size.*` to `coil3.size.*`. - Updates imports from `coil.transform.*` to `coil3.transform.*`. - Updates imports from `coil.decode.VideoFrameDecoder` to `coil3.video.VideoFrameDecoder` - Updates `ImageRequest` to the new Coil 3 builder pattern. - Adds calls to `crossfade`, `placeholder`, `error`, and `lifecycle` to `ImageRequest` where needed. - Removes `apply` from `ImageRequest.Builder` as it's no longer supported. - Updates `AsyncImagePainter.State` to `AsyncImagePainter.State.value` in `GradientImage`. - Fixes multiple file deletions in `ViewVideosFragment` to use `try-catch` on each element to prevent stopping on errors. - Fixes video frame % to `coil3.video.videoFramePercent` - Removes the target and headers from `ImageRequest` as they are no longer available. - Fixes the vector drawables not rendering in the Android Studio preview. - Fixes a potential memory cache miss for requests whose size exceeds `maxBitmapSize`. - Fixes `FakeImage` not rendering on Android. - Fixes not launching a new image request when the request's `Transformation`s change when used with `AsyncImage`/`rememberAsyncImagePainter`/`SubcomposeAsyncImage`. - Fixes `ScaleDrawable` and `CrossfadeDrawable` not respecting tint states. - Allows `ImageDecoder` to decode partial image sources. This matches the behavior in `BitmapFactory`. - Fixes `Bitmap.prepareToDraw()` not being called after decoding. - `SvgDecoder` should not return `isSampled = true` for non-rasterized images. - Falls back to `Dispatchers.Unconfined` in Compose if an immediate main dispatcher is unavailable. This is only used in preview/test environments. - Fixes setting `ImageRequest.scale` based on an `ImageView`'s `ScaleType`. - Fixes edge case where `DiskCache` would not track removal of an entry after deleting its files. - Passes throwable to `Logger` when logging errors. - Doesn't replace `kotlin-stdlib-jdk7` and `kotlin-stdlib-jdk8` with `kotlin-stdlib`. - Fixes crash when invoking `OkHttpNetworkFetcherFactory` with a custom `CacheStrategy` on Android. - Fixes `CacheControlCacheStrategy` computing the age of a cache entry incorrectly. - Fixes case where `ImageRequest.bitmapConfig` would only be respected on >= API 28 if it was `ARGB_8888` or `HARDWARE`. - Fixes crash when calling `Image.toBitmap` with a hardware bitmap-backed `BitmapImage`. - Fixes `AsyncImageModelEqualityDelegate.Default` comparing equality incorrectly for non-`ImageRequest` models. - Removes remaining deprecated methods. - Adds `BlackholeDecoder`. This simplifies [disk-cache only preloading](https://coil-kt.github.io/coil/faq/#how-do-i-preload-an-image). - Adds `remember` functions for `ConstraintsSizeResolver` and `DrawScopeSizeResolver`. - Removes `EqualityDelegate` as a parameter to `AsyncImage`. Instead, it should be set through `LocalAsyncImageModelEqualityDelegate`. - Fixes `AsyncImage` not rendering when parent composable uses `IntrinsicSize`. - Fixes `AsyncImage` filling the available constraints when `AsyncImagePainter` has no child painter. - Fixes `rememberAsyncImagePainter` recomposing infinitely when its state is observed due to `EqualityDelegate` being ignored. - Fixes parsing `File`/`Path` paths with special characters. - Fixes using custom `FileSystem` implementations with `VideoFrameDecoder`. - Updates Ktor to `3.0.0`. - Updates `androidx.annotation` to `1.9.0`. - **BREAKING** Disables `addLastModifiedToFileCacheKey` by default and allow it to be set per request. The behaviour can be reenabled with the same flag. - **New** : Introduces a new `coil-network-cache-control` artifact, which implements [`Cache-Control` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control) support. - **New** : Adds `scaleToDensity` property to `SvgDecoder.Factory`. This property ensure SVGs with intrinsic dimensions are multiplied by the devices density (o
- Loading branch information
jacobrein
committed
Feb 5, 2025
1 parent
8db682a
commit ab8ab88
Showing
13 changed files
with
74 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters