https://kotlinlang.org logo
#android-architecture
Title
# android-architecture
s

smilecs

01/19/2019, 10:23 AM
should the data source operate by implementing interfaces defined in the repository
g

ghedeon

01/19/2019, 10:45 AM
imho, you won't gain much with interfaces there. Just inject it directly into Repository implementation.
s

smilecs

01/19/2019, 10:48 AM
alright, thanks.. will explore this option
s

sngrekov

01/20/2019, 9:07 AM
IMHO it depends. Sometimes it's handy to make cache in memory implementation and start to use it, and later to replace it with sqlite implementation, this is a good fit interface approach. But if you know that you won't have another implementations, for backend for instance, then no need for excessive interfaces.