Koin: Modules, single vs. factory. Koin is a pragmatic, lightweight dependency injection framework for Kotlin. Unlike Dagger/Hilt, which generate a dependency graph at compile time via annotation processing, Koin is a pu…
ReadKoin: ViewModels, Scopes & Testing. ViewModel Injection on Android. val appModule = module { viewModel { ProfileViewModel(get()) } } class ProfileFragment : Fragment() { private val viewModel: ProfileViewModel by viewMod…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever