Skip to content

Instantly share code, notes, and snippets.

@goofyahead
Created April 4, 2017 07:35
Show Gist options
  • Save goofyahead/9cc32359c0cce38b5999aef7e0351ac7 to your computer and use it in GitHub Desktop.
Save goofyahead/9cc32359c0cce38b5999aef7e0351ac7 to your computer and use it in GitHub Desktop.
public class TestApplication extends Application implements HasDispatchingActivityInjector {
@Inject
DispatchingAndroidInjector<Activity> dispatchingActivityInjector;
@Override
public void onCreate() {
super.onCreate();
System.out.println("HEY IM UP TESTING APPLICATION COMPONENT ==========================+>");
DaggerTestApplicationComponent.create().inject(this);
}
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
return dispatchingActivityInjector;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment