From b3b53f82fa5c06861ebd534abaec36243f1aae9c Mon Sep 17 00:00:00 2001 From: Colin White Date: Wed, 28 Feb 2024 16:33:11 -0800 Subject: [PATCH] Prepare 3.0.0-alpha05. --- CHANGELOG.md | 17 ++++++++++++++++- docs/upgrading_to_coil3.md | 2 +- gradle.properties | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7e1df4796..1e33cdd64e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,25 @@ # Changelog +## [3.0.0-alpha05] - February 28, 2024 + +- **New**: Support the `wasmJs` target. +- Create `DrawablePainter` and `DrawableImage` to support drawing `Image`s that aren't backed by a `Bitmap` on non-Android platforms. + - The `Image` APIs are experimental and likely to change between alpha releases. +- Update `ContentPainterModifier` to implement `Modifier.Node`. +- Fix: Lazily register component callbacks and the network observer on a background thread. This fixes slow initialization that would typically occur on the main thread. +- Fix: Fix `ImageLoader.Builder.placeholder/error/fallback` not being used by `ImageRequest`. +- Update Compose to 1.6.0. +- Update Coroutines to 1.8.0. +- Update Okio to 3.8.0. +- Update Skiko to 0.7.94. +- [For the full list of important changes in 3.x, check out the upgrade guide.](https://coil-kt.github.io/coil/upgrading_to_coil3/) + ## [2.6.0] - February 23, 2024 - Make `rememberAsyncImagePainter`, `AsyncImage`, and `SubcomposeAsyncImage` [restartable and skippable](https://developer.android.com/jetpack/compose/performance/stability#functions). This improves performance by avoiding recomposition unless one of the composable's arguments changes. - Add an optional `modelEqualityDelegate` argument to `rememberAsyncImagePainter`, `AsyncImage`, and `SubcomposeAsyncImage` to control whether the `model` will trigger a recomposition. - Update `ContentPainterModifier` to implement `Modifier.Node`. -- Fix: Lazily register component callbacks and the network observer on a background thread. This fixes slow initialization that would often occur on the main thread. +- Fix: Lazily register component callbacks and the network observer on a background thread. This fixes slow initialization that would typically occur on the main thread. - Fix: Avoid relaunching a new image request in `rememberAsyncImagePainter`, `AsyncImage`, and `SubcomposeAsyncImage` if `ImageRequest.listener` or `ImageRequest.target` change. - Fix: Don't observe the image request twice in `AsyncImagePainter`. - Update Kotlin to 1.9.22. @@ -20,6 +34,7 @@ - Expose `Call.Factory` instead of `OkHttpClient` in `OkHttpNetworkFetcherFactory`. - Convert `NetworkResponseBody` to wrap a `ByteString`. - Downgrade Compose to 1.5.12. +- [For the full list of important changes, check out the upgrade guide.](https://coil-kt.github.io/coil/upgrading_to_coil3/) ## [3.0.0-alpha03] - January 20, 2024 diff --git a/docs/upgrading_to_coil3.md b/docs/upgrading_to_coil3.md index 9c4d6c724f..5c2c613d72 100644 --- a/docs/upgrading_to_coil3.md +++ b/docs/upgrading_to_coil3.md @@ -15,7 +15,7 @@ The `coil-base` and `coil-compose-base` artifacts were renamed to `coil-core` an ## Multiplatform -Coil 3 is now a Kotlin Multiplatform library that supports Android, JVM, iOS, macOS, and Javascript. Once [Ktor](https://ktor.io/) releases WASM support on Maven Central, Coil will merge WASM support into the main artifact. +Coil 3 is now a Kotlin Multiplatform library that supports Android, JVM, iOS, macOS, Javascript, and WASM. On Android, Coil uses the standard graphics classes to render images. On non-Android platforms, Coil uses [Skiko](https://github.com/JetBrains/skiko) to render images. Skiko is a set of Kotlin bindings that wrap the [Skia](https://github.com/google/skia) graphics engine developed by Google. diff --git a/gradle.properties b/gradle.properties index 04b26d43e3..45d2192699 100644 --- a/gradle.properties +++ b/gradle.properties @@ -30,7 +30,7 @@ SONATYPE_HOST=DEFAULT RELEASE_SIGNING_ENABLED=true POM_GROUP_ID=io.coil-kt.coil3 -POM_VERSION=3.0.0-SNAPSHOT +POM_VERSION=3.0.0-alpha05 POM_DESCRIPTION=An image loading library for Android and Compose Multiplatform. POM_INCEPTION_YEAR=2019