Skip to content

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

Notifications You must be signed in to change notification settings

alexmamo/SwipeToDelete

Repository files navigation

SwipeToDelete - 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 a record from Firestore on a RecylerView left/right swipe?

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages