Dependency injection (DI) is a technique widely used in programming and well suited to Android development. By following the principles of DI, you lay the groundwork for good app architecture. Implementing dependency injection provides you with the following advantages: Together with you, we will consider: - What is DI, Introduction 1)Cohesion, Coupling - Service Locator Introduction 1)Intro, what is it SL - Dagger 2 1)Main components: module(provide, binds), component. - Dagger 2 Generated code BTW, we create a telegram chat for the discussions! ➡️ Registration - https://www.eventbrite.com/e/android-advanced-topic-3-dependency-injection-tickets-96206631625 See you soon! Android Academy team.
1)Reusability of code
2)Ease of refactoring
3)Ease of testing
- Relationship:
2)Composition, Aggregation, Inheritance - dependency management
3)Benefits of using DI
4)Injection types
2)Differences with DI
2)Scope
3)Builders, Factory
4)Subcomponent
5)Lazy & Provider
- Dagger 2 Component Dependency