If you’ve ever used Hilt in a Jetpack Compose app, you’ve probably written code like this: Kotlinclass MyRepository @Inject constructor( @ApplicationContext private val context: Context ) And then paused for a second and thought: “Okay… but where is this @ApplicationContext coming from?” “Who creates it?” “And how does Hilt magically inject it at runtime?” This article answers...
Membership Required
Already a member? Log in here
