Skip to content

Instantly share code, notes, and snippets.

@ibrahimsn98
Last active August 19, 2018 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibrahimsn98/adbaad79d5c6311d2c6804289578a9ac to your computer and use it in GitHub Desktop.
Save ibrahimsn98/adbaad79d5c6311d2c6804289578a9ac to your computer and use it in GitHub Desktop.
android-mvvm-with-dagger-2
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