Join Slack
Powered by
If I have an android and jvm("desktop") target, ca...
# multiplatform
e
eygraber
03/11/2021, 7:28 AM
If I have an android and jvm("desktop") target, can I make another target that both of those will use for common jvm code?
k
Kris Wong
03/11/2021, 2:01 PM
"Sharing code between JVM and Android" is "postponed for later" on the kotlin roadmap
Kris Wong
03/11/2021, 2:02 PM
btw, you would make a shared source set in that case, not another target
r
russhwolf
03/11/2021, 2:07 PM
You can do this, but the IDE support probably won't work well. It'll build fine from Gradle if you can deal with red code in the IDE.
k
Kris Wong
03/11/2021, 2:10 PM
that can be quite challenging when code completion and navigation doesn't work for any JVM APIs
r
russhwolf
03/11/2021, 2:14 PM
Agreed. There's various workarounds but it doesn't really scale all that well. But it's not impossible to do.
3
Views
Open in Slack
Previous
Next