Last active
January 14, 2017 01:46
-
-
Save jcaiqueoliveira/1041b0fcdc71b140bc4e36b6527f9812 to your computer and use it in GitHub Desktop.
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 MainApplication extends android.app.Application { | |
private static ComponenteExemplo component; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
initDagger(); | |
} | |
private void initDagger() { | |
component = DaggerComponenteExemplo | |
.builder() | |
.build(); | |
} | |
public static ComponenteExemplo getComponent() { | |
return component; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment