Skip to content

Instantly share code, notes, and snippets.

@mohak1712
Created June 18, 2018 11:20
Show Gist options
  • Save mohak1712/76398a3f1fa602593c62f172535e6a65 to your computer and use it in GitHub Desktop.
Save mohak1712/76398a3f1fa602593c62f172535e6a65 to your computer and use it in GitHub Desktop.
public class MyTestingApp extends Application {
ApplicationComponent applicationComponent;
@Override
public void onCreate() {
super.onCreate();
}
public ApplicationComponent getComponent() {
if (applicationComponent == null) {
applicationComponent = DaggerApplicationComponent.builder()
.applicationModule(new ApplicationModule(this))
.build();
}
return applicationComponent;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment