Skip to content

Upgrade libs, AGP 9.5.1, Gradle 9.9.1, compileSdk 37 - #44

Open
Wavesonics wants to merge 1 commit into
mainfrom
upgrade-libs
Open

Wavesonics wants to merge 1 commit into
mainfrom
upgrade-libs

Conversation

@Wavesonics

Copy link
Copy Markdown
Collaborator

Brings every dependency to its latest stable release.

Build toolchain

  • AGP 9.5.1 (from 8.13.2) on Gradle 9.9.1 (from 8.13).
    • Migrated to AGP built-in Kotlin, which means the kotlin-android plugin is removed.
    • Pinned KGP on the buildscript classpath so it matches the Compose and serialization compiler plugins. Without the pin, AGP falls back to its own bundled KGP 2.3.10.
    • Gradle 9.9.1 also runs on JDK 25; Gradle 8.13 couldn't.
  • Kotlin 2.4.21 (from 2.3.21).
  • compileSdk 37: needed by core 1.19, lifecycle 2.11, Compose 1.12, Zoomable 2.13+ and Cairn 0.3+. targetSdk stays at 36.

Libraries

Library From To
kotlinx-serialization 1.11.0 1.13.0
core-ktx 1.18.0 1.19.1
Lifecycle 2.10.0 2.11.0
Compose BOM 2026.05.01 2026.09.00
foundation, runtime-livedata 1.11.2 1.12.1
Navigation3 1.1.2 1.2.1
WorkManager 2.11.2 2.12.0
DataStore 1.2.1 1.3.0
Media3 1.10.1 1.11.1
CameraX 1.6.1 1.6.2
Koin 4.2.1 4.2.2
MockK 1.14.9 1.14.12
Zoomable 2.12.0 2.16.0
Cairn 0.2.2 0.4.0

Code change: CameraPreview.kt now uses androidx.lifecycle.compose.LocalLifecycleOwner; the Compose UI one is deprecated.

Reviewer notes

  • ./gradlew test now runs only the debug unit tests. This comes from the AGP 9 default onlyEnableUnitTestForTheTestedBuildType.

  • AGP 9 makes R8 stricter:

    • full-mode keep rules
    • repackaging into the default package
    • *Annotation* no longer keeps runtime-invisible annotations

    proguard-rules.pro is nearly empty, so any fallout would come from library consumer rules.

  • Nav3 1.2 changed the default contentKey, so per-entry saved state won't restore once after updating.

  • Compose 1.12 made the combinedClickable rewrite permanent; this is used for long-press in the gallery.

Testing

  • Both flavors compile in debug, and the androidTest sources compile.
  • All 390 unit tests pass.
  • R8 minify succeeds for both release flavors.
  • Lint shows the same 4 LocalContextGetResourceValueCall errors as main; none are new.
  • Not yet done: an on-device smoke test of the release builds. Check:
    • gallery long-press multi-select
    • pinch-zoom in the viewer and on the obfuscation screen
    • import, video playback and PIN flows

- Kotlin 2.4.21, kotlinx-serialization 1.13.0
- Migrate to AGP built-in Kotlin; pin KGP on the buildscript classpath
- compileSdk 37 for core 1.19, lifecycle 2.11, Compose BOM 2026.09.00
- Bump Koin, MockK, WorkManager, Nav3, DataStore, Media3, CameraX, Zoomable, Cairn
- Use lifecycle-compose LocalLifecycleOwner
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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