Skip to content

Migrate to AGP 9.4.1 and modernize the sample - #23

Merged
nsk90 merged 3 commits into
mainfrom
agp-9-migration
Nov 18, 2026
Merged

nsk90 merged 3 commits into
mainfrom
agp-9-migration

Conversation

@nsk90

@nsk90 nsk90 commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

The project no longer configured: Gradle 9.8.2 is incompatible with AGP 8.x. AGP 9 forbids applying KMP and com.android.application in one module, so split it into a shared KMP library (composeApp, using com.android.kotlin.multiplatform.library) and a thin androidApp module with built-in Kotlin.

  • Replace Voyager, Koin and androidx.startup with the KMP lifecycle ViewModel
  • Migrate UI from Material 2 to Material 3; enable edge-to-edge
  • Bump compileSdk/targetSdk to 37 (required by current AndroidX/Compose)
  • Bump Compose Multiplatform to 1.12.2
  • Drop default/deprecated gradle.properties flags, enable configuration cache, raise Gradle heap to 4 GB for Kotlin/Native linking
  • CI: trigger on main, use gradle/actions/setup-gradle, drop Codecov
  • iOS: remove stale shared/ framework path, set real bundle IDs
  • Remove template leftovers and update README/CLAUDE.md

nsk90 and others added 3 commits November 18, 2026 10:57
The project no longer configured: Gradle 9.8.2 is incompatible with AGP 8.x.
AGP 9 forbids applying KMP and com.android.application in one module, so
split it into a shared KMP library (composeApp, using
com.android.kotlin.multiplatform.library) and a thin androidApp module
with built-in Kotlin.

- Replace Voyager, Koin and androidx.startup with the KMP lifecycle ViewModel
- Migrate UI from Material 2 to Material 3; enable edge-to-edge
- Bump compileSdk/targetSdk to 37 (required by current AndroidX/Compose)
- Bump Compose Multiplatform to 1.12.2
- Drop default/deprecated gradle.properties flags, enable configuration
  cache, raise Gradle heap to 4 GB for Kotlin/Native linking
- CI: trigger on main, use gradle/actions/setup-gradle, drop Codecov
- iOS: remove stale shared/ framework path, set real bundle IDs
- Remove template leftovers and update README/CLAUDE.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release framework linking for iosArm64 is slow and, together with 4 GB
Gradle + 4 GB Kotlin daemon heaps, exhausted the 7 GB macos runner.
CI now builds the Android debug APK and the debug simulator framework
only. Kotlin/Native compiles in the Gradle daemon, so the Kotlin daemon
heap goes back to 2 GB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both are cheap (~2 s extra locally). Release iOS links stay excluded:
they peak at ~6 GB in the Gradle daemon and swap on the 7 GB macOS runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nsk90
nsk90 merged commit 435a0d2 into main Nov 18, 2026
1 check passed
@nsk90
nsk90 deleted the agp-9-migration branch November 18, 2026 03:50
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.

1 participant