The BEST android courses in the world: codingwithmitch.com/
In this video I show two different ways to provide objects as dependencies using Hilt. We use the Provides annotation and the Inject annotation. The Retrofit instance is injecting into the repository and the repository is injected into the viewmodel.
Code: github.com/mitchtabian/MVVMRe...
Follow me:
Instagram: / codingwithmitch
Twitter: / mitch_tabian
.
.
Негізгі бет Ғылым және технология Hilt - Providing Retrofit Instance and Repository
Пікірлер: 98