Description
Hello @hitherejoe ,
I have a question about dependencies. Currently, Remote module depends on Data, and Data module depends on Domain and because of that If we want to get information from Remote with Models that actually should be only in Remote we have to create a duplication of that model at each layer.
Example:
We have Remote module for the API that has method getRepositoryByPlatform(platform: Platform)
and our Platform
is simple Enum class enum class Platform { IOS, ANDROID }
without duplication Platform
class would be in Domain layer. But in this case if we need to specify @SerializedName
for example, we would need to add Gson
dependency to Domain layer, that looks incorrect from my point of view. And because of that creating Platform
representation model at each layer looks like an overhead to me.
So the question is how do you handle such cases?