Skip to content

Adopt the Compose BOM (2024.12.01) — Compose 1.7.6 / Material3 1.3.1#204

Open
dipenpradhan wants to merge 5 commits into
Gurupreet:masterfrom
dipenpradhan:issue-186-compose-bom
Open

Adopt the Compose BOM (2024.12.01) — Compose 1.7.6 / Material3 1.3.1#204
dipenpradhan wants to merge 5 commits into
Gurupreet:masterfrom
dipenpradhan:issue-186-compose-bom

Conversation

@dipenpradhan

Copy link
Copy Markdown

Summary

Adopts the Compose Bill of Materials for unified Compose version management, as proposed in #186. This moves Compose from 1.6.1 / Material3 1.2.1 to BOM 2024.12.01 (Compose UI 1.7.6, Material3 1.3.1).

  • Versions.kt: replace compose and material3 constants with a single composeBom = "2024.12.01"
  • Dependencies.kt: add composeBom platform coordinate; strip explicit versions from all BOM-managed artifacts (ui, ui-tooling, material, material3, material3-window-size-class, material-icons-extended, runtime, runtime-livedata, ui-test-junit4, ui-test-manifest)
  • DependencyHandlerExtensions.kt: import platform(composeBom) on every configuration that receives BOM-managed artifacts (implementation, debugImplementation, androidTestImplementation, and the :data modules)
  • README: update the (very outdated, 1.0.1) Compose badge to the BOM version — checklist item from Enhancement: Bump compileSdk and targetSdk to API 35 (Android 15) #185

Material3 1.3.1 also unblocks the PullToRefreshBox demo (#187) later in this series.

Closes #186

Verification

  • ./gradlew assembleDebug testDebugUnitTest passes locally (JDK 17, SDK 35)
  • CI ./gradlew build on this PR

Merge order

PR 4 of the stacked series. Depends on #195, #196, #197 — its diff includes their commits until they merge.

🤖 Generated with Claude Code

cc @Gurupreet for review

dipen and others added 5 commits June 6, 2026 15:57
- Replace kotlin-kapt with com.google.devtools.ksp in the app module
  and the common-kotlin convention plugin
- Add Room compiler via the ksp configuration instead of kapt
- Drop the kapt { correctErrorTypes = true } workaround
- Add symbol-processing-gradle-plugin (1.9.22-1.0.17) to buildSrc

Fixes Gurupreet#184

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 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

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 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)

Fixes Gurupreet#185

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 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

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Adopt Compose BOM for unified Compose version management

1 participant