Folder Structure

Folder Structure

Compose MultiPlatform

As I mentioned before, the basic scaffold is generated by the KMP Wizard by JetBrains. So, composeApp is the root for Compose UI. As of now, there’s only androidMain, because I didn’t choose shared UI or any other platform (like Desktop). So I think we can move most of the existing code to composeApp/commonMain and this should still work.

Project folder structure

              • composeApp/androidMain is the Android App Source
              • iosApp is the iOS App Source
              • shared/src/androidMain contains Android platform specific code
              • shared/src/commonMain contains platform agnostic codes (like interfaces)
              • shared/src/iosMain contains iOS platform specific code

              Android folder structure

                      • Ideal Folder Structure (Future)

                                      • composeApp/commonMain will hold most of the shared UI (across Android / Desktop and iOS)
                                      • composeApp/androidMain will hold Android specific UI elements
                                      • composeApp/iosMain will hold iOS specific UI elements
                                      • composeApp/desktopMain will hold desktop specific iOS