4min chapter

Fragmented - Android Developer Podcast cover image

246 - Dependency Injection: Kotlin Inject with Fred Porciúncula

Fragmented - Android Developer Podcast

CHAPTER

How to Use Vanilla Dagger in Testing

There's no helpers to replace modules like you can do with Hilt or Envil. So again, we're back to vanilla dagger. And that means you just need to put some extra effort when designing your components. When it comes to unit tests, again, nothing to help you with that. Some people like to be able to get things from the graph in a unit test. But yeah, if you want to use Kotlin check and unit tests, yeah, I wouldn't go that way basically.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode