Clament John
11/03/2021, 8:52 AMkragle
library in multiplatform
example app - todo
I created a Minimal reproducible example using the multiplatform
todo app. When imported from the common module it fails, but when imported from the desktop module it works. I'm confused.
I've raised an question on krangl
repo - Issue#132Clament John
11/03/2021, 8:55 AMimplementation("com.github.holgerbrandl:krangl:0.17")
to https://github.com/JetBrains/compose-jb/blob/master/examples/todoapp/common/compose-ui/build.gradle.kts
2. Tried importing
import krangl
in https://github.com/JetBrains/compose-jb/blob/master/examples/todoapp/common/compose-ui/src/commonMain/kotlin/example/todo/common/ui/TodoMainUi.ktTijl
11/03/2021, 10:36 AMTijl
11/03/2021, 10:37 AMClament John
11/03/2021, 10:44 AMTijl
11/03/2021, 10:45 AMcommonMain
sourceset, instead use the other sourcesets you have for android/jvm (e.g. androidMain
/ jvmMain
)Tijl
11/03/2021, 10:46 AMClament John
11/03/2021, 10:47 AMTijl
11/03/2021, 10:48 AMTijl
11/03/2021, 10:48 AMClament John
11/03/2021, 10:49 AMTijl
11/03/2021, 10:49 AMTijl
11/03/2021, 10:50 AMjimn
11/03/2021, 1:33 PM