Skip to content

Instantly share code, notes, and snippets.

@husaynhakeem
Created June 10, 2020 05:14
Show Gist options
  • Save husaynhakeem/d70868037cff3888b34f25d7eed97611 to your computer and use it in GitHub Desktop.
Save husaynhakeem/d70868037cff3888b34f25d7eed97611 to your computer and use it in GitHub Desktop.
class MyInitializer: Initializer<MyDependency> {
override fun create(context: Context): MyDependency {
val myDependency: MyDependency = /* Run initialization/configuration logic */
return myDependency
}
override fun dependencies(): List<Class<out Initializer<*>>> {
return listOf(AnotherDependencyInitializer::class.java,
YetAnotherDependencyInitializer::class.java)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment