Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 26, 2017 11:50
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 vestrel00/bd1f79bf59fdfc564f945cf58b732b48 to your computer and use it in GitHub Desktop.
Save vestrel00/bd1f79bf59fdfc564f945cf58b732b48 to your computer and use it in GitHub Desktop.
A: 3 - App.java
public class App extends Application implements HasActivityInjector {
@Inject
DispatchingAndroidInjector<Activity> activityInjector;
@Override
public void onCreate() {
super.onCreate();
DaggerAppComponent.create().inject(this);
}
@Override
public AndroidInjector<Activity> activityInjector() {
return activityInjector;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment