From c93792c95cbbb5587bdee4758ee611033b183be4 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 12 Aug 2026 11:12:28 +1000 Subject: [PATCH] Fix the dev build: compileSdk 37 and Hilt 2.60.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (#2157), which fails checkAarMetadata below 37. targetSdk stays at 36. Reverting #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 (#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. --- gradle/libs.versions.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7d5bd78dcb..03855d9d83 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] androidMinSdkVersion = "26" androidTargetSdkVersion = "36" -androidCompileSdkVersion = "36" +androidCompileSdkVersion = "37" accompanistPermissionsVersion = "0.37.3" activityKtxVersion = "1.13.0" androidImageCropperVersion = "4.7.0" @@ -37,7 +37,7 @@ navVersion = "2.9.8" appcompatVersion = "1.7.1" coreVersion = "1.18.0" coroutinesVersion = "1.10.2" -daggerHiltVersion = "2.59.2" +daggerHiltVersion = "2.60.1" androidxHiltVersion = "1.3.0" glideVersion = "5.0.7" junitVersion = "4.13.2"