Dagger Hilt - What is Dependency Injection in Android!

Опубликовано: 28 Октябрь 2024
на канале: Charfaoui Younes
7,906
130

💻 Join my new Refactoring Legacy Code course now: https://bit.ly/47dzTLT
📩 Sign up for my new newsletter here 👉 https://bit.ly/YCNewsletter102

Join my Community on Discord:
  / discord  

In this video, we will see what dependency injection is, its advantages, and why we need to use it in our software development project and in Android, preparing to get started with Hilt.

Hilt is a new dependency injection tool built on top of dagger2 for android.

🔗 Links:
Android Documentation - https://developer.android.com/trainin...
Hilt Documentation - https://dagger.dev/hilt/
Codelab - https://developer.android.com/codelab...

⏰ Chapters:
0:00 - Intro
0:33 - What is Dependency Injection?
2:28 - House & Alert System Example
3:44 - View Model & Repository Example
4:50 - Automated Dependency Injection
6:00 - Benefits of Dependency Injection


👨🏽‍🏭 Who I am:
I'm Younes Charfaoui, a Junior Software Engineer and an Android Developer. I make videos about Android development, Technology, and Productivity for software engineers.

😋 Be My Friend:
💻 GitHub - https://github.com/Younes-Charfaoui/
🐦 Twitter -   / charfaouiyounes  
📑 Medium -   / mxcsyounes  
📷 Instagram -   / charfaoui.younes  
🌍 My website - https://www.charfaouiyounes.com