-
Notifications
You must be signed in to change notification settings - Fork 61
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
Conversation
// an else clause to be exhaustive | ||
// Family.WASM, | ||
// Family.ZEPHYR, | ||
else -> null |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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.