Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower compose version to avoid breaking change added in 1.7.0 #301

Conversation

rbro112
Copy link
Contributor

@rbro112 rbro112 commented Nov 7, 2024

1.7.0 of compose-runtime (any compose-bom after 2024.08.00) has a breaking change in our snapshots SDK when targeting an app with 1.6.8 or lower (bom 2024.08.00).

When building our SDK with a 1.7.0+, a rememberComposableLambda function is called that was added in 1.7.0. When our snapshots SDK is used as an androidTestImplementation dependency against an app with a lower compose version, this function is not present, which leads to a NoSuchMethodError upon trying to invoke the snapshot.

For now, this should be able to be fixed with a simple version drop, and longer term we can work through a more elegant solution that can allow us to ship with whatever version of compose we'd like, while supporting any client version.

Copy link
Contributor Author

rbro112 commented Nov 7, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rbro112 and the rest of your teammates on Graphite Graphite

Copy link

emerge-tools bot commented Nov 7, 2024

1 build decreased size

Name Version Download Change Install Change Approval
Emerge snapshots sample
com.emergetools.snapshots.sample.debug
1.0 (1) 8.6 MB ⬇️ 769.8 kB (-8.2%) 23.1 MB ⬇️ 1.9 MB (-7.64%) N/A

Emerge snapshots sample 1.0 (1)
com.emergetools.snapshots.sample.debug

⚖️ Compare build
⏱️ Analyze build performance

Total install size change: ⬇️ 1.9 MB (-7.64%)
Total download size change: ⬇️ 769.8 kB (-8.2%)

Largest size changes

Item Install Size Change Download Size Change
🗑 androidx.compose.foundation.text.input ⬇️ -246.7 kB ⬇️ -82.2 kB
🗑 lib ⬇️ -37.4 kB ⬇️ -17.7 kB
🗑 androidx.compose.ui.graphics.layer ⬇️ -47.0 kB ⬇️ -15.7 kB
androidx.compose.material3.TextFieldDefaults ⬆️ 28.4 kB ⬆️ 9.5 kB
🗑 androidx.lifecycle.compose ⬇️ -25.8 kB ⬇️ -8.7 kB
View Treemap

Image of diff


🛸 Powered by Emerge Tools

Comment trigger: Size diff threshold of 100.00kB exceeded

Copy link

emerge-tools bot commented Nov 7, 2024

📸 Snapshot Test

3 modified, 139 unchanged

Name Added Removed Modified Unchanged Errored Approval
Emerge snapshots sample
com.emergetools.snapshots.sample.debug
0 0 3 139 1 ✅ Approved

🛸 Powered by Emerge Tools

@rbro112 rbro112 merged commit e07150c into main Nov 7, 2024
15 checks passed
@rbro112 rbro112 deleted the ryan/lower_compose_version_to_avoid_breaking_change_added_in_1.7.0 branch November 7, 2024 01:48
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