Skip to content

fix(deps): go back to lifecycle 2.10.0 and compileSdk 36 - #1108

Merged
swolfand merged 1 commit into
mainfrom
fix/lifecycle-2.10-compile-sdk-36
Oct 15, 2026
Merged

swolfand merged 1 commit into
mainfrom
fix/lifecycle-2.10-compile-sdk-36

Conversation

@swolfand

@swolfand swolfand commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

clerk-android 1.2.0 can't be used in apps that build with Android Gradle plugin 8, which includes every React Native and Expo app. Bumping @clerk/expo-native-components to 1.2.0 fails all three Android jobs at :app:checkReleaseAarMetadata (clerk/javascript#10247):

  • clerk-android-api:1.2.0, clerk-android-ui:1.2.0 and clerk-android-telemetry:1.1.0 require apps to compile against API 37. The Expo app compiles against 36 with AGP 8.11.0, whose highest supported compileSdk is 36.
  • androidx.lifecycle:*:2.11.0 requires compileSdk 37 and AGP 9.1.0 or higher.

Both floors come from #1077, which moved lifecycle to 2.11.0 and raised compileSdk to 37 to build it.

Changes

  • lifecycle goes back to 2.10.0 and compileSdk back to 36. fix(deps): update dependency androidx.lifecycle:lifecycle-viewmodel-navigation3 to v2.11.0 #1077 also put every lifecycle artifact on one version ref and gave apps a separate targetSdk; both stay.
  • navigationCompose goes from 2.10.2 to 2.9.8. navigation-compose 2.10.x also needs compileSdk 37 and pulls in lifecycle 2.11, so the two samples that use it (linear-clone, prebuilt-ui) wouldn't build against 36. Only the samples depend on it; it isn't in the published libraries.
  • renovate.json holds androidx.lifecycle:** below 2.11.0 and navigation-compose below 2.10.0, so Renovate doesn't reopen these bumps.

After this merges, release 1.2.1. It re-publishes telemetry too. Then point clerk/javascript#10247 at 1.2.1.

Verification

  • Locally, assembleDebug (every module), unit tests for api, ui and telemetry, apiCheck, and lint on the three libraries all pass. :e2e passes checkDebugAarMetadata against compileSdk 36, so the published dependency graph needs nothing above 36.
  • releaseRuntimeClasspath for :source:ui resolves every lifecycle artifact to 2.10.0.
  • Not yet run on an emulator. This PR only changes dependency versions, with no source changes, but it should still be checked with verify-clerk-android before release.

lifecycle 2.11.0 needs compileSdk 37 and Android Gradle plugin 9.1, and
building against 37 stamped that floor into our AARs. Apps on AGP 8,
which includes every React Native and Expo app, could not build against
1.2.0. Hold lifecycle below 2.11 in Renovate until they can.
@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: clerk/clerk-android/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 2295ed2e-9b00-4bfa-a0e7-03197f0d70e0
📥 Commits

Reviewing files that changed from the base of the PR and between ffeee68 and 2055fe0.

📒 Files selected for processing: 2
  • gradle/libs.versions.toml
  • renovate.json
 __________________________________________________
< Are you a real coder or just a pretty committer? >
 --------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@swolfand
swolfand enabled auto-merge (squash) October 15, 2026 00:10
@swolfand
swolfand disabled auto-merge October 15, 2026 00:10
@swolfand
swolfand merged commit a52daca into main Oct 15, 2026
10 of 11 checks passed
@swolfand
swolfand deleted the fix/lifecycle-2.10-compile-sdk-36 branch October 15, 2026 00:10
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