Skip to content

Support apps compiled against Jetpack Compose 1.10#5189

Draft
markushi wants to merge 2 commits intomainfrom
markushi/fix/compose-110-api-changes
Draft

Support apps compiled against Jetpack Compose 1.10#5189
markushi wants to merge 2 commits intomainfrom
markushi/fix/compose-110-api-changes

Conversation

@markushi
Copy link
Member

📜 Description

Fixes #5086

Starting with Jetpack Compose 1.10, some internal APIs JVM methods dropped the _release() suffix. E.g. getChildren$ui() instead of previous getChildren$ui_release().

This PR wraps those methods, as a compat layer - so they work across multiple versions during runtime.

It required some "extra" gradle setup (as AGP does not seem to support different class paths per source set), but seems to work well in initial testing.

Some more (automated) testing is required before this can be merged.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

@github-actions
Copy link
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • Support apps compiled against Jetpack Compose 1.10 by markushi in #5189

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- Support apps compiled against Jetpack Compose 1.10 ([#5189](https://github.com/getsentry/sentry-java/pull/5189))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 72a523b

@github-actions
Copy link
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 307.88 ms 311.33 ms 3.45 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
ee747ae 357.79 ms 421.84 ms 64.05 ms
22f4345 307.87 ms 354.51 ms 46.64 ms
dc4cc7a 361.10 ms 439.53 ms 78.43 ms
a416a65 316.52 ms 359.67 ms 43.15 ms
d15471f 310.66 ms 368.19 ms 57.53 ms
9fbb112 361.43 ms 427.57 ms 66.14 ms
dba088c 328.51 ms 423.79 ms 95.28 ms
27d7cf8 397.90 ms 498.65 ms 100.75 ms
951caf7 323.66 ms 392.82 ms 69.16 ms
a416a65 295.53 ms 373.74 ms 78.21 ms

App size

Revision Plain With Sentry Diff
ee747ae 1.58 MiB 2.10 MiB 530.95 KiB
22f4345 1.58 MiB 2.29 MiB 719.83 KiB
dc4cc7a 1.58 MiB 2.19 MiB 619.28 KiB
a416a65 1.58 MiB 2.12 MiB 555.26 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
9fbb112 1.58 MiB 2.11 MiB 539.18 KiB
dba088c 1.58 MiB 2.13 MiB 558.99 KiB
27d7cf8 1.58 MiB 2.12 MiB 549.42 KiB
951caf7 1.58 MiB 2.13 MiB 558.77 KiB
a416a65 1.58 MiB 2.12 MiB 555.26 KiB

@sentry
Copy link

sentry bot commented Mar 12, 2026

Sentry Build Distribution

App Name App ID Version Configuration Install Page
SDK Size io.sentry.tests.size 8.35.0 (1) release Install Build

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.

Session replay not working

2 participants