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

Add wasmJs target #151

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Add wasmJs target #151

merged 2 commits into from
Apr 2, 2024

Conversation

ajalt
Copy link
Contributor

@ajalt ajalt commented Feb 29, 2024

This required bumping Kotlin to 1.9.22 for the new wasmJs target.

@@ -21,7 +21,6 @@ actual fun isWhitespace(char: Char): Boolean {
return char == 0.toChar() || char.isWhitespace()
}

@SharedImmutable
Copy link
Contributor Author

Choose a reason for hiding this comment

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

SharedImmutable isn't defined on the wasm target, but it's been a deprecated no-op since 1.9.0 anyway, so there's no harm in removing them.

@@ -66,6 +71,11 @@ kotlin {
ios()

sourceSets {
all {
languageSettings {
optIn("kotlin.experimental.ExperimentalNativeApi")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a new opt in requirement added in 1.9.20. We only use a function it applies to in one place in the nativeTest source set, but since the compile language version is 1.7 and this annotation didn't exist in 1.7, we have to opt in as a compiler argument.

@FirstTimeInForever FirstTimeInForever merged commit 9cb1848 into JetBrains:master Apr 2, 2024
3 checks passed
@ajalt ajalt deleted the wasm branch April 2, 2024 16:38
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