Android Dependency Injection with Dagger 2 and Kotlin
Offered By: LinkedIn Learning
Course Description
Overview
Learn how to use Dagger, the dependency injection framework, and Kotlin, the Android-specific programming language, to create cleaner code that requires less debugging.
Syllabus
Introduction
- Improve dependency injection with Dagger
- What you should know
- Using the exercise files
- What is Dagger?
- Why use Dagger?
- Setting up a Dagger project
- Building the graph with @Inject and @Component
- Introducing Dagger
- Method and field injection
- Lazy and provider injection
- When Dagger can't figure it out: @Modules and @Binds
- When it's complicated: @Provides
- When types are not enough: @Named
- Multibinding: Sets
- Multibinding: Maps with simple keys
- Real-world example: Architecture components #1
- Real-world example: Architecture components #2
- Real-world example: Architecture components #3
- Multibinding: Maps with complex keys
- Real-world example: Architecture components solved
- @Components review
- Extending the builder with @Component.Builder and @BindsInstance
- @Component dependencies
- Introducing @Subcomponents
- @Subcomponents review
- Extending the subcomponent builder
- Rethinking the graph
- @Singletons and @Reuseable
- Custom @Scope
- Next steps
Taught by
G. Blake Meike
Related Courses
Creative, Serious and Playful Science of Android AppsUniversity of Illinois at Urbana-Champaign via Coursera Pattern-Oriented Software Architectures: Programming Mobile Services for Android Handheld Systems
Vanderbilt University via Coursera Android. Programación de Aplicaciones
MirÃadax Programming Mobile Applications for Android Handheld Systems: Part 1
University of Maryland, College Park via Coursera Begin Programming: Build Your First Mobile Game
University of Reading via FutureLearn