Thread
#compose
    a

    alorma

    1 year ago
    Hi. Just a dummy question... is there any tutorial on how to convert a compose projecte to a compose-desktop one?
    olonho

    olonho

    1 year ago
    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

    alorma

    1 year ago
    thanks, do I need IntelliJ to test it? not works with AS
    Arkadii Ivanov

    Arkadii Ivanov

    1 year ago
    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

    alorma

    1 year ago
    i don't see the run on desktop
    Arkadii Ivanov

    Arkadii Ivanov

    1 year ago
    There should be
    ./gradlew :desktop:run
    task, it can also be launched from AS
    a

    alorma

    1 year ago
    oh, ok not from selector then
    I Not see the option from As
    Arkadii Ivanov

    Arkadii Ivanov

    1 year ago
    AFAIK there is no option in the dropdown menu, but you can use
    Gradle
    panel on the right side of the screen
    a

    alorma

    1 year ago
    thks. Following the example from repo above, i got this :S
    Sebastian Sellmair [JB]

    Sebastian Sellmair [JB]

    1 year ago
    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!