Skip to content

Instantly share code, notes, and snippets.

@patrykpoborca
Created August 13, 2015 00:03
Show Gist options
  • Save patrykpoborca/842ac2e1272e24bfd400 to your computer and use it in GitHub Desktop.
Save patrykpoborca/842ac2e1272e24bfd400 to your computer and use it in GitHub Desktop.
public class CleanArchitectureApplication extends Application{
private static BaseComponent sBaseComponent;
@Override
public void onCreate() {
super.onCreate();
ApplicationComponent applicationComponent = DaggerApplicationComponent
.builder()
.applicationModule(new ApplicationModule(this))
.build();
sBaseComponent = DaggerBaseComponent.builder()
.applicationComponent(applicationComponent)
.build();
}
public static BaseComponent getBaseComponent(){
return sBaseComponent;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment