Skip to content

Instantly share code, notes, and snippets.

@jcaiqueoliveira
Last active January 14, 2017 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcaiqueoliveira/1041b0fcdc71b140bc4e36b6527f9812 to your computer and use it in GitHub Desktop.
Save jcaiqueoliveira/1041b0fcdc71b140bc4e36b6527f9812 to your computer and use it in GitHub Desktop.
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