mzgreen
10/23/2019, 12:28 PMIlya Goncharov [JB]
10/23/2019, 12:36 PMjs {
browser()
}
and declare js stdlib dependency
sourceSets {
main {
dependencies {
implementation(kotlin("stdlib-js"))
}
}
}
Now you can create source code in jsMain
module using Kotlinmzgreen
10/23/2019, 12:43 PMcommon
module, but I would like to create a separate module for the webpage and add common
module as a dependency.
Currently my setup looks like this:
I have a common
module with targets: jvm
android
ios
and js
each target is configured properly.
I have a separate module for android
ios
and jvm
and each of those includes common
as a dependency.
Now I’m trying to add separate module for js app that will include common
as a dependency.mzgreen
10/23/2019, 12:44 PMmzgreen
10/23/2019, 12:45 PMhello world
project from scratch and showing how to run it in browser.Ilya Goncharov [JB]
10/23/2019, 12:47 PMmzgreen
10/23/2019, 12:48 PMmzgreen
10/23/2019, 12:48 PMKotlin
on the left 🤦♂️