Hi all, I have a KMM on demand delivery app on Swi...
# multiplatform
d
Hi all, I have a KMM on demand delivery app on Swift and Kotlin. For the repo, should I use dependency injection or singleton class?
c
There's no right or wrong answer. It depends on what you like.
a
I normally opt to use dependency injection, which also depends on how your architecture is defined, in MVVM I normally use factories to generate VMs and dependency injection for repositories inside.