Created
August 13, 2015 00:03
-
-
Save patrykpoborca/842ac2e1272e24bfd400 to your computer and use it in GitHub Desktop.
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 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