Dagger 2 Deep Dive (33/55) - Swapping the mock GitHubApi for a Retrofit created implementation

Опубликовано: 16 Октябрь 2024
на канале: Brandon Gogetap
69
1

Now we’re set up to bring in GitHub API requests. In this lesson we use Retrofit to create an implementation of GitHubApi. Because we’re using dependency injection, we don’t need to make any changes in the AppRepository or our ViewModel. We’re just swapping an interface implementation and everything else should just work.

Project: https://github.com/bgogetap/GitHubBro...

This video is part of a series. See the full playlist here:    • Dagger 2 Deep Dive