🎉 1.6.0 HiltBinding, SingletonBinding
- Add HiltBinding and SingletonBinding to generate hilt module for binding
@SingletonBinding
class FooImpl : Foo
interface Foo
generated code
@Module
@InstallIn(SingletonComponent::class)
@OriginatingElement(
topLevelClass = FooImpl::class
)
interface FooImplModule {
@Binds
@Singleton
fun bindFoo(
fooImpl: FooImpl
): Foo
}
- update dependencies version