Repository navigation
Conversation
Compose 1.13 (BOM 2026.12.00) requires compileSdk 37.1. Add an android-sdk-compilePlatform = "37.1" version catalog entry and set compileSdkMinor from it in every library module, but only when its major level matches android-sdk-compile, so overriding just android-sdk-compile (e.g., to 38) doesn't select a nonexistent android-38.1. android-sdk-compile stays an integer so existing consumers like targetSdk and app build.gradle.kts files keep working. The alias can't be android-sdk-compile-platform because a version catalog alias can't also be a prefix of another alias (libs.versions.android.sdk.compile would lose its get()). Also bump AGP to 9.3.3; Google lists AGP 9.3.1 as the minimum for compile SDK 37.1, and AGP 9.2.0 warns that it was only tested up to 37.0. This requires a skip release whose skip-build-plugin raises the app's compileSdk to 37.1; otherwise apps that set compileSdk = 37 fail checkDebugAarMetadata against these library modules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of skiptools/skip#776 (for skiptools/skip#775, the Compose 1.13 bump). Depends on skiptools/skip#778. Don't merge this until a skip release includes that PR.
Compose 1.13 (BOM 2026.12.00) requires
compileSdk37.1. This PR makes every Skip library module compile against android-37.1 and moves AGP to a version that supports it.Changes to
skip.ymlNew catalog entry
android-sdk-compilePlatform = "37.1".android-sdk-compilestays"37", because integer-only consumers calllibs.versions.android.sdk.compile.get().toInt(). Those includetargetSdkand every existing app'sapp/build.gradle.kts.The
android { }block setscompileSdkMinorfrom the new entry. This line has to come aftercompileSdk, because assigningcompileSdkresetscompileSdkMinor:The minor level only applies when its major level matches
compileSdk. A project that overrides onlyandroid-sdk-compiletherefore gets that platform unchanged. For example, overriding it to 36 gives android-36, not android-36.1, and overriding it to 38 wouldn't ask for a nonexistent android-38.1.AGP goes from 9.2.0 to 9.3.3. Google lists AGP 9.3.1 as the minimum for compile SDK 37.1, and AGP 9.2.0 warns that it was only tested up to 37.0.
Why the alias is
android-sdk-compilePlatformThe obvious names,
android-sdk-compile-platformorandroid-sdk-compile-minor, break existing builds. A version catalog alias can't also be the prefix of another alias. If one of them existed,libs.versions.android.sdk.compilewould become an accessor group instead of a version, and the existing.get()calls would stop compiling.Why this needs the skip PR first
Once library modules compile against 37.1, AGP requires everything that depends on them to compile against 37.1 too. Every existing app sets
compileSdk = libs.versions.android.sdk.compile.get().toInt(), which is plain 37. So this PR alone breaks existing apps, even on the current Compose BOM. Using skipapp-showcase with this branch, BOM 2026.05.01, and the released skip 1.9.23 plugin,gradle :app:checkDebugAarMetadatafails for all 19 Skip modules:skiptools/skip#778 fixes this in skip-build-plugin. It uses
finalizeDslto raise an app'scompileSdkfrom 37 to 37.1 when this catalog entry is present. With that plugin, the same build passes. To enforce the order, this PR should also raise skip-unit'sskipdependency to the release that includes it. That change isn't in the diff yet.Testing
I used
swift package editon skipapp-showcase with this branch and the skip plugin branch. The app'sbuild.gradle.ktswas left unmodified.gradle :app:checkDebugAarMetadatapasses, and the plugin logsSkip: raising compileSdk from 37 to 37.1. It fails without the plugin, as shown above.gradle :app:checkDebugAarMetadata :app:assembleDebugpasses, and so does the Xcode build of the showcase.android-sdk-compileto 36 compiles against android-36.swift teston BOM 2026.12.00 matches the baseline on released dependencies (compileSdk 37.0):TextTestssize tests fail on the baseline too.