How strict you are with Clean Architecture when it...
# android-architecture
g
How strict you are with Clean Architecture when it comes to SharePreferencies? Do you go full clean mode, and create usecases for every flag, like
SetShowTutorial
,
IsShowTutorial
, that lead to
Repository
, that knows how to read/write flags from SP?
d
I think Clean is more for the business logic. This sounds more like a presentation layer concern only.
I love the idea you are proposing but I think it has nothing to do with Clean.
I guess it ultimately depends on how much of the system you want to be considered as part of the core application.
g
Agree, common sense over the process. Decided that it would be an overkill to do it à la carte with all the usecases and settled with an
AppSettings
interface. Seems like I'm not the first one: https://github.com/android10/Android-CleanArchitecture/issues/162