Currently all the Jetbrains experimental examples ...
# compose-desktop
m
Currently all the Jetbrains experimental examples are modified to be compatible with the KMM project structure. I am wondering though how you do that. Is there some best practice? Especially the iOS part is not something that you could convert manually, I think. Which wizard are you using for that and with which settings. When I tried to do that myself the result looked quite different to the modified samples on the web site. Also the KMM project structure seems to imply that from now on you can only use Android Studio to work on the project but not IntelliJ IDEA anymore due to the missing KMM plugin. Is that right?
l
If the project uses the XCode structure for iOS, you can use a pairing of IJ and XCode. I like this structure generally, since IJ often has newer features than AS.
n
I am wondering though how you do that. Is there some best practice?
They all are done from the same template. First falling-balls was converted then all others were done similarly. All they use the same
iosApp.swift
as ios entry point with a reference to
Main_iosKt.MainViewController().
main.ios.kt
is in
iosMain
sourceSet of
shared
module and declares
MainViewController
like:
fun MainViewController() : UIViewController =
_Application_("Todo") *{*
MainView()
}
you can only use Android Studio
AppCode also works so far.
l
Note that AppCode is getting sunset
m
Which version of AS would you recommend for this type of project? Electric Eel or Flamingo Canary?
l
I use dolphin