Created
December 18, 2017 07:12
-
-
Save iammert/5e71271c449c7898e52265cc5795c1a8 to your computer and use it in GitHub Desktop.
AndroidSampleApp.java
This file contains hidden or 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 AndroidSampleApp extends Application implements HasActivityInjector { | |
@Inject | |
DispatchingAndroidInjector<Activity> activityDispatchingAndroidInjector; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
DaggerAppComponent | |
.builder() | |
.application(this) | |
.build() | |
.inject(this); | |
} | |
@Override | |
public DispatchingAndroidInjector<Activity> activityInjector() { | |
return activityDispatchingAndroidInjector; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment