Skip to content

Commit 5aff3dc

Browse files
authored
update: adding wasm dependencies in a kmp project (#4829)
1 parent e8e27d0 commit 5aff3dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/topics/multiplatform/multiplatform-add-dependencies.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ kotlin {
243243
// SQLDelight will be available only in the iOS source set, but not in Android or common
244244
implementation("com.squareup.sqldelight:native-driver:%sqlDelightVersion%")
245245
}
246+
wasmJsMain.dependencies {
247+
248+
}
246249
}
247250
}
248251
```
@@ -268,6 +271,9 @@ kotlin {
268271
implementation 'com.squareup.sqldelight:native-driver:%sqlDelightVersion%'
269272
}
270273
}
274+
wasmJsMain {
275+
dependencies {}
276+
}
271277
}
272278
}
273279
```
@@ -326,3 +332,4 @@ Check out other resources on adding dependencies in multiplatform projects and l
326332

327333
* [Adding Android dependencies](multiplatform-android-dependencies.md)
328334
* [Adding iOS dependencies](multiplatform-ios-dependencies.md)
335+
* [Adding dependencies in a Compose Multiplatform project targeting iOS, Android, desktop, and web](https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-modify-project.html#add-a-new-dependency)

0 commit comments

Comments
 (0)