-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrates to Coil 3 #2028
base: main
Are you sure you want to change the base?
Migrates to Coil 3 #2028
Conversation
* Replaces all images in the [content] with the provided [color]. | ||
*/ | ||
@InternalRevenueCatAPI | ||
@ExperimentalCoilApi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I chose to propagate @ExperimentalCoilApi
so we think twice if we accidentally try to use this in production code, as that would needlessly open us up to binary incompatibility issues if this experimental API changes.
1 build increased size
TestPurchasesUIAndroidCompatibility 1.0 (1)
|
Item | Install Size Change | Download Size Change |
---|---|---|
🗑 okhttp3 | ⬇️ -363.3 kB | ⬇️ -128.3 kB |
🗑 coil | ⬇️ -246.3 kB | ⬇️ -86.2 kB |
🗑 androidx.compose.foundation.text2 | ⬇️ -224.8 kB | ⬇️ -75.0 kB |
🗑 okhttp3 | ⬇️ -41.5 kB | ⬇️ -41.6 kB |
🗑 okio.internal._BufferKt | ⬇️ -24.9 kB | ⬇️ -10.4 kB |
🛸 Powered by Emerge Tools
Comment trigger: Size diff threshold of 100.00kB exceeded
📸 Snapshot Test15 modified, 115 unchanged
🛸 Powered by Emerge Tools |
Caution
This is a draft because it bumps Kotlin to 2.0.21.
Description
This PR updates Coil to 3.0.4. The maven coordinates have changed wrt Coil 2, which means there should be no binary incompatibility issues. For reference, the official migration docs are here.
PreviewHandler
mechanism. Check outImagePreviews.kt
.Motivation
The main motivation is Coil's new
PreviewHandler
mechanism. This gives us great control over the images used in Compose previews, without changing production code. This comes in handy when creating previews for the Paywalls V2 image component, as it should handle various sizes and fit modes correctly. This automatically protects us against regressions in combination with Emerge Snapshots.