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

Support for compiling the SDK with Kotlin 2 #1721

Merged
merged 6 commits into from
Apr 19, 2024
Merged

Support for compiling the SDK with Kotlin 2 #1721

merged 6 commits into from
Apr 19, 2024

Conversation

rorbech
Copy link
Contributor

@rorbech rorbech commented Apr 11, 2024

Due to binary incompatibilities of the Kotlin compile API across 1.9 and 2.0 we cannot supply a cross version compatible distribution. This PR will however update the code base so that it is possible to compile the SDK itself with both 1.9 and 2.0 to make it easier to maintain and supply a 2.0-compatible branch.

Note This PR does not enable support for K2 in consumer project nor does it change the project to use K2 itself.

@rorbech rorbech changed the title K2 Support Support for compiling the SDK with Kotlin 2 Apr 12, 2024
@rorbech rorbech added the no-jira-ticket Skip checking the PR title for Jira reference label Apr 15, 2024
@rorbech rorbech mentioned this pull request Apr 15, 2024
@rorbech rorbech marked this pull request as ready for review April 15, 2024 09:53
// an else clause to be exhaustive
// Family.WASM,
// Family.ZEPHYR,
else -> null
Copy link
Contributor

Choose a reason for hiding this comment

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

How do we ensure we catch new target added in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't both ignore non-existing symbols and ensure that we are exhaustive. This anyway a bit shady. We don't fetch minimum SDK for non-Cocoapods Kotlin Native builds. I have added a TODO about revisiting it when we skip Kotllin 1.9 support.

@rorbech rorbech merged commit ecc7eac into main Apr 19, 2024
56 checks passed
@rorbech rorbech deleted the cr/k2 branch April 19, 2024 11:45
rorbech added a commit that referenced this pull request Apr 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes no-jira-ticket Skip checking the PR title for Jira reference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants