Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 2.34 KB

File metadata and controls

63 lines (45 loc) · 2.34 KB

KMM-example

example of a cross-platform mobile app with Kotlin Multiplatform Mobile (KMM).

KMM Folder Structure

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()

Three examples on android(left) and iOS(right).

Home

 

1.OS version

 

2.AES encryption

 

3.Hanoi tower