TOA 9: Adding Hilt To Jetpack Compose Applications

Опубликовано: 05 Февраль 2026
на канале: Adam McNeilly
1,769
41

In this live stream, we wrap up the work for our login screen by talking about Hilt and how it sets up our core dependency injection for the application. We use this to create the dependencies required by our ViewModel, and then to create the ViewModel itself when needed.

Once we have that setup, we use it to display our ViewModel inside the MainActivity, so that we can begin manual testing of our login screen.

---
Watch the development of TOA live on Twitch:   / adammc331  
Star the repository on GitHub: https://github.com/adammc331/toa

Follow me on Twitter for more updates:   / adammc331  
---
Introduction: 0:00
Hilt Setup: 11:00
Creating Dependencies: 17:00
Displaying LoginScreen From MainActivity: 46:30