A ready-to-use boilerplate for Kotlin Multiplatform Mobile applications with Android and iOS targets.
- Kotlin Multiplatform Mobile setup
- Android application with Jetpack Compose
- iOS application with SwiftUI
- Shared Kotlin code for business logic
- Gradle build system
androidApp/
: Android application moduleiosApp/
: iOS application moduleshared/
: Shared Kotlin code module
- Android app customization: Modify files in the
androidApp
module - iOS app customization: Modify files in the
iosApp
module - Shared code: Update the
shared
module
To install all project dependencies, run:
./gradlew build
To run the Android app on an emulator or connected device:
./gradlew :androidApp:installDebug
To compile the Android APK:
./gradlew :androidApp:assembleRelease
The APK will be generated in androidApp/build/outputs/apk/debug/
.
To run the iOS app, open the Xcode project in the iosApp
folder and run it from there.
To compile the iOS app, use Xcode to build the project. You can also use the following command to build from the command line:
xcodebuild -project iosApp/iosApp.xcodeproj -scheme iosApp -configuration Debug build
π Copyright Β© 2024 tooniez.
This project is MIT licensed.