Skip to content

alexmamo/MultiSelectToDelete

Repository files navigation

MultiSelectToDelete - Clean Architecture with MVVM.

It's an aplication build using Kotlin as an example on how to remove a record from a Cloud Firestore database, on a RecyclerView left/right swipe.

To keep things simple, the app uses a very simple database schema that look like in the image below:

alt text

For getting the data, the app uses LiveData and ViewModel together with Kotlin Coroutines in a MVVM Architecture Pattern. For dependency injection the app uses Hilt for Android. Besides that, the app also uses data binding to bind UI components in the layouts.

To make this app work, follow the instructions given in the official documentation regarding how to add Firebase to your project. Add the JSON file in your app folder, add some dummy products and see it working.

This repo is the source code of the this article: How to delete multiple records from Firestore using RecyclerView multi-selection?

See it on youtube: https://www.youtube.com/watch?v=55KrkUJrwOo

About

MultiSelectToDelete app is built with Cloud Firestore and Kotlin using MVVM Architecture Pattern.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages