Skip to content

🎉 1.6.0 HiltBinding, SingletonBinding

Compare
Choose a tag to compare
@ghasemdev ghasemdev released this 06 Jun 13:24
· 99 commits to master since this release
  • 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