Skip to content

Adopt androidx.lifecycle 2.11.0 in the sample app (scoped compileSdk 37) - #1455

Draft
jkmassel wants to merge 1 commit into
trunkfrom
jkmassel/lifecycle-2.11-on-agp9
Draft

Adopt androidx.lifecycle 2.11.0 in the sample app (scoped compileSdk 37)#1455
jkmassel wants to merge 1 commit into
trunkfrom
jkmassel/lifecycle-2.11-on-agp9

Conversation

@jkmassel

Copy link
Copy Markdown
Contributor

Description

Bump of androidx.lifecycle from 2.10.0 to 2.11.0, originally proposed by Dependabot in #1408. 2.11.0 transitively pulls lifecycle-runtime-compose, whose AAR metadata declares minCompileSdk=37, so the consuming module must compile against SDK 37. Rather than raise the shared android-compileSdk — which would also rebuild the published api/android AAR against 37 and undo the compileSdk 36 alignment with WPAndroid that #1433 deliberately set — this scopes the SDK 37 bump to the sample-app modules only.

Changes

  • Add a dedicated example-compileSdk = "37" version-catalog entry.
  • Point :example:composeApp and :example:androidApp compileSdk at example-compileSdk.
  • Leave the shared android-compileSdk on 36, so :api:android is unchanged and stays aligned with WPAndroid.
  • Bump lifecycle 2.10.02.11.0.

Test plan

  • :example:androidApp:assembleDebug builds against compileSdk 37 with lifecycle 2.11.0 — confirmed green on Buildkite (scoped variant: build 5933; shared-compileSdk variant: build 5932).
  • publish-wp-api-android still compiles :api:android against compileSdk 36.
  • Full PR pipeline green.

Changelog

  • I've added an entry to CHANGELOG.md under ## [Unreleased].

Related issues

lifecycle 2.11.0 pulls lifecycle-runtime-compose (minCompileSdk=37) transitively, so
the sample app must compile against SDK 37. Add a dedicated example-compileSdk (37)
used only by :example:composeApp and :example:androidApp; the published :api:android
library and the shared android-compileSdk stay at 36 to preserve the WPAndroid AAR
alignment from #1433.
@wpmobilebot

Copy link
Copy Markdown
Collaborator

XCFramework Build

This PR's XCFramework is available for testing. Add to your Package.swift:

.package(url: "https://github.com/automattic/wordpress-rs", branch: "pr-build/1455")

Built from 2b90868

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.

2 participants