-
Notifications
You must be signed in to change notification settings - Fork 6
Add Kotlin/JS support #31
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,11 @@ plugins { | |
| } | ||
|
|
||
| kotlin { | ||
| js { | ||
| browser() | ||
| nodejs() | ||
| } | ||
|
|
||
| sourceSets { | ||
| commonMain { | ||
| dependencies { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,11 @@ plugins { | |
| } | ||
|
|
||
| kotlin { | ||
| js { | ||
| browser() | ||
| nodejs() | ||
| } | ||
|
|
||
| sourceSets { | ||
| commonTest { | ||
| dependencies { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,11 @@ plugins { | |
| } | ||
|
|
||
| kotlin { | ||
| js { | ||
| browser() | ||
| nodejs() | ||
| } | ||
|
|
||
| sourceSets { | ||
| commonMain { | ||
| dependencies { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,11 @@ plugins { | |
| } | ||
|
|
||
| kotlin { | ||
| js { | ||
| browser() | ||
| nodejs() | ||
| } | ||
|
|
||
| sourceSets { | ||
| commonMain { | ||
| dependencies { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,11 @@ plugins { | |
| } | ||
|
|
||
| kotlin { | ||
| js { | ||
| browser() | ||
| nodejs() | ||
| } | ||
|
|
||
| sourceSets { | ||
| commonMain { | ||
| dependencies { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| @file:OptIn(ExperimentalWasmDsl::class) | ||
|
|
||
| import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl | ||
| import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode | ||
| import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
|
||
|
|
@@ -31,9 +34,9 @@ kotlin { | |
| jvm { | ||
| compilerOptions.jvmTarget = JvmTarget.JVM_1_8 | ||
| } | ||
| js { nodejs() } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why only
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To prevent adding the |
||
| wasmJs { nodejs() } | ||
| // Future multiplatform targets can be added here without changing the code | ||
| // js { nodejs() } | ||
| wasmJs { nodejs() } | ||
| // linuxX64(); macosX64(); mingwX64() | ||
|
|
||
| explicitApi = ExplicitApiMode.Strict | ||
|
|
||
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.
@nerzhulart Btw, should we add wasm target too? (And to the other ktor modules)
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.
Wasm has been added as a shared target in buildSrc.