/android--kotlin-reddit-demo

Kotlin MVVM Demo Application

Primary LanguageKotlin

Reddit Demo

Sample Android Kotlin Recycler View demo fetching data from Reddit Android.

Architecture

  • The app is entirely written in Kotlin.
  • Gradle scripts are written in Kotlin Gradle DSL.
  • Koin is used for Dependency Injection.
  • Threading is handled by Coroutines.
  • The Activity has its own Android ViewModel that emits actions via LiveData.
  • Remote Data: Network calls are handled by Retrofit 2.
  • Local Data: There is a local Room Database for persisting fetched posts. There is also an extra table created for handling Paging2.
  • Data loading and writing is abstracted behind Repositories.
  • Business logic is handled by reusable Interactors.

Dependencies