Closed srigiridharan closed 6 years ago
heyyy... The issue got resolved. The following changes on the existing code,
@RequiresPresenter(BaseDrawerPresenter.class)
public class BaseDrawerActivity extends NucleusAppCompatActivity<BaseDrawerPresenter>
implements NavigationView.OnNavigationItemSelectedListener {...
activityComponent = DaggerActivityComponent.builder()
.activityModule(new ActivityModule(this))
.applicationComponent(((AppApplication) getApplication()).getAppComponent())
.build();
activityComponent.inject(BaseDrawerActivity.this);
but still I cant understand why my activityModule says deprecated.
@konmik can you please tell me why the module say unused when we building with corresponding component.
I have no idea. We could try to find the problem (I need a minimal size example with reproduced problem), but I suspect you already did it, so I'm closing it.
Thank you so much for the Nucleus. It is great library for MVP. Now I am trying to integrate Dagger2 with Nucleus,So the issue is when i trying to Inject my activityComponent with the BaseDrawerActivity Dagger compiler throwing the error like,
My component
How can I inject my BaseDrawerActivity with ActivityComponent ?