Last active
February 24, 2020 22:42
-
-
Save markchristopherng/74bb6a3078d7dabc8125b005b67e8596 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Module | |
| interface DaggerModule { | |
| @Binds | |
| fun provideTimeService(impl: TimeServiceImpl): TimeService | |
| @Binds | |
| fun provideGreetingSersvice(impl: GreetingServiceImpl): GreetingService | |
| } |
Also, if replace abstract class with interface it will allow to drop repetitive abstract on methods
Author
thanks for that, I have updated the example to use an interface
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and
and
and