Jason Ankers
03/15/2021, 2:49 AMval AuthenticatedComponent.entryPoint: AuthenticatedComponentEntryPoint
get(): AuthenticatedComponentEntryPoint {
return EntryPoints.get(this, AuthenticatedComponentEntryPoint::class.java)
}
And then I can inject with:
private val myRepository = authManager.component!!.entryPoint.getMyRepository()
Edit: Just realized EntryPoints are specific to Hilt and this is a dagger channelJeremy
03/15/2021, 11:47 PMJeremy
03/15/2021, 11:51 PMJason Ankers
03/16/2021, 1:35 AMAuthenticatedComponent
is a child of SingletonComponent
Jeremy
03/16/2021, 8:54 PMEntryPointAccessors.fromApplicaton(context, class)
see javadoc