You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the replaces attribute from a single class to an array. This gives the API more flexibility and avoids redundant classes. E.g. one Dagger module with several binding and provider methods may wish to replace multiple other Dagger modules.
Introduce the new @ContributesBinding annotation. This annotation allows you to contribute binding methods without actually writing a Dagger module.
interfaceAuthenticator
@ContributesBinding(AppScope::class)
classRealAuthenticator @Inject constructor() : Authenticator
// The generated and automatically included Dagger module would look similar like this:
@Module
@ContributesTo(AppScope::class)
abstractclassAuthenticatorModule {
@Binds abstractfunbindRealAuthenticator(authenticator:RealAuthenticator): Authenticator
}
Support nested classes for contributed Dagger modules and component interfaces if the outer class uses a different scope #45.