WIP dagger part 2 update

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-03-04 19:15:25 +05:30
parent c02ac41be5
commit 52b6271e47
1 changed files with 4 additions and 1 deletions

View File

@ -155,13 +155,16 @@ object CounterScreenModule {
@Component(modules = [AppModule::class])
interface AppComponent {
fun getCounter(): Counter
fun counterScreenComponent(counterScreenModule: CounterScreenModule) : CounterScreenComponent
}
@WarriorScreenScope
@Subcomponent(modules = [CounterScreenModule::class])
interface CounterScreenComponent {
fun inject(counterActivity: CounterActivity)
@Subcomponent.Factory
interface Factory {
fun create()
}
}
```