Skip to content

mobidroid92/Compose-Multiplatform-Demo

Repository files navigation

Compose Multiplatform Demo

This project is a Kotlin Multiplatform Mobile(KMM) demo that uses Compose to write a fully shared code between Android and Ios including UI.

Becuase UI is 100% shared across platforms(Zero code written on IOS project), we have some limitations, like: we don't have access to regular Android api's/libraries like: ViewModel, Navigation, Hilt, Toast....

App Content

This app will show a list of characters (Name and Image) of the television show Rick and Morty.

This app has the following functionalities:

  • Pagination by page number
  • Pull to refresh.
  • Loading item inside the list during the api request.
  • Error item inside the list if api request failed that include a retry button.
  • VersionCatalog to manage dependencies.
  • Multiplatform resources.

Setup

Before you run this project, use the KDoctor tool to ensure that your development environment is configured correctly:

  1. Install KDoctor with Homebrew:

    brew install kdoctor
    
  2. Run KDoctor in your terminal:

    kdoctor
    

    If everything is set up correctly, you'll see valid output:

    Environment diagnose (to see all details, use -v option):
    [✓] Operation System
    [✓] Java
    [✓] Android Studio
    [✓] Xcode
    [✓] Cocoapods
    
    Conclusion:
      ✓ Your system is ready for Kotlin Multiplatform Mobile development!
    

Otherwise, KDoctor will highlight which parts of your setup still need to be configured and will suggest a way to fix them.

API Used In This Project

Libraries Used In This Project

Disclaimer

  • Project configurations is based on this template
  • Kindly note that Compose Multiplatform is still in alpha, so it is subject to change and may require manual migration proceess when it is released.

Let me know!

If you have any questions or suggestion please contact me on malbdour92@gmail.com

About

Find me on LinkedIn: https://www.linkedin.com/in/mobidroid92/