Created
November 12, 2016 09:59
-
-
Save maydin/dceb2fd287d6b410921cb8a759d49253 to your computer and use it in GitHub Desktop.
Extended Application class
This file contains 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 App extends Application { | |
UserComponent userComponent; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
userComponent = DaggerUserComponent.builder().userModule(new UserModule()).build(); | |
} | |
public UserComponent getUserComponent() { | |
return userComponent; | |
} | |
@VisibleForTesting | |
public void setUserComponent(UserComponent userComponent) { | |
this.userComponent = userComponent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment