Skip to content

Fix the dev build: compileSdk 37 and Hilt 2.60.1 - #2162

Merged
mpretty-cyro merged 1 commit into
session-foundation:devfrom
mpretty-cyro:fix/compile-sdk-37
Aug 12, 2026
Merged

Fix the dev build: compileSdk 37 and Hilt 2.60.1#2162
mpretty-cyro merged 1 commit into
session-foundation:devfrom
mpretty-cyro:fix/compile-sdk-37

Conversation

@mpretty-cyro

Copy link
Copy Markdown
Collaborator

Two independent dependabot bumps each broke the build on dev, and the first masked the second.

  • compileSdk 36 -> 37, required by lifecycle 2.11.0 (Bump lifecycleVersion from 2.10.0 to 2.11.0 #2157), which fails checkAarMetadata below 37. targetSdk stays at 36. Reverting Bump lifecycleVersion from 2.10.0 to 2.11.0 #2157 was considered and declined: compileSdk is a change we control. Note there is no platforms;android-37 package — it is android-37.0, and AGP resolves compileSdk = 37 to it with no compileSdkMinor needed.
  • Dagger/Hilt 2.59.2 -> 2.60.1, to read the 2.4.0 class metadata that coil 3.5.0 (Bump coilVersion from 3.4.0 to 3.5.0 #2159) pulls in via kotlin-stdlib 2.4.0; 2.59.2's bundled reader caps at 2.3.0 and failed hiltJavaCompile. Kotlin stays at 2.3.20 deliberately — bumping it would emit 2.4.0 metadata from our own classes too.

CI provisions no Android SDK (no setup step in build_and_test.yml, and gradle.properties sets no sdkDownload flag), so it relies on the runner image plus AGP auto-download. If the image lacks android-37.0, CI will fail on the SDK and that reads as unrelated to this change.

Two independent dependabot bumps each broke the build on dev, and the first
masked the second.

- compileSdk 36 -> 37, required by lifecycle 2.11.0 (session-foundation#2157), which fails
  checkAarMetadata below 37. targetSdk stays at 36. Reverting session-foundation#2157 was
  considered and declined: compileSdk is a change we control. Note there is no
  `platforms;android-37` package — it is android-37.0, and AGP resolves
  compileSdk = 37 to it with no compileSdkMinor needed.
- Dagger/Hilt 2.59.2 -> 2.60.1, to read the 2.4.0 class metadata that coil
  3.5.0 (session-foundation#2159) pulls in via kotlin-stdlib 2.4.0; 2.59.2's bundled reader caps
  at 2.3.0 and failed hiltJavaCompile. Kotlin stays at 2.3.20 deliberately —
  bumping it would emit 2.4.0 metadata from our own classes too.

CI provisions no Android SDK (no setup step in build_and_test.yml, and
gradle.properties sets no sdkDownload flag), so it relies on the runner image
plus AGP auto-download. If the image lacks android-37.0, CI will fail on the
SDK and that reads as unrelated to this change.
@mpretty-cyro mpretty-cyro self-assigned this Aug 12, 2026
@mpretty-cyro
mpretty-cyro merged commit 25c4870 into session-foundation:dev Aug 12, 2026
5 checks passed
@mpretty-cyro
mpretty-cyro deleted the fix/compile-sdk-37 branch August 12, 2026 01:16
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