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
CLOVIS
12/01/2022, 2:03 PM
There's no right or wrong answer. It depends on what you like.
a
Alex Acosta
12/01/2022, 3:01 PM
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.