Hi I tried to make `desktopMain` depend on `appl...
# multiplatform
n
Hi I tried to make
desktopMain
depend on
appleMain
since i need to use
platform.*
as part of shared code for both
iOS
and
macOS
. Has anyone tried something like this before. Here is a sample repo with what i am trying to accomplish. https://github.com/aanorbel/kmp-apple-main-desktop/blob/main/composeApp/build.gradle.kts#L40
e
platform.*
is Kotlin Native only.
desktopMain
is JVM, you will not be able to use Kotlin Native functionality
n
Oh I see. Any Ideas how i can still use
platform.*
on the macOS portion of the desktop App.
e
you'll have to go through JNI or similar mechanisms, similar to how Skiko uses Skia
n
Thanks @ephemient for the support. Any Sample of that happening in the wild so i can draw inspiration from it.