example of a cross-platform mobile app with Kotlin Multiplatform Mobile (KMM).
This is an example of the folder structure in a Kotlin Multiplatform Mobile (KMM) project.
- shared: Contains shared code and resources.
- src: Shared Kotlin code.
- commonMain: Shared Kotlin code.
- Platform.kt: expect class Platform()
- greeting.kt: fun greeting(): String
- Encryption.kt: fun encryptAes(): String
- Hanoi.kt: fun setDiskNum(): Int, fun getTotalStepNum(): Int, fun getDiskDistribution(step: Int): Array<MutableList>
- androidMain
- Platform.kt: actual class Platform()
- iosMain
- Platform.kt: actual class Platform()
- commonMain: Shared Kotlin code.
- src: Shared Kotlin code.
Three examples on android(left) and iOS(right).









