Skip to content

Instantly share code, notes, and snippets.

@Axxiss
Last active December 14, 2015 17:59
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 Axxiss/5126083 to your computer and use it in GitHub Desktop.
Save Axxiss/5126083 to your computer and use it in GitHub Desktop.
Daggers integration
public class MyApplication extends Application {
private ObjectGraph mObjectGraph;
@Override
public final void onCreate() {
super.onCreate();
mObjectGraph = ObjectGraph.create(new ServiceModule(this));
}
public final ObjectGraph getGraph() {
return mObjectGraph;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment