Created
June 18, 2018 11:20
-
-
Save mohak1712/76398a3f1fa602593c62f172535e6a65 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 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