ihorvitruk / buddysearch

Android Clean Architecture example using MVP, Rx: RxJava, RxAndroid, Dagger 2, Data Binding, Retrolambda, Firebase Database, Firebase Auth, Firebase Messaging (FCM), Realm
Apache License 2.0
208 stars 44 forks source link

DaggerAppComponent #3

Closed Mfrenchy77 closed 7 years ago

Mfrenchy77 commented 7 years ago

In module presentation, class App, your method intializeInjector()

You have appComponent = DaggerAppComponent

in the import statements it shows its supposed to be in the

import com.buddysearch.android.presentation.di.component.DaggerAppComponent;

only see ActivityComponent and AppComponent

ihorvitruk commented 7 years ago

According to Dagger 2 User Guide:

Dagger 2 is the first to implement the full stack with generated code. The guiding principle is to generate code that mimics the code that a user might have hand-written to ensure that dependency injection is as simple, traceable and performant as it can be.

It means, that if no compile errors or DI issues are found in your project, then your DaggerAppComponent will be generated automatically after you run (build) the project for the first time. Let me know if you have some troubles with it.

Mfrenchy77 commented 7 years ago

Thanks again!

ihorvitruk commented 7 years ago

You are welcome! Please let me know if you need some help. Also, pay attention, that this repository also has develop branch that has newer updates than master. But finally in nearest future, develop will be merged into master as a new application release.

Mfrenchy77 commented 7 years ago

Yeah, I was checking that out. I am using firebase create and sign in with email and password. I saw you were heading in that direction too.