From 52b6271e47f18ea6a47fb4a4177a8297a8e87d78 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 4 Mar 2020 19:15:25 +0530 Subject: [PATCH] WIP dagger part 2 update Signed-off-by: Harsh Shandilya --- content/posts/dagger-the-easy-way--part-2.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/posts/dagger-the-easy-way--part-2.md b/content/posts/dagger-the-easy-way--part-2.md index 0964baf..ac06d79 100644 --- a/content/posts/dagger-the-easy-way--part-2.md +++ b/content/posts/dagger-the-easy-way--part-2.md @@ -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() + } } ```