To revert back to waiting for onDraw, set DrawScopeSizeResolver as your ImageRequest.sizeResolver.
BREAKING: Refactor the multiplatform Image API. Notably, asCoilImage has been renamed to asImage.
BREAKING: AsyncImagePainter.state has been changed to StateFlow<AsyncImagePainter.State>. Use collectAsState to observe its value. This improves performance.
BREAKING: AsyncImagePainter.imageLoader and AsyncImagePainter.request have been combined into StateFlow<AsyncImagePainter.Inputs>. Use collectAsState 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.
New: Introduce AsyncImagePreviewHandler to support controlling AsyncImagePainter'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 the ImageRequest by default instead of defaulting to displaying ImageRequest.placeholder. Requests that use the network or files are expected to fail in the preview environment, however Android resources should work.
New: Support extracting video image by frame index. (#2183)
New: Support passing CoroutineContext to any CoroutineDispatcher 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 to Options. (#2223)
Fix crossfade(false) not working on non-Android targets.
To revert back to waiting for onDraw, set DrawScopeSizeResolver as your ImageRequest.sizeResolver.
BREAKING: Refactor the multiplatform Image API. Notably, asCoilImage has been renamed to asImage.
BREAKING: AsyncImagePainter.state has been changed to StateFlow<AsyncImagePainter.State>. Use collectAsState to observe its value. This improves performance.
BREAKING: AsyncImagePainter.imageLoader and AsyncImagePainter.request have been combined into StateFlow<AsyncImagePainter.Inputs>. Use collectAsState 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.
New: Introduce AsyncImagePreviewHandler to support controlling AsyncImagePainter'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 the ImageRequest by default instead of defaulting to displaying ImageRequest.placeholder. Requests that use the network or files are expected to fail in the preview environment, however Android resources should work.
New: Support extracting video image by frame index. (#2183)
New: Support passing CoroutineContext to any CoroutineDispatcher 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 to Options. (#2223)
Fix crossfade(false) not working on non-Android targets.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps
coil3
from 3.0.0-alpha06 to 3.0.0-alpha07. Updatesio.coil-kt.coil3:coil-compose
from 3.0.0-alpha06 to 3.0.0-alpha07Release notes
Sourced from io.coil-kt.coil3:coil-compose's releases.
Changelog
Sourced from io.coil-kt.coil3:coil-compose's changelog.
Commits
f94ac62
Update baseline profiles.c52c82b
Prepare 3.0.0-alpha07.f7c2622
Fix Android Studio previews not rendering. (#2338)e0c93d9
Add release notes for 3.0.0-alpha07.33ea5bc
Attempt to execute image request in Android Studio previews. (#2329)6ada1f8
fix(deps): update dependency org.jetbrains.kotlinx:kotlinx-serialization-json...4777d0e
fix(deps): update dependency androidx.test:rules to v1.6.0 (#2335)014cb99
fix(deps): update dependency androidx.test:core-ktx to v1.6.0 (#2333)e21b281
fix(deps): update dependency androidx.test:runner to v1.6.0 (#2334)cbb9d68
fix(deps): update dependency androidx.test.ext:junit-ktx to v1.2.0 (#2332)Updates
io.coil-kt.coil3:coil-network-ktor
from 3.0.0-alpha06 to 3.0.0-alpha07Release notes
Sourced from io.coil-kt.coil3:coil-network-ktor's releases.
Changelog
Sourced from io.coil-kt.coil3:coil-network-ktor's changelog.
Commits
f94ac62
Update baseline profiles.c52c82b
Prepare 3.0.0-alpha07.f7c2622
Fix Android Studio previews not rendering. (#2338)e0c93d9
Add release notes for 3.0.0-alpha07.33ea5bc
Attempt to execute image request in Android Studio previews. (#2329)6ada1f8
fix(deps): update dependency org.jetbrains.kotlinx:kotlinx-serialization-json...4777d0e
fix(deps): update dependency androidx.test:rules to v1.6.0 (#2335)014cb99
fix(deps): update dependency androidx.test:core-ktx to v1.6.0 (#2333)e21b281
fix(deps): update dependency androidx.test:runner to v1.6.0 (#2334)cbb9d68
fix(deps): update dependency androidx.test.ext:junit-ktx to v1.2.0 (#2332)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show