Update dependency io.coil-kt:coil-compose to v2 #26
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:
1.4.0
->2.7.0
Release Notes
coil-kt/coil (io.coil-kt:coil-compose)
v2.7.0
Compare Source
ImageLoader.execute
,AsyncImage
,SubcomposeAsyncImage
, andrememberAsyncImagePainter
. (#2205)v2.6.0
Compare Source
rememberAsyncImagePainter
,AsyncImage
, andSubcomposeAsyncImage
restartable and skippable. This improves performance by avoiding recomposition unless one of the composable's arguments changes.modelEqualityDelegate
argument torememberAsyncImagePainter
,AsyncImage
, andSubcomposeAsyncImage
to control whether themodel
will trigger a recomposition.ContentPainterModifier
to implementModifier.Node
.rememberAsyncImagePainter
,AsyncImage
, andSubcomposeAsyncImage
ifImageRequest.listener
orImageRequest.target
change.AsyncImagePainter
.androidx.collection
to 1.4.0.androidx.lifecycle
to 2.7.0.v2.5.0
Compare Source
MediaDataSourceFetcher.Factory
to support decodingMediaDataSource
implementations incoil-video
. (#1795)SHIFT6m
device to the hardware bitmap blocklist. (#1812)304 Not Modified
when cached headers include non-ASCII characters. (#1839)FakeImageEngine
not updating the interceptor chain's request. (#1905)accompanist-drawablepainter
to 0.32.0.androidx.annotation
to 1.7.0.androidx.compose.foundation
to 1.5.4.androidx.core
to 1.12.0.androidx.exifinterface:exifinterface
to 1.3.6.androidx.lifecycle
to 2.6.2.com.squareup.okhttp3
to 4.12.0.com.squareup.okio
to 3.6.0.v2.4.0
Compare Source
DiskCache
get
/edit
toopenSnapshot
/openEditor
.ColorDrawable
toColorPainter
inAsyncImagePainter
.AsyncImage
overloads with@NonRestartableComposable
.Context.cacheDir
lazily inImageSource
.coil-bom
.ARGB_8888
if hardware bitmaps are disabled.accompanist-drawablepainter
to 0.30.1.androidx.compose.foundation
to 1.4.3.androidx.profileinstaller:profileinstaller
to 1.3.1.com.squareup.okhttp3
to 4.11.0.v2.3.0
Compare Source
coil-test
artifact, which includesFakeImageLoaderEngine
. This class is useful for hardcoding image loader responses to ensure consistent and synchronous (from the main thread) responses in tests. See here for more info.coil-base
(child module ofcoil
) andcoil-compose-base
(child module ofcoil-compose
).file://
URIs with encoded data. #1601DiskCache
now properly computes its maximum size if passed a directory that does not exist. #1620Coil.reset
public API. #1506accompanist-drawablepainter
to 0.30.0.androidx.annotation
to 1.6.0.androidx.appcompat:appcompat-resources
to 1.6.1.androidx.compose.foundation
to 1.4.0.androidx.core
to 1.9.0.androidx.exifinterface:exifinterface
to 1.3.6.androidx.lifecycle
to 2.6.1.okio
to 3.3.0.v2.2.2
Compare Source
VideoFrameDecoder
on API 30+ to avoid banding. #1487#
inFileUriMapper
. #1466androidx.annotation
to 1.5.0.v2.2.1
Compare Source
RoundedCornersTransformation
now properly scales theinput
bitmap.kotlin-parcelize
plugin.androidx.appcompat:appcompat-resources
to 1.4.2 to work around #1423.v2.2.0
Compare Source
ImageRequest.videoFramePercent
tocoil-video
to support specifying the video frame as a percent of the video's duration.ExifOrientationPolicy
to configure howBitmapFactoryDecoder
treats EXIF orientation data.RoundedCornersTransformation
if passed a size with an undefined dimension.accompanist-drawablepainter
to 0.25.1.androidx.annotation
to 1.4.0.androidx.appcompat:appcompat-resources
to 1.5.0.androidx.core
to 1.8.0.v2.1.0
Compare Source
ByteArray
s. (#1202)ImageRequest.Builder.css
. (#1210)GenericViewTarget
's private methods to protected. (#1273)v2.0.0
Compare Source
Coil 2.0.0 is a major iteration of the library and includes breaking changes. Check out the upgrade guide for how to upgrade.
AsyncImage
incoil-compose
. Check out the documentation for more info.DiskCache
API.ImageLoader.Builder.diskCache
andDiskCache.Builder
to configure the disk cache.Cache
with Coil 2.0. See here for more info.Cache-Control
and other cache headers are still supported - exceptVary
headers, as the cache only checks that the URLs match. Additionally, only responses with a response code in the range [200..300) are cached.ImageRequest
's defaultScale
is nowScale.FIT
.ImageRequest.scale
consistent with other classes that have a defaultScale
.ImageViewTarget
still have theirScale
auto-detected.Mapper
,Fetcher
, andDecoder
have been refactored to be more flexible.Fetcher.key
has been replaced with a newKeyer
interface.Keyer
creates the cache key from the input data.ImageSource
, which allowsDecoder
s to readFile
s directly using Okio's file system API.rememberImagePainter
andImagePainter
have been renamed torememberAsyncImagePainter
andAsyncImagePainter
respectively.LocalImageLoader
. Check out the deprecation message for more info.NullPointerException
immediately. Kotlin's compile-time null safety guards against this happening.Size
is now composed of twoDimension
values for its width and height.Dimension
can either be a positive pixel value orDimension.Undefined
. See here for more info.BitmapPool
andPoolableViewTarget
have been removed from the library.VideoFrameFileFetcher
andVideoFrameUriFetcher
have been removed from the library. UseVideoFrameDecoder
instead, which supports all data sources.BlurTransformation
andGrayscaleTransformation
are removed from the library. If you use them, you can copy their code into your project.Transition.transition
to be a non-suspending function as it's no longer needed to suspend the transition until it completes.bitmapFactoryMaxParallelism
, which restricts the maximum number of in-progressBitmapFactory
operations. This value is 4 by default, which improves UI performance.interceptorDispatcher
,fetcherDispatcher
,decoderDispatcher
, andtransformationDispatcher
.GenericViewTarget
, which handles commonViewTarget
logic.ByteBuffer
to the default supported data types.Disposable
has been refactored and exposes the underlyingImageRequest
's job.MemoryCache
API.ImageRequest.error
is now set on theTarget
ifImageRequest.fallback
is null.Transformation.key
is replaced withTransformation.cacheKey
.Changes from
2.0.0-rc03
:Dimension.Original
to beDimension.Undefined
.Size.ORIGINAL
if ContentScale is None.ImageView.load
builder argument first instead of last.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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.