Library Dagger 2 Dependency Injection in Applications

Create Module Class and Singleton annotation for Object

Request Dependencies in Dependent Objects

Connecting Modules with Inject

Using Component Interface to Obtain Objects