Created
September 14, 2018 15:13
-
-
Save ValeryPonomarenko/b5c0f9f8f25e48ef03d2a5c0693569d2 to your computer and use it in GitHub Desktop.
Lifecycle aware dagger components
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
class AnotherFragment : Fragment(), IHasComponent { | |
//code... | |
override fun getComponent(): AnotherFeatureComponent = | |
DaggerAnotherFeatureComponent.builder() | |
.appDependency(InjectionManager.instance.findComponent()) | |
.build() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment