Last active
August 19, 2018 15:36
-
-
Save ibrahimsn98/adbaad79d5c6311d2c6804289578a9ac to your computer and use it in GitHub Desktop.
android-mvvm-with-dagger-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseApplication extends DaggerApplication { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
} | |
@Override | |
protected AndroidInjector<? extends DaggerApplication> applicationInjector() { | |
ApplicationComponent component = DaggerApplicationComponent.builder().application(this).build(); | |
component.inject(this); | |
return component; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment