Last active
December 14, 2015 17:59
-
-
Save Axxiss/5126083 to your computer and use it in GitHub Desktop.
Daggers integration
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 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