Closed wahyupermadie closed 11 months ago
Currently in my existing project, I mostly use SubComponent for feature-related Screens and also I use Android Injector. For example
I am just curious how to deal with @MergeSubComponent, currently I'm trying with ContributesSubComponent like this and this is works
I have tried to use @MergeSubComponent but i got error on TestModule.provideTestScreenBuilder
TestModule.provideTestScreenBuilder
com.example.di.TestScreenComponent.Builder cannot be provided without an @Provides-annotated method.
Currently in my existing project, I mostly use SubComponent for feature-related Screens and also I use Android Injector. For example
Click Me
TestScreenSubComponent ``` @ScreenScope @Subcomponent(modules = []) interface TestScreenComponent : AndroidInjectorI am just curious how to deal with @MergeSubComponent, currently I'm trying with ContributesSubComponent like this and this is works
Click Me
TestScreenSubComponent ``` @ScreenScope @ContributesSubcomponent( scope = AppSubScope::class, parentScope = AppScope::class, ) interface TestScreenComponent : AndroidInjectorI have tried to use @MergeSubComponent but i got error on
TestModule.provideTestScreenBuilder
Click Me
TestScreenSubComponent ``` @ScreenScope @MergeSubComponent(AppSubScope::class) interface TestScreenComponent : AndroidInjector