android10 / android10/Android-CleanArchitecture

Q: Should we make DataMapper in presentation layer singleton or contains static functions?

Open
#210 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
15.5k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

I'm new to this Android CleanArchitecture. Also have new knowledge about DI and Android related issues.

As I see, DataMapper classes in data layer are singletons.
I want to know why is DataMapper classes in presentation layer PerActivity, not Singleton? how about using static functions in Mappers?

Thanks,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.