All Projects → fabioCollini → Architecturecomponentsdemo

fabioCollini / Architecturecomponentsdemo

Licence: apache-2.0
Kotlin demo project that uses some Android Architecture Components (ViewModel and LiveData) with Dagger 2 and Coroutines

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Architecturecomponentsdemo

Movieapp Clean Architecture
Learning Project (Movie App) For Applying Android Architecture Components And Clean Architecture Using MVVM With Kotlin
Stars: ✭ 123 (-54.28%)
Mutual labels:  coroutines, viewmodel, architecture-components, livedata
Simple-Notes-Kotlin-App
✍️ Simple Note Making App use mvvm architecture , dagger , coroutines and navigation component. Features includes 🗒️ create , edit and ❌ delete notes
Stars: ✭ 40 (-85.13%)
Mutual labels:  coroutines, viewmodel, livedata, architecture-components
Superhero-App
🦸🏻‍♂️🦹🏻‍♀️Superhero app built with Kotlin, ViewModel, LiveData, ViewBinding, Room, and Hilt
Stars: ✭ 27 (-89.96%)
Mutual labels:  coroutines, viewmodel, livedata, architecture-components
GitKtDroid
A sample Android application📱 built with Kotlin for #30DaysOfKotlin
Stars: ✭ 53 (-80.3%)
Mutual labels:  coroutines, viewmodel, architecture-components
Dagger-Hilt-MVVM
Sample app that demonstrates the usage of Dagger Hilt with Kotlin & MVVM
Stars: ✭ 62 (-76.95%)
Mutual labels:  coroutines, viewmodel, livedata
Android-Mvi-Starter
Android MVI Starter application
Stars: ✭ 19 (-92.94%)
Mutual labels:  viewmodel, livedata, architecture-components
Jethub
Sample App with Jetpack components(LiveData, Navigation, ViewModel) + MVVM + coroutine + single activity
Stars: ✭ 224 (-16.73%)
Mutual labels:  coroutines, viewmodel, livedata
Sunset-hadith
Islamic app written with Kotlin, using KTOR + coroutines + flow + MVVM + Android Jetpack + Navigation component. Old version using RxJava + Retrofit + OKHttp
Stars: ✭ 26 (-90.33%)
Mutual labels:  coroutines, viewmodel, livedata
KotlinEverywhere
This application created for Kotlin Everywhere series as a codelab. It will show step by step Kotlin and Android Jetpack Components fundamentals. 🚀🚀
Stars: ✭ 52 (-80.67%)
Mutual labels:  coroutines, viewmodel, livedata
KTAndroidArchitecture
A Kotlin android architecture with Google Architecture Components
Stars: ✭ 33 (-87.73%)
Mutual labels:  viewmodel, livedata, architecture-components
DeezerClone
This Application using Dagger Hilt, Coroutines, Flow, Jetpack (Room, ViewModel, LiveData),Navigation based on MVVM architecture.
Stars: ✭ 81 (-69.89%)
Mutual labels:  coroutines, viewmodel, livedata
TeamManagerApp
A sample app structure using the MVVM architecture LiveData, RxJava, ViewModel, Room and the Navigation Arch Components.
Stars: ✭ 36 (-86.62%)
Mutual labels:  viewmodel, livedata, architecture-components
Restaurants
Restaurants sample app built with the new architecture components (LiveData, Room, ViewModel) and Dagger 2
Stars: ✭ 47 (-82.53%)
Mutual labels:  viewmodel, livedata, architecture-components
Paging-3-Sample
This app is created as a sample app which loads movies from Tmdb api and uses Paging 3 library to show it in a Recycler view.
Stars: ✭ 96 (-64.31%)
Mutual labels:  coroutines, viewmodel, architecture-components
Nytimes App
🗽 A Simple Demonstration of the New York Times App 📱 using Jsoup web crawler with MVVM Architecture 🔥
Stars: ✭ 246 (-8.55%)
Mutual labels:  coroutines, viewmodel, livedata
floppy
🧩 Handling and maintain your UI view component easily
Stars: ✭ 55 (-79.55%)
Mutual labels:  coroutines, viewmodel, livedata
Simple-Note-App-with-Online-Storage
✍️ Simple Note Making App use Sqllite Room 🧰 for caching the notes and 📥 Firebase Database for online storage
Stars: ✭ 42 (-84.39%)
Mutual labels:  coroutines, viewmodel, livedata
Kotlinjetpackinaction
🔥🔥 Kotlin Jetpack zero to hero. 新手到高手
Stars: ✭ 264 (-1.86%)
Mutual labels:  coroutines, viewmodel, livedata
Wanandroid
Kotlin+JetPack+协程实现的MVVM架构Wanandroid客户端
Stars: ✭ 197 (-26.77%)
Mutual labels:  coroutines, viewmodel, livedata
Galwaybus
Galway Bus Kotlin Multiplatform project using Jetpack Compose and SwiftUI
Stars: ✭ 220 (-18.22%)
Mutual labels:  coroutines, viewmodel, architecture-components

Android Architecture Components Demo

This is a Kotlin project that uses some Android Architecture Components (ViewModel and LiveData) with Dagger 2 and RxJava.

This project is a fork of official GithubBrowserSample, I converted it to kotlin and modified some architectural aspects to test ViewModel and LiveData features.

Main concepts

  • each ViewModel manages an immutable ViewState (implemented using a Kotlin data object)
  • a post will be available soon to explain the details of how the ViewModels and the UseCases manage the ViewStates
  • multi module project, thanks to Dagger Android the ui is splitted in multiple modules
  • Fragment args are managed using a companion object base class
  • JVM tests are written using Mockito and AssertK
  • Espresso tests are written using DaggerMock and Mockito
  • ViewModels are instantiated using a custom factory defined in Dagger application scope and replaced with a stub in Espresso tests
  • asynchronous tasks are managed using Coroutines (the rxjava branch contains the same example with RxJava singles instead of coroutines)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].