See more
To incorporate CoreComponent in another component it is necessary to provide it during component creation. Let’s see how this works within SearchComponent:
CoreComponent
SearchComponent
The instantiated core component can now be accessed from anywhere within the app where there’s a context available by calling PlaidApplication.coreComponent(context).
PlaidApplication.coreComponent(context)
In order to share Dagger components, they need to be made accessible throughout the application. Within Plaid we decided to make our CoreComponent accessible via the Application class.