From fd9b834399a8f4d5e4baa24c9dd2b8e629ff6a4c Mon Sep 17 00:00:00 2001 From: Colin White Date: Thu, 14 Nov 2024 22:27:38 -0800 Subject: [PATCH] Prepare version 3.0.3. --- CHANGELOG.md | 7 +++++++ README-ja.md | 4 ++-- README-ko.md | 4 ++-- README-ru.md | 4 ++-- README-sv.md | 4 ++-- README-tr.md | 4 ++-- README-zh.md | 4 ++-- README.md | 4 ++-- .../src/androidMain/baseline-prof.txt | 2 +- coil-compose/README.md | 2 +- coil-core/src/androidMain/baseline-prof.txt | 19 ++++++++----------- coil-gif/README.md | 2 +- coil-network-core/README.md | 6 +++--- coil-svg/README.md | 2 +- coil-test/README.md | 2 +- coil-video/README.md | 2 +- docs/getting_started.md | 8 ++++---- docs/upgrading_to_coil3.md | 2 +- gradle.properties | 2 +- 19 files changed, 44 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index abcde24512..f78d92956c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.0.3] - November 14, 2024 + +- Fix setting `ImageRequest.scale` based on an `ImageView`'s `ScaleType`. +- Fix edge case where `DiskCache` would not track removal of an entry after deleting its files. +- Pass throwable to `Logger` when logging errors. +- Don't replace `kotlin-stdlib-jdk7` and `kotlin-stdlib-jdk8` with `kotlin-stdlib`. + ## [3.0.2] - November 9, 2024 - Fix crash when invoking `OkHttpNetworkFetcherFactory` with a custom `CacheStrategy` on Android. diff --git a/README-ja.md b/README-ja.md index 7d0fbfd2ec..4d61d952a9 100644 --- a/README-ja.md +++ b/README-ja.md @@ -14,8 +14,8 @@ Coil は、**Co**routine **I**mage **L**oader の頭字語です。 Compose ライブラリと [ネットワーク ライブラリ](https://coil-kt.github.io/coil/network/) をインポートします: ```kotlin -implementation("io.coil-kt.coil3:coil-compose:3.0.2") -implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.2") +implementation("io.coil-kt.coil3:coil-compose:3.0.3") +implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3") ``` 画像を読み込むには、`AsyncImage` を使用しますcomposable: diff --git a/README-ko.md b/README-ko.md index 9a2ac6c9e3..9cf7e6f032 100644 --- a/README-ko.md +++ b/README-ko.md @@ -14,8 +14,8 @@ Compose 라이브러리와 [네트워킹 라이브러리](https://coil-kt.github.io/coil/network/ 가져오기: ```kotlin -구현("io.coil-kt.coil3:coil-compose:3.0.2") -구현("io.coil-kt.coil3:coil-network-okhttp:3.0.2") +구현("io.coil-kt.coil3:coil-compose:3.0.3") +구현("io.coil-kt.coil3:coil-network-okhttp:3.0.3") ``` 이미지를 로드하려면 `AsyncImage`를 사용하세요. 구성 가능: diff --git a/README-ru.md b/README-ru.md index e02ab4ae9e..742d630a98 100644 --- a/README-ru.md +++ b/README-ru.md @@ -14,8 +14,8 @@ Coil — это аббревиатура от: **Co**routine **I**mage **L**load Импортируйте библиотеку Compose и [сетевую библиотеку](https://coil-kt.github.io/coil/network/): ```kotlin -implementation("io.coil-kt.coil3:coil-compose:3.0.2") -implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.2") +implementation("io.coil-kt.coil3:coil-compose:3.0.3") +implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3") ``` Чтобы загрузите изображение, используйте `AsyncImage` composable: diff --git a/README-sv.md b/README-sv.md index 07e29c90f7..af4dc5c78d 100644 --- a/README-sv.md +++ b/README-sv.md @@ -14,8 +14,8 @@ Spole är en akronym för: **Co**rutin **I**bild **L**loader. Importera Compose-biblioteket och ett [nätverksbibliotek](https://coil-kt.github.io/coil/network/): ```kotlin -implementering("io.coil-kt.coil3:coil-compose:3.0.2") -implementering("io.coil-kt.coil3:coil-network-okhttp:3.0.2") +implementering("io.coil-kt.coil3:coil-compose:3.0.3") +implementering("io.coil-kt.coil3:coil-network-okhttp:3.0.3") ``` För att ladda en bild, använd "AsyncImage" komponerbar: diff --git a/README-tr.md b/README-tr.md index 9b5f9d4abe..158aa192c7 100644 --- a/README-tr.md +++ b/README-tr.md @@ -14,8 +14,8 @@ Coil, **Co**routine **I**mage **L**oader'ın kısaltmasıdır. Compose kütüphanesini ve bir [ağ kütüphanesini](https://coil-kt.github.io/coil/network/) içe aktarın: ```kotlin -implementation("io.coil-kt.coil3:coil-compose:3.0.2") -implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.2") +implementation("io.coil-kt.coil3:coil-compose:3.0.3") +implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3") ``` Bir görüntüyü yüklemek için, `AsyncImage` bileşenini kullanın: diff --git a/README-zh.md b/README-zh.md index b41c6dc698..127034463a 100644 --- a/README-zh.md +++ b/README-zh.md @@ -14,8 +14,8 @@ Coil 是 Co**routine **I**mage **L**oader 的缩写。 导入 Compose 库和 [网络库](https://coil-kt.github.io/coil/network/): ```kotlin -implementation("io.coil-kt.coil3:coil-compose:3.0.2") -implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.2") +implementation("io.coil-kt.coil3:coil-compose:3.0.3") +implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3") ``` 要加载图像,请使用 `AsyncImage`可组合: diff --git a/README.md b/README.md index 8424e20ea8..b41e72f1e0 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ Translations: [日本語](README-ja.md), [한국어](README-ko.md), [Русск Import the Compose library and a [networking library](https://coil-kt.github.io/coil/network/): ```kotlin -implementation("io.coil-kt.coil3:coil-compose:3.0.2") -implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.2") +implementation("io.coil-kt.coil3:coil-compose:3.0.3") +implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3") ``` To load an image, use the `AsyncImage` composable: diff --git a/coil-compose-core/src/androidMain/baseline-prof.txt b/coil-compose-core/src/androidMain/baseline-prof.txt index afa117048a..357706a1e8 100644 --- a/coil-compose-core/src/androidMain/baseline-prof.txt +++ b/coil-compose-core/src/androidMain/baseline-prof.txt @@ -213,7 +213,7 @@ HSPLcoil3/compose/internal/UtilsKt;->onStateOf(Lkotlin/jvm/functions/Function1;L HSPLcoil3/compose/internal/UtilsKt;->requestOf(Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Lcoil3/request/ImageRequest; HSPLcoil3/compose/internal/UtilsKt;->requestOfWithSizeResolver(Ljava/lang/Object;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/runtime/Composer;I)Lcoil3/request/ImageRequest; HSPLcoil3/compose/internal/UtilsKt;->toDimension(I)Lcoil3/size/Dimension; -HPLcoil3/compose/internal/UtilsKt;->toIntSize-uvyYCjk(J)J +HSPLcoil3/compose/internal/UtilsKt;->toIntSize-uvyYCjk(J)J HSPLcoil3/compose/internal/UtilsKt;->toScale(Landroidx/compose/ui/layout/ContentScale;)Lcoil3/size/Scale; HSPLcoil3/compose/internal/UtilsKt;->toSize-BRTryo0(J)Lcoil3/size/Size; HSPLcoil3/compose/internal/UtilsKt;->transformOf$lambda$3(Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Lcoil3/compose/AsyncImagePainter$State;)Lcoil3/compose/AsyncImagePainter$State; diff --git a/coil-compose/README.md b/coil-compose/README.md index e97d37d32c..f1649af596 100644 --- a/coil-compose/README.md +++ b/coil-compose/README.md @@ -3,7 +3,7 @@ To add support for [Compose UI](https://www.jetbrains.com/compose-multiplatform/), import the extension library: ```kotlin -implementation("io.coil-kt.coil3:coil-compose:3.0.2") +implementation("io.coil-kt.coil3:coil-compose:3.0.3") ``` Then use the `AsyncImage` composable to load and display an image: diff --git a/coil-core/src/androidMain/baseline-prof.txt b/coil-core/src/androidMain/baseline-prof.txt index db5a9bd292..c0abf56ccf 100644 --- a/coil-core/src/androidMain/baseline-prof.txt +++ b/coil-core/src/androidMain/baseline-prof.txt @@ -153,7 +153,7 @@ Lcoil3/RealImageLoader$execute$3; HSPLcoil3/RealImageLoader$execute$3;->(Lcoil3/RealImageLoader;Lkotlin/coroutines/Continuation;)V HSPLcoil3/RealImageLoader$execute$3;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object; Lcoil3/RealImageLoader$execute$result$1; -HSPLcoil3/RealImageLoader$execute$result$1;->(Lcoil3/request/ImageRequest;Lcoil3/RealImageLoader;Lcoil3/size/Size;Lcoil3/size/SizeResolver;Lcoil3/EventListener;Lcoil3/Image;Lkotlin/coroutines/Continuation;)V +HSPLcoil3/RealImageLoader$execute$result$1;->(Lcoil3/request/ImageRequest;Lcoil3/RealImageLoader;Lcoil3/size/Size;Lcoil3/EventListener;Lcoil3/Image;Lkotlin/coroutines/Continuation;)V HSPLcoil3/RealImageLoader$execute$result$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation; HSPLcoil3/RealImageLoader$execute$result$1;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; HSPLcoil3/RealImageLoader$execute$result$1;->invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -443,14 +443,13 @@ HSPLcoil3/intercept/EngineInterceptorKt$transform$1;->(Lkotlin/coroutines/ Lcoil3/intercept/Interceptor; Lcoil3/intercept/Interceptor$Chain; Lcoil3/intercept/RealInterceptorChain; -HSPLcoil3/intercept/RealInterceptorChain;->(Lcoil3/request/ImageRequest;Ljava/util/List;ILcoil3/request/ImageRequest;Lcoil3/size/Size;Lcoil3/size/SizeResolver;Lcoil3/EventListener;Z)V +HSPLcoil3/intercept/RealInterceptorChain;->(Lcoil3/request/ImageRequest;Ljava/util/List;ILcoil3/request/ImageRequest;Lcoil3/size/Size;Lcoil3/EventListener;Z)V HSPLcoil3/intercept/RealInterceptorChain;->checkRequest(Lcoil3/request/ImageRequest;Lcoil3/intercept/Interceptor;)V HSPLcoil3/intercept/RealInterceptorChain;->copy$default(Lcoil3/intercept/RealInterceptorChain;ILcoil3/request/ImageRequest;Lcoil3/size/Size;ILjava/lang/Object;)Lcoil3/intercept/RealInterceptorChain; HSPLcoil3/intercept/RealInterceptorChain;->copy(ILcoil3/request/ImageRequest;Lcoil3/size/Size;)Lcoil3/intercept/RealInterceptorChain; HSPLcoil3/intercept/RealInterceptorChain;->getEventListener()Lcoil3/EventListener; HSPLcoil3/intercept/RealInterceptorChain;->getRequest()Lcoil3/request/ImageRequest; HSPLcoil3/intercept/RealInterceptorChain;->getSize()Lcoil3/size/Size; -HSPLcoil3/intercept/RealInterceptorChain;->getSizeResolver()Lcoil3/size/SizeResolver; HSPLcoil3/intercept/RealInterceptorChain;->isPlaceholderCached()Z HSPLcoil3/intercept/RealInterceptorChain;->proceed(Lkotlin/coroutines/Continuation;)Ljava/lang/Object; Lcoil3/intercept/RealInterceptorChain$proceed$1; @@ -540,13 +539,11 @@ HSPLcoil3/request/AndroidRequestService;->(Lcoil3/ImageLoader;Lcoil3/util/ HSPLcoil3/request/AndroidRequestService;->isBitmapConfigValidMainThread(Lcoil3/request/ImageRequest;Lcoil3/size/Size;)Z HSPLcoil3/request/AndroidRequestService;->isBitmapConfigValidWorkerThread(Lcoil3/request/Options;)Z HSPLcoil3/request/AndroidRequestService;->isConfigValidForHardware(Lcoil3/request/ImageRequest;Landroid/graphics/Bitmap$Config;)Z -HSPLcoil3/request/AndroidRequestService;->options(Lcoil3/request/ImageRequest;Lcoil3/size/SizeResolver;Lcoil3/size/Size;)Lcoil3/request/Options; +HSPLcoil3/request/AndroidRequestService;->options(Lcoil3/request/ImageRequest;Lcoil3/size/Size;)Lcoil3/request/Options; HSPLcoil3/request/AndroidRequestService;->requestDelegate(Lcoil3/request/ImageRequest;Lkotlinx/coroutines/Job;Z)Lcoil3/request/RequestDelegate; HSPLcoil3/request/AndroidRequestService;->resolveExtras(Lcoil3/request/ImageRequest;Lcoil3/size/Size;)Lcoil3/Extras; -HSPLcoil3/request/AndroidRequestService;->resolvePrecision(Lcoil3/request/ImageRequest;Lcoil3/size/SizeResolver;)Lcoil3/size/Precision; -HSPLcoil3/request/AndroidRequestService;->resolveScale(Lcoil3/request/ImageRequest;Lcoil3/size/Size;)Lcoil3/size/Scale; -HSPLcoil3/request/AndroidRequestService;->sizeResolver(Lcoil3/request/ImageRequest;)Lcoil3/size/SizeResolver; -HSPLcoil3/request/AndroidRequestService;->updateOptionsOnWorkerThread(Lcoil3/request/Options;)Lcoil3/request/Options; +HSPLcoil3/request/AndroidRequestService;->updateOptions(Lcoil3/request/Options;)Lcoil3/request/Options; +HSPLcoil3/request/AndroidRequestService;->updateRequest(Lcoil3/request/ImageRequest;)Lcoil3/request/ImageRequest; Lcoil3/request/BaseRequestDelegate; HSPLcoil3/request/BaseRequestDelegate;->(Lkotlinx/coroutines/Job;)V HSPLcoil3/request/BaseRequestDelegate;->assertActive()V @@ -583,6 +580,7 @@ HSPLcoil3/request/ImageRequest;->getMemoryCacheKeyExtras()Ljava/util/Map; HSPLcoil3/request/ImageRequest;->getMemoryCachePolicy()Lcoil3/request/CachePolicy; HSPLcoil3/request/ImageRequest;->getNetworkCachePolicy()Lcoil3/request/CachePolicy; HSPLcoil3/request/ImageRequest;->getPlaceholderMemoryCacheKey()Lcoil3/memory/MemoryCache$Key; +HSPLcoil3/request/ImageRequest;->getPrecision()Lcoil3/size/Precision; HSPLcoil3/request/ImageRequest;->getScale()Lcoil3/size/Scale; HSPLcoil3/request/ImageRequest;->getSizeResolver()Lcoil3/size/SizeResolver; HSPLcoil3/request/ImageRequest;->getTarget()Lcoil3/target/Target; @@ -604,8 +602,8 @@ Lcoil3/request/ImageRequest$Defaults; HSPLcoil3/request/ImageRequest$Defaults;->()V HSPLcoil3/request/ImageRequest$Defaults;->(Lokio/FileSystem;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/size/SizeResolver;Lcoil3/size/Scale;Lcoil3/size/Precision;Lcoil3/Extras;)V HSPLcoil3/request/ImageRequest$Defaults;->(Lokio/FileSystem;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/size/SizeResolver;Lcoil3/size/Scale;Lcoil3/size/Precision;Lcoil3/Extras;ILkotlin/jvm/internal/DefaultConstructorMarker;)V -HSPLcoil3/request/ImageRequest$Defaults;->copy$default(Lcoil3/request/ImageRequest$Defaults;Lokio/FileSystem;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/size/Precision;Lcoil3/Extras;ILjava/lang/Object;)Lcoil3/request/ImageRequest$Defaults; -HSPLcoil3/request/ImageRequest$Defaults;->copy(Lokio/FileSystem;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/size/Precision;Lcoil3/Extras;)Lcoil3/request/ImageRequest$Defaults; +HSPLcoil3/request/ImageRequest$Defaults;->copy$default(Lcoil3/request/ImageRequest$Defaults;Lokio/FileSystem;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/size/SizeResolver;Lcoil3/size/Scale;Lcoil3/size/Precision;Lcoil3/Extras;ILjava/lang/Object;)Lcoil3/request/ImageRequest$Defaults; +HSPLcoil3/request/ImageRequest$Defaults;->copy(Lokio/FileSystem;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/size/SizeResolver;Lcoil3/size/Scale;Lcoil3/size/Precision;Lcoil3/Extras;)Lcoil3/request/ImageRequest$Defaults; HSPLcoil3/request/ImageRequest$Defaults;->getDecoderCoroutineContext()Lkotlin/coroutines/CoroutineContext; HSPLcoil3/request/ImageRequest$Defaults;->getDiskCachePolicy()Lcoil3/request/CachePolicy; HSPLcoil3/request/ImageRequest$Defaults;->getExtras()Lcoil3/Extras; @@ -838,7 +836,6 @@ HSPLcoil3/util/UtilsKt;->closeQuietly(Ljava/io/Closeable;)V HSPLcoil3/util/UtilsKt;->closeQuietly(Ljava/lang/AutoCloseable;)V HSPLcoil3/util/UtilsKt;->getEMPTY_IMAGE_FACTORY()Lkotlin/jvm/functions/Function1; HSPLcoil3/util/UtilsKt;->getEventListener(Lcoil3/intercept/Interceptor$Chain;)Lcoil3/EventListener; -HSPLcoil3/util/UtilsKt;->getSizeResolver(Lcoil3/intercept/Interceptor$Chain;)Lcoil3/size/SizeResolver; HSPLcoil3/util/UtilsKt;->isFileUri(Lcoil3/Uri;)Z HSPLcoil3/util/UtilsKt;->isMinOrMax(I)Z HSPLcoil3/util/UtilsKt;->isPlaceholderCached(Lcoil3/intercept/Interceptor$Chain;)Z diff --git a/coil-gif/README.md b/coil-gif/README.md index 769ff738dd..22f83dc513 100644 --- a/coil-gif/README.md +++ b/coil-gif/README.md @@ -7,7 +7,7 @@ Unlike Glide, GIFs are not supported by default. However, Coil has an extension To add GIF support, import the extension library: ```kotlin -implementation("io.coil-kt.coil3:coil-gif:3.0.2") +implementation("io.coil-kt.coil3:coil-gif:3.0.3") ``` And that's it! The `ImageLoader` will automatically detect any GIFs using their file headers and decode them correctly. diff --git a/coil-network-core/README.md b/coil-network-core/README.md index f0276dbe43..459c7fbf36 100644 --- a/coil-network-core/README.md +++ b/coil-network-core/README.md @@ -5,9 +5,9 @@ By default, Coil 3.x does not include support for loading images from the networ To add support for fetching images from the network import **only one of the following**: ```kotlin -implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.2") // Only available on Android/JVM. -implementation("io.coil-kt.coil3:coil-network-ktor2:3.0.2") -implementation("io.coil-kt.coil3:coil-network-ktor3:3.0.2") +implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3") // Only available on Android/JVM. +implementation("io.coil-kt.coil3:coil-network-ktor2:3.0.3") +implementation("io.coil-kt.coil3:coil-network-ktor3:3.0.3") ``` If you use OkHttp, that's it. Once imported, network URLs like `https://example.com/image.jpg` will automatically be supported. If you use Ktor, you need to add supported engines for each platform (see below). diff --git a/coil-svg/README.md b/coil-svg/README.md index 431a42b83e..13b965abd8 100644 --- a/coil-svg/README.md +++ b/coil-svg/README.md @@ -3,7 +3,7 @@ To add SVG support, import the extension library: ```kotlin -implementation("io.coil-kt.coil3:coil-svg:3.0.2") +implementation("io.coil-kt.coil3:coil-svg:3.0.3") ``` And that's it! The `ImageLoader` will automatically detect and decode any SVGs. Coil detects SVGs by looking for the `