WIP dagger part 2 update
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
c02ac41be5
commit
52b6271e47
|
@ -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()
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue