Previous post we set up the so called Pure Dependency Injection. Now let’s replace that with Dagger2 balantly.
Convert the composition roots into dagger’s
@Component to hold each
@Scopes and use it to scope the objects we want only 1 instance in the component.
Now it looks like this: