vendredi 6 mars 2020

apply Clean Architecture principles to recycler view pagging with Adapter Design Patterns and Jetpack Pagging

I want to build an app following clean architecture principles. There is a recycler view with pagination which asks data in the domain layer and domain gets from the Data layer as List<ToiletPaipers>. I want to use Pagging lib from Jetpack, but it returns

PaggedList<ToiletPaipers>

Since Data and Domain layers should not be bound to any platform or frameworks I don't want to include them in these layers. How to add Jetpack's lib with Adapter Desing Pattern without changing the Domain layer?

my source code

Aucun commentaire:

Enregistrer un commentaire