android10 / android10/Android-CleanArchitecture

What about things like AppSettings?

Open
#162 12 comments 6 reactions 0 assignees View on GitHub
discussion question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.