Upgrade Coil to 3.x - #208
Open
dipenpradhan wants to merge 8 commits into
Open
Conversation
5 tasks
- Bump kotlin-gradle-plugin 1.9.22 -> 2.1.20 (root + buildSrc) - Adopt the new Compose Compiler Gradle plugin (org.jetbrains.kotlin.plugin.compose) in app and convention plugins - Drop composeCompiler version constant and composeOptions blocks - Replace removed -Xopt-in flag with -opt-in - Bump KSP to 2.1.20-1.0.31 to match Kotlin Fixes Gurupreet#182
ktfmt-gradle 0.12.0 fails with 'Generic error during file processing' once Kotlin 2.x is on the buildscript classpath. 0.22.0 supports Kotlin 2.x and also formats *.kts build scripts, hence the repo-wide reformat (no functional changes).
dipenpradhan
force-pushed
the
issue-191-coil3
branch
from
September 8, 2026 06:37
229d33d to
f5d9381
Compare
- AGP 8.2.2 -> 8.7.3 (compileSdk 35 supported from AGP 8.6) - Gradle wrapper 8.5 -> 8.9 (required by AGP 8.7.x) - PinLockView: removeLast() -> removeAt(lastIndex); at compileSdk 35 the call binds to java.util.List#removeLast (API 35) instead of the Kotlin stdlib extension, failing lint NewApi against minSdk 25 Fixes Gurupreet#185
- Replace compose/material3 version constants with composeBom - Strip explicit versions from BOM-managed artifacts - Import the BOM platform on every configuration that receives Compose artifacts (implementation, debugImplementation, androidTestImplementation, :data) - Migrate API removals that come with Compose 1.7 / Material3 1.3: SmallTopAppBar -> TopAppBar, rememberRipple -> material3 ripple - Update the outdated README Compose badge to the BOM version Fixes Gurupreet#186
All lifecycle artifacts (viewmodel-compose, viewmodel-ktx, livedata-ktx, runtime-ktx, viewmodel-savedstate) move together via the shared androidLifecycleGrouped version. Fixes Gurupreet#192
- navCompose 2.7.7 -> 2.8.9; add kotlinx-serialization-json 1.8.0 - Apply the Kotlin serialization plugin in gmail and tiktok demos - Gmail: string routes -> @serializable route objects - TikTok: TikTokScreen becomes a serializable sealed interface; the profile route carries a typed userId argument read via toRoute(), bottom bar selection uses NavDestination.hasRoute Fixes Gurupreet#193
- Replace com.google.android.exoplayer:exoplayer with androidx.media3:media3-exoplayer and media3-ui - Rewrite TikTokPlayer against the Media3 API (SimpleExoPlayer was removed; default media source factory handles asset URIs) - Removes the last Jetifier warning produced by ExoPlayer 2.x Fixes Gurupreet#183
- Move to the io.coil-kt.coil3 artifact group - Add coil-network-okhttp (network fetching is a separate artifact in Coil 3, self-registered via ServiceLoader) - Migrate call sites: rememberImagePainter(data=) -> rememberAsyncImagePainter(model=), coil.* -> coil3.* imports Fixes Gurupreet#191
dipenpradhan
force-pushed
the
issue-191-coil3
branch
from
September 8, 2026 08:47
f5d9381 to
6656a2e
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.
Summary
Upgrades Coil from 2.5.0 to 3.1.0, as proposed in #191.
io.coil-kt.coil3:coil-composeio.coil-kt.coil3:coil-network-okhttp— in Coil 3 the network fetcher is a separate artifact (it self-registers via ServiceLoader, so the demo screens that load from picsum/TMDB/CoinGecko keep working with noImageLoaderconfiguration)coil.*imports →coil3.*rememberImagePainter(data = …)(removed in Coil 3) →rememberAsyncImagePainter(model = …)AsyncImage/AsyncImagePainter/ExperimentalCoilApiimports moved to theircoil3packagesAffected demos: Movies, Crypto (incl. the Wear screen), TikTok discover grid, and the app's animated lists.
Closes #191
Verification
./gradlew ktfmtCheck assembleDebug testDebugUnitTestpasses locally (JDK 17, SDK 35)./gradlew buildon this PRMerge order
PR 8 of the stacked series. Depends on #195 → #196 → #197 → #204 → #205 → #206 → #207 — its diff includes their commits until they merge.
🤖 Generated with Claude Code
cc @Gurupreet for review