Retrieve Data from an API using MVVM Clean Architecture and Jetpack Compose

MVVM Clean Architecture Demo

Retrieve Data from an API using MVVM Clean Architecture and Jetpack Compose. It simply shows a list of movies fetched from an API.

Libraries

Android Jetpack

  • ViewModel Store UI-related data that isn’t destroyed on app rotations. Easily schedule asynchronous tasks for optimal execution.

  • Lifecycle Create a UI that automatically responds to lifecycle events.

  • DataBinding Declaratively bind observable data to UI elements.

  • LiveData Build data objects that notify views when the underlying database changes.

HTTP

  • Retrofit2 Type-safe HTTP client for Android and Java by Square, Inc.

Image

  • Coil An image loading library.

Coroutines

  • Kotlin Coroutines Coroutines is a rich library for coroutines developed by JetBrains. It contains a number of high-level coroutine-enabled primitives that this guide covers, including launch, async and others.

DI

  • Dagger Hilt limit your project’s complexity as it scales up.

GitHub

View Github