Dependency injection is a core concept of software development. In this video, I’ll show you how you can apply DI in an Android app using Dagger-Hilt.
- 00:00 – What is dependency injection?
- 06:45 – Setting up Dagger-Hilt
- 08:25 – Setting up the structure
- 10:39 – Creating a module
- 17:20 – Injecting into ViewModels
- 20:15 – Injecting the ViewModel in the UI
- 21:40 – Creating the application class
- 24:05 – Two dependencies of same type
- 26:20 – Binding abstractions
- 29:58 – Field injection
- 31:28 – Lazy injection
Mobile App Development Best Practices – 21.09
iOS Closures vs. Delegates in Swift iOS How to use the new inspector SwiftUI view modifier How to create an...
2023 App Threat Report
In 2022 alone, the number of mobile app downloads surpassed a staggering 200 billion, emphasizing the pervasive presence of these...
ElectricSQL – Local-first sync layer for web and mobile apps
Local-first sync layer for web and mobile apps. Build reactive, realtime, local-first apps directly on Postgres. What is ElectricSQL? ElectricSQL...
GitHub Copilot Chat opened to individual developers
Like similar chatbots, Copilot Chat sits in the sidebar of the IDE, and developers can use it to have lengthy...
ComposeCard – A beautifully designed payment view library
ComposeCards is a beautifully designed payment view library for Credit and Debit Cards. Made using Jetpack Compose 🎉. It allows...
Mobile App Development Best Practices – 20.09
Airship has released another study of mobile users aka shoppers. A lot of interesting things about habits and tasks in...