https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Miguel C

03/04/2024, 1:32 PM
Hello everyone? I used the online wizard to create my first multiplatform project on IntelliJ, but I'm a bit confused about these two directories in my screenshot. I can see dependencies and business logic goes under "shared" but what goes under "composeApp"? thank you!
r

Richie Rodríguez

03/04/2024, 2:00 PM
As stated in the docs (https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-create-first-app.html#examine-the-project-structure): • composeApp is a Kotlin module that builds into an Android application. It uses Gradle as the build system. The composeApp module depends on and uses the shared module as a regular Android library.
🙌 2
d

Douglas Ronne

03/05/2024, 8:17 PM
that is interesting, when I make a project (android, ios, and desktop) it does not have a shared, it only has a composeApp, iosApp, and then there is a commonMain in the composeApp where I think the shared stuff goes. Do you get the shared when you also build web and server?
r

Richie Rodríguez

03/06/2024, 8:19 AM
When I create a new App using the Android Studio wizard, I get a separate folder for shared. But if I use Kotlin Multiplatform Wizard, I don't get the "shared" folder when "Share UI" is selected. I didn't work with server nor web projects yet.
3 Views