cpu-info
cpu-info copied to clipboard
Update dependency io.coil-kt.coil3:coil-compose to v3.0.0-alpha07
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
io.coil-kt.coil3:coil-compose | 3.0.0-alpha06 -> 3.0.0-alpha07 |
Release Notes
coil-kt/coil (io.coil-kt.coil3:coil-compose)
v3.0.0-alpha07
-
BREAKING:
AsyncImagePainter
no longer waits foronDraw
by default and instead usesSize.ORIGINAL
.- This fixes compatibility issues with Roborazzi/Paparazzi and overall improves test reliability.
- To revert back to waiting for
onDraw
, setDrawScopeSizeResolver
as yourImageRequest.sizeResolver
.
-
BREAKING: Refactor the multiplatform
Image
API. Notably,asCoilImage
has been renamed toasImage
. -
BREAKING:
AsyncImagePainter.state
has been changed toStateFlow<AsyncImagePainter.State>
. UsecollectAsState
to observe its value. This improves performance. -
BREAKING:
AsyncImagePainter.imageLoader
andAsyncImagePainter.request
have been combined intoStateFlow<AsyncImagePainter.Inputs>
. UsecollectAsState
to observe its value. This improves performance. -
BREAKING: Remove support for
android.resource://example.package.name/drawable/image
URIs as it prevents resource shrinking optimizations.- If you still needs its functionality you can manually include
ResourceUriMapper
in your component registry.
- If you still needs its functionality you can manually include
-
New: Introduce
AsyncImagePreviewHandler
to support controllingAsyncImagePainter
's preview rendering behavior.- Use
LocalAsyncImagePreviewHandler
to override the preview behavior. - As part of this change and other
coil-compose
improvements,AsyncImagePainter
now attempts to execute execute theImageRequest
by default instead of defaulting to displayingImageRequest.placeholder
. Requests that use the network or files are expected to fail in the preview environment, however Android resources should work.
- Use
- New: Support extracting video image by frame index. (#2183)
-
New: Support passing
CoroutineContext
to anyCoroutineDispatcher
methods. (#2241). - New: Support the weak reference memory cache on JS and WASM JS.
- Don't dispatch to
Dispatchers.Main.immediate
in Compose. As a side-effect,kotlinx-coroutines-swing
no longer needs to be imported on JVM. - Don't call
async
and create a disposable in Compose to improve performance (thanks @mlykotom!). (#2205) - Fix passing global
ImageLoader
extras toOptions
. (#2223) - Fix
crossfade(false)
not working on non-Android targets. - Fix VP8X feature flags byte offset (#2199).
- Convert
SvgDecoder
on non-Android targets to render to a bitmap instead of render the image at draw-time. This improves performance.- This behavior can be controlled using
SvgDecoder(renderToBitmap)
.
- This behavior can be controlled using
- Move
ScaleDrawable
fromcoil-gif
tocoil-core
. - Update Kotlin to 2.0.0.
- Update Compose to 1.6.11.
- Update Okio to 3.9.0.
- Update Skiko to 0.8.4.
- For the full list of important changes in 3.x, check out the upgrade guide.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.