Open
Conversation
c654b39 to
09df2bf
Compare
96e2ce9 to
aa86a33
Compare
eb9595e to
caff25b
Compare
305fefa to
592c789
Compare
30f46b0 to
6e0d2ae
Compare
fa4f59b to
d9fb4f1
Compare
018bacb to
6a30d75
Compare
6a30d75 to
de8b138
Compare
2fdf272 to
1bd1eb8
Compare
ba1481e to
2b22514
Compare
929c2c9 to
b4752b8
Compare
4c79e17 to
1c1a7ae
Compare
11e37a5 to
2ca275e
Compare
6c4354d to
0286a8d
Compare
0286a8d to
6ac081b
Compare
80d6e36 to
e064da0
Compare
d4a4607 to
b15c905
Compare
55e2bc4 to
7d59f2f
Compare
610e940 to
6e4f442
Compare
|
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
3.0.0-alpha08→3.4.03.0.0-alpha08→3.4.0Release Notes
coil-kt/coil (io.coil-kt.coil3:coil-compose)
v3.4.0Compare Source
ConcurrentRequestStrategyto support combining in-flight network requests for the same key. (#2995, #3326)DeDupeConcurrentRequestStrategyenables this behavior and lets waiters wait for the results of an in-flight network request.diskCacheKey.OkHttpNetworkFetcherFactory,KtorNetworkFetcherFactory, andNetworkFetcher.Factorynow acceptconcurrentRequestStrategy.linuxX64andlinuxArm64) for non-Compose multiplatform artifacts. (#3054)ImageRequest.Builder.useExistingImageAsPlaceholderenables crossfading from the previous image when no placeholder is set.ImageRequest.Builder.preferEndFirstIntrinsicSizeletsCrossfadePainterprefer the end painter's intrinsic size.ImageLoader.Builder.repeatCount(Int)incoil-gifto set a global animated image repeat count. (#3143)coil-video. (#3107)coil-lintwithcoil-coreand add a lint check to catch accidentalkotlin.error()calls inImageRequest.Builderblocks. (#3304)BitmapFetcheravailable in common code. (#3286)applicationContextwhen creating the singletonImageLoaderon Android. (#3246)404) and stop caching non-cacheable responses (e.g.500). (#3137, #3139)maxBitmapSizeedge case to prevent oversized bitmap crashes on Android. (#3259)kotlinx-io-okioto 0.9.0.androidx.coreto 1.16.0.androidx.lifecycleto 2.9.4.androidx.exifinterfaceto 1.4.2.v3.3.0Compare Source
MemoryCache.maxSizeon Android while the app is backgrounded.ImageLoader.Builder.memoryCacheMaxSizePercentWhileInBackgroundis set, theImageLoader's memory cache will be limited to a percent of its max size while the app is backgrounded. This setting is currently disabled by default.AsyncImage,ImageView, etc.) it will still be present in the memory cache.Svg.Parserargument toSvgDecoder.densityargument toSvgDecoderto support providing a custom density multiplier.Uri.Builderto support copying and modifyingUris.ImageLoader.Builder.mainCoroutineContextto support overriding Coil'sDispatchers.main.immediateusage in tests.CrossfadePainter.intrinsicSizechanging when thestartimage is dereferenced at the end of the animation. This aligns with the behaviour ofCrossfadeDrawable.ImageLoaders.executeBlockingbeing inaccessible from Java.kotlinx.io's Okio interop module incoil-network-ktor3.kotlinx-datetimeto0.7.1.coil-network-cache-controlmodule. See here for more info.v3.2.0Compare Source
Changes since
3.1.0:coil-composeandcoil-compose-corenow require Java 11 bytecode due to Compose1.8.0requiring it. See here for how to enable it.AsyncImagePreviewHandler's functional constructor to returnAsyncImagePainter.State.Successinstead ofAsyncImagePainter.State.Loading.ConstraintsSizeResolver#size().PlatformContextwhen building with R8.FakeImageLoaderEnginenot settingTransition.Factory.NONEwhen the defaultFakeImageLoaderEngineresponse is returned.ColorImage.CacheControlCacheStrategy.CircleCropTransformationandRoundedCornersTransformationto share common code.BitmapFactoryinternally ifExifOrientationStrategyis notRESPECT_PERFORMANCE.accompanist-drawablepainterto 0.37.3.Changes since
3.2.0-rc02:BitmapFactoryinternally ifExifOrientationStrategyis notRESPECT_PERFORMANCE.accompanist-drawablepainterto 0.37.3.v3.1.0Compare Source
AsyncImageperformance.ColorImageand deprecateFakeImage.ColorImageis useful for returning a fake value in tests and previews. It solves the same use case asFakeImage, but is more easily accessible incoil-coreinstead ofcoil-test.coil-compose-core's dependency onDispatchers.Main.immedate.AsyncImagePainterwould not executeImageRequests synchronously in Paparazzi and Roborazzi screenshot tests.data:[<mediatype>][;base64],<data>AnimatedImageDecoder.ENCODED_LOOP_COUNTto support using the encoded repeat count in a GIF's metadata.ExtrastoNetworkRequestto support custom extensions.DiskCache.Builder.cleanupCoroutineContextand deprecateDiskCache.Builder.cleanupDispatcher.ImageLoader.Builder.imageDecoderEnabledto optionally disable usingandroid.graphics.ImageDecoderon API 29 and above.Keyerfor anImageRequest's data type.CrossfadePainterpublic.Transformations on all multiplatform targets.Expiresheader value inCacheControlCacheStrategy.AsyncImage/SubcomposeAsyncImage/rememberAsyncImagenot launching a newImageRequestif itsContentScalechanges to/fromNone.androidx.coreto 1.15.0.v3.0.4Compare Source
maxBitmapSize.FakeImagenot rendering on Android.Transformations change when used withAsyncImage/rememberAsyncImagePainter/SubcomposeAsyncImage.ScaleDrawableandCrossfadeDrawablenot respecting tint states.ImageDecoderto decode partial image sources. This matches the behavior inBitmapFactory.Bitmap.prepareToDraw()not being called after decoding.SvgDecodershould not returnisSampled = truefor non-rasterized images.Dispatchers.Unconfinedin Compose if an immediate main dispatcher is unavailable. This is only used in preview/test environments.2.3.13.v3.0.3Compare Source
ImageRequest.scalebased on anImageView'sScaleType.DiskCachewould not track removal of an entry after deleting its files.Loggerwhen logging errors.kotlin-stdlib-jdk7andkotlin-stdlib-jdk8withkotlin-stdlib.v3.0.2Compare Source
OkHttpNetworkFetcherFactorywith a customCacheStrategyon Android.CacheControlCacheStrategycomputing the age of a cache entry incorrectly.ImageRequest.bitmapConfigwould only be respected on >= API 28 if it wasARGB_8888orHARDWARE.v3.0.1Compare Source
Image.toBitmapwith a hardware bitmap-backedBitmapImage.AsyncImageModelEqualityDelegate.Defaultcomparing equality incorrectly for non-ImageRequestmodels.v3.0.0Compare Source
Coil 3.0.0 is the next major release of Coil with full support for Compose Multiplatform.
For the full list of improvements and important changes in 3.0.0, check out the upgrade guide.
Changes since
3.0.0-rc02:v3.0.0-rc02Compare Source
For the full list of improvements and important changes in 3.x, check out the upgrade guide. Changes since
3.0.0-rc01:BlackholeDecoder. This simplifies disk-cache only preloading.rememberfunctions forConstraintsSizeResolverandDrawScopeSizeResolver.EqualityDelegateas a parameter toAsyncImage. Instead, it should be set throughLocalAsyncImageModelEqualityDelegate.AsyncImagenot rendering when parent composable usesIntrinsicSize.AsyncImagefilling the available constraints whenAsyncImagePainterhas no child painter.rememberAsyncImagePainterrecomposing infinitely when its state is observed due toEqualityDelegatebeing ignored.File/Pathpaths with special characters.FileSystemimplementations withVideoFrameDecoder.3.0.0.androidx.annotationto1.9.0.v3.0.0-rc01Compare Source
For the full list of improvements and important changes in 3.x, check out the upgrade guide. Changes since
3.0.0-alpha10:addLastModifiedToFileCacheKeyby default and allow it to be set per request. The behaviour can be reenabled with the same flag.coil-network-cache-controlartifact, which implementsCache-Controlheader support.scaleToDensityproperty toSvgDecoder.Factory. This property ensure SVGs with intrinsic dimensions are multiplied by the devices density (only supported on Android).ExifOrientationPolicytoExifOrientationStrategy.MemoryCacheon get.ConstraintsSizeResolverpublic.setSingletonImageLoaderFactory.coil-network-ktor3pdfto list of mime types.v3.0.0-alpha10Compare Source
ImageLoader.Builder.networkObserverEnabledwith aConnectivityCheckerinterface forNetworkFetcher.ConnectivityChecker.ONLINEto the constructor forKtorNetworkFetcherFactory/OkHttpNetworkFetcherFactory.Res.getUri:maxBitmapSizeproperty toImageLoaderandImageRequest.Size.ORIGINALand causing an out of memory exception.ExifOrientationPolicyto be an interface to support custom policies.Urihandling of Windows file paths.@ExperimentalCoilApifrom theImageAPIs.v3.0.0-alpha09Compare Source
io.coil-kt.coil3:coil-network-ktorartifact toio.coil-kt.coil3:coil-network-ktor2which depends on Ktor 2.x. Additionally, introduceio.coil-kt.coil3:coil-network-ktor3which depends on Ktor 3.x.wasmJssupport is only available in Ktor 3.x.AsyncImagePainter.restart()to manually restart an image request.@ExperimentalCoilApifromNetworkClientand related classes.ImageRequestto avoid unnecessaryExtrasandMapallocations.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.