Vinícius Santos
07/12/2023, 3:10 PMmbonnin
07/12/2023, 3:12 PMmbonnin
07/12/2023, 3:13 PMorg.jetbrain.kotlin.multiplatform
with a jvm()
target (and iOS, etc...) and put all your code in commonMain
Vinícius Santos
07/12/2023, 3:28 PMVinícius Santos
07/12/2023, 3:29 PMmbonnin
07/12/2023, 3:42 PMmbonnin
07/12/2023, 3:42 PMcommonMain
is a sourceSet, you'll always have this one)Jacob Ras
07/12/2023, 3:52 PMVinícius Santos
07/12/2023, 3:52 PMplugins {
kotlin("multiplatform")
}
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
}
}
val commonTest by getting {
dependencies {
}
}
}
}
mbonnin
07/12/2023, 3:53 PMmbonnin
07/12/2023, 3:54 PMephemient
07/12/2023, 3:59 PMVinícius Santos
07/12/2023, 4:03 PM