This is a sample project that demonstrates the usage of Compose Multiplatform UI framework with Kotlin Multiplatform Mobile (KMM) targetting Android and iOS. The app displays a grid of network images.
To run this project, you'll need the following:
- Android Studio (latest version)
- Xcode (for iOS development)
- Kotlin plugin for Android Studio
-
Clone this repository to your local machine.
git clone https://github.com/raseln/compose-multiplatform.git
-
Open the project in Android Studio.
-
Set up your Android and iOS device/emulator/simulator.
-
Build and run the project.
The project follows the standard Kotlin Multiplatform Mobile (KMM) structure, with the following notable files and directories:
-
shared
: Contains the shared code between Android and iOS platforms.src/commonMain
: Contains the common code, including the Compose-based UI implementation.src/androidMain
: Contains the Android-specific code.src/iosMain
: Contains the iOS-specific code.
-
android
: Contains the Android-specific configuration files. -
ios
: Contains the iOS-specific configuration files. -
build.gradle.kts
: The main Gradle build script for the project.
This project utilizes the following dependencies:
- Kotlin Multiplatform Mobile (KMM)
- Compose Multiplatform UI
- Image Loader for Compose Multiplatform
For more details about the dependencies and their versions, please refer to the build.gradle.kts
file.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. Please ensure that your contributions adhere to the project's coding style and guidelines.
This project is licensed under the MIT License.
This project is based on the concepts and frameworks provided by Kotlin Multiplatform Mobile (KMM) and Jetpack Compose.
Here are some resources that might be helpful for learning more about Compose Multiplatform UI and KMM: