Hi. Just a dummy question... is there any tutorial on how to convert a compose projecte to a compose...
a
Hi. Just a dummy question... is there any tutorial on how to convert a compose projecte to a compose-desktop one?
o
probably more relevant for #compose-desktop, but IIRC @Arkadii Ivanov did it for TODO app, which become one of Compose for Desktop demos: https://github.com/JetBrains/compose-jb/tree/master/examples/todoapp. Also note, that you not have to convert, you could keep both.
a
thanks, do I need IntelliJ to test it? not works with AS
a
I'm using Android Studio Beta currently for Desktop Compose. It works just fine. The TODO example was always multiplatform. It was using Jetpack Compose + SwiftUI. Its original location was in the Decompose repository. Then based on the existing example, I created a new one in the JB Compose repository. It had only Android and Desktop targets with shared UI. And later I added the iOS app with SwiftUI.
a
i don't see the run on desktop
a
There should be
./gradlew :desktop:run
task, it can also be launched from AS
a
oh, ok not from selector then
I Not see the option from As
a
AFAIK there is no option in the dropdown menu, but you can use
Gradle
panel on the right side of the screen
a
thks. Following the example from repo above, i got this :S
s
this: KotlinAndroidProjectExtension
implies, that you applied the Kotlin Android Gradle Plugin. If you want to opt into MPP, you would like to use
kotlin("multiplatform")
instead!