android-clean-architecture-boilerplate
android-clean-architecture-boilerplate copied to clipboard
Where should the data model for sending between activity/fragment stay.
I have a question the data model that are using for sending between activity/fragment live?
the data model most likely domain's data model but it's can be serialized/Parcelized
Sorry for late answer... I assume that you're talking about parcelable/serializable model objects which you will use only to transfer data between activities/fragments. As they contains limited data which won't be used to update/save model locally/remotely (so it is related only to presentation
layer) I would add this there (I mean: in presentation
module).
Think also about reusing once created viewModel which would have original data and which could be shared between fragments or activities (dependency injection thing ;-) ).
Ok, thank you.