android10 / android10/Android-CleanArchitecture
What about things like AppSettings?
- Dominant language
- Java
- Stars
- 15.5k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 30d
Description
Good Day! I have some difficulties with stuff like isAuthorized(), isFirstStart(), etc ... .
In particular isAuthorized is a flag indicating, that the user has been logged in. Which solution will be better?
1. Should we write an interactor and access AppSettingsRepository?
2. Or simply consider AppSettings as a kind of "ui setting" which lives in presentation layer. Therefore we can define, for example, an AppSettings interface and inject in particular AppSettingsImpl (wrapper-model built using SharedPreferences), which can be accessed even in "ui thread"?
Thanks in advance!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.