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

Fixes Compose<->K2 compilation error #111

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

JayShortway
Copy link
Member

Problem

This was reported by Andy during the bug bash. Trying to compile a call to the Paywall() gives an error very similar to JetBrains/compose-multiplatform#4809.

That's a Compose compiler issue which occurs when using K2 (with Kotlin 2.0.0). Even though the issue is closed, it is still happening as is evident from the comments. (See also Decompose, another Compose Multiplatform library: arkivanov/Decompose#727.)

Solution

The solution in this PR is to downgrade Kotlin to 1.9.23. I also updated Compose Multiplatform to 1.6.11 for good measure.

We needed Kotlin 2.0.0 for the @ObjCSignatureOverride annotation, but for now it seems to do fine without it. (🤞) Downgrading Kotlin is actually beneficial for our users, because it lowers the version constraints for their project too.

Notes

  • The .podspec files were automatically regenerated. I did not make those changes manually.
  • The .api files have changed, but from what I can tell not really. Some spaces and ordering differences, but nothing substantial.

@JayShortway JayShortway added pr:dependencies Updating a dependency pr:fix A bug fix labels Jun 25, 2024
@JayShortway JayShortway requested a review from a team June 25, 2024 12:27
@JayShortway JayShortway self-assigned this Jun 25, 2024
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some questions but code changes are looking good!

gradle/libs.versions.toml Show resolved Hide resolved
revenuecatui/build.gradle.kts Show resolved Hide resolved
core/core.podspec Show resolved Hide resolved
@JayShortway JayShortway merged commit 0f42914 into main Jun 26, 2024
5 checks passed
@JayShortway JayShortway deleted the sdk-3493-verify-paywall-compilation branch June 26, 2024 08:38
@RCGitBot RCGitBot mentioned this pull request Jun 26, 2024
@RCGitBot RCGitBot mentioned this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:dependencies Updating a dependency pr:fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants