Created
June 10, 2020 05:14
-
-
Save husaynhakeem/d70868037cff3888b34f25d7eed97611 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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