Skip to content

danysantiago/hilt-install-binding

Repository files navigation

Hilt Install Binding Extension

A Hilt extension that reduces a bit of boilerplate for single implementation bindings. Example usage:

@InstallBinding(SingletonComponent::class)
class AuthenticatorImpl @Inject constructor(): Authenticator

the above example is equivalent to:

@Module
@InstallIn(SingletonComponent::class)
interface BindAuthModule {
  @Binds
  fun bind(impl: AuthenticatorImpl): Authenticator
}

Disclaimer

This is not an official Google product.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published