Skip to content

Instantly share code, notes, and snippets.

@alejandro-rios
Last active September 13, 2019 23:50
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 alejandro-rios/d469fad5dfc35a3e55610ce70029a005 to your computer and use it in GitHub Desktop.
Save alejandro-rios/d469fad5dfc35a3e55610ce70029a005 to your computer and use it in GitHub Desktop.
Di Basic Example
// Reference taken from
// https://www.raywenderlich.com/262-dependency-injection-in-android-with-dagger-2-and-kotlin
class Parent {
private val child = Child()
}
class Parent(private val child: Child)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment