Skip to content

Jetpack Compose + Coroutines Flow + MVVM + Clean + Hilt + Room

License

Notifications You must be signed in to change notification settings

carlosgub/JetCoMovie-App-

Repository files navigation

Jetpack Compose Movie App (Compose + Flow + Hilt + Room + MVVM + Clean + Retrofit)

image

This is an example of an Android App who uses Jetpack Compose to draw the UI, Kotlin Coroutines Flow to retrieve a list of the recent movies from https://www.themoviedb.org.

How use this app

image

V2

  • Add the Movie Detail View.
  • Add logic to the booking buttom in the Movie Detail View save the movie in the database to later use this database for the Tickets View.

V3

  • Add the Search View.
  • Add the Tickets View.

V4

  • Create text styles and dimens for the views and do some refactor.
  • Add light/dark theme (change the theme in your device settings)

V5

  • Add klint and detekt to the project
  • Add Github Action to the repository to run klint and detekt
  • Add Unit test.

V6

  • Add Jacoco to review code test coverage and more unit test
  • Add support to different Screens.

V7

  • Add a "Login" in the Profile View.
  • Add pagination to the Search Screen.

Features

Movie Screen

movie_screen.mp4

Search Screen

search_screen.mp4

Ticket Screen

ticket_screen.mp4

Movie Detail Screen

movie_detail_screen.mp4

Light/Dark Theme

light_dark.theme.mp4

Tech Stack

  • Kotlin - Official programming language for Android development.
  • Jetpack Compose - Android’s modern toolkit for building native UI.
  • Coroutines and Flow - Official Kotlin's tooling for performing asynchronous work.
  • Android Jetpack - Jetpack is a suite of libraries to help developers build state-of-the-art applications.
    • ViewModel - The ViewModel is designed to store and manage UI-related data in a lifecycle conscious way.
    • Room - The Room library provides an abstraction layer over SQLite to allow for more robust database access.
    • Dagger Hilt - Hilt is a dependency injection library for Android.
  • Accompanist - A collection of extension libraries for Jetpack Compose.
  • Retrofit - A library for building REST API clients.
  • Coil - An image loading library.
  • Detekt - A static code analysis library for Kotlin.
  • Ktlint (Kotlinter) - A library for formatting Kotlin code according to official guidelines.
  • Twitter Jetpack Compose Rules
  • Gradle's Kotlin DSL - Gradle’s Kotlin DSL is an alternative syntax to the Groovy DSL with an enhanced editing experience.

References

Contributors ✨


Carlos Ugaz