Skip to content

Add gson and bump Hilt to 2.60.1 for AGP 9 - #5

Merged
mountEvarus merged 2 commits into
mainfrom
mountEvarus/health-deps
Aug 22, 2026
Merged

mountEvarus merged 2 commits into
mainfrom
mountEvarus/health-deps

Conversation

@mountEvarus

Copy link
Copy Markdown
Owner

Both found by migrating health.

Hilt 2.57.2 does not work on AGP 9. Its Gradle plugin uses AGP's legacy BaseExtension, which AGP 9 removed:

> Failed to apply plugin 'com.google.dagger.hilt.android'.
   > Android BaseExtension not found.

AGP 9 support landed in Hilt 2.59 (dagger#4944), with follow-up fixes in 2.59.1 (jetifier) and 2.59.2 (slow incremental builds). Bumped to the current 2.60.1.

This would have hit footprint identically, so it is now paid for once.

gson is health's vendored Samsung Health Data SDK AAR's unresolved runtime dependency: the AAR references com.google.gson internally and declares no transitive deps, so the app supplies it explicitly.

Verified by building health locally: Hilt, KSP, Moshi, Room, WorkManager, the vendored AAR and a minSdk 29 override all compile, and ktlintCheck lintDebug testDebugUnitTest pass.

The AAR references com.google.gson internally and declares no transitive dependencies,
so the app has to supply it explicitly.
Hilt's Gradle plugin uses AGP's legacy BaseExtension, which AGP 9 removed, so 2.57.2
fails at apply with 'Android BaseExtension not found'. AGP 9 support landed in 2.59
(dagger#4944) with follow-up fixes in 2.59.1 and 2.59.2.
@mountEvarus
mountEvarus merged commit b4950fd into main Aug 22, 2026
1 check passed
@mountEvarus
mountEvarus deleted the mountEvarus/health-deps branch August 22, 2026 19:12
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