kmp-movie
kmp-movie copied to clipboard
KMP Movie 📱 app for Android, iOS, Web and desktop built with Compose Multiplatform (KMP, CMP) and MVVM Architecture recommended by Google.
Movie World (Compose Multiplatform)
Movie World app using The Movie DB built with Compose Multiplatform and MVVM architecture.
Platform
- iOS
- Android
- Desktop
Main Features
- Movie List
- Movie Search
- Movie Detail
- Navigation
- Bottom Navigation
Architecture
- MVVM Architecture (Model - ComposableView - ViewModel)
Built With 🛠
- Compose Multiplatform - Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces.
- PreCompose - Compose Multiplatform Navigation && State Management
- Ktor Client - Ktor includes a multiplatform asynchronous HTTP client, which allows you to make requests and handle responses.
- kotlinx.serialization - Kotlin multiplatform / multi-format reflectionless serialization
- Coroutines - For asynchronous and more.
- Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
- Image Loader - Compose Image library for Kotlin Multiplatform.
- Android Studio - Android Studio is the official Integrated Development Environment (IDE) for Android app development.
- XCode - Xcode 14 includes everything you need to develop, test, and distribute apps across all Apple platforms.
Project structure
This Compose Multiplatform project includes three modules:
shared
This is a Kotlin module that contains the logic common for both Android and iOS applications, the code you share between platforms.
This shared module is also where you write your Compose Multiplatform code. In shared/src/commonMain/kotlin/App.kt
, you can find the shared root @Composable
function for your app.
It uses Gradle as the build system. You can add dependencies and change settings in shared/build.gradle.kts
. The shared module builds into an Android library and an iOS framework.
androidApp
This is a Kotlin module that builds into an Android application. It uses Gradle as the build system. The androidApp
module depends on and uses the shared module as a regular Android library.
iosApp
This is an Xcode project that builds into an iOS application. It depends on and uses the shared module as a CocoaPods dependency.
Acknowledgements
- JetBrains/compose-multiplatform-ios-android-template: For Starter template
👨 Developed By
Mehedi Hassan Piash
License
Copyright 2023 piashcse (Mehedi Hassan Piash)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.