Skip to content

Instantly share code, notes, and snippets.

@kirich1409
Created November 17, 2018 17:29
Show Gist options
  • Save kirich1409/3c73adcc7ac79021b1c9b21f719bed3a to your computer and use it in GitHub Desktop.
Save kirich1409/3c73adcc7ac79021b1c9b21f719bed3a to your computer and use it in GitHub Desktop.
Как происходит доставка зависимостей в Fragment сейчас
class MainFragment : Fragment() {
// The dependency isn't final and private
@Inject
lateinit var sampleDep: SampleDependency
override fun onAttach(context: Context) {
super.onAttach(context)
// Inject dependencies with Dagger 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment