Let’s look at the
PresentationComponent more closely.
One strange thing is that
ActivityComponent as its dependency, and it
@Provide all the objects provided by
This is rather ugly, can we do something about it?
The answer is Component Dependencies.
The idea is that we can make
PresentationComponent depends on
ActivityComponent. That way,
PresentationComponent automatically gets access to all the objects exposed by
After this change, it looks like this: