Motif - An Opinionated Dependency Injection API for Deep Graphs
summary
Motif is an opinionated DI layer that generates Dagger code and intentionally simplifies component-per-scope boilerplate, trading Dagger’s broad flexibility for a slim API. Uber reports conversion of about a hundred Dagger components and runs the app with over a thousand scopes and ~200 Android engineers, with Motif in production as a pre-release. Motif infers parent/child scope dependencies, offers full Dagger interoperability, and implements an annotation processor and IntelliJ plugin plus an IR for real‑time graph validation.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:27Why Motif
- 3:57Mobile architectures
- 6:47Dagger limitations
- 9:14Dagger boilerplate
- 13:48Motif solution
- 15:31Motif API
- 19:27Motif concepts
- 20:08Dagger interoperability
- 23:19Motif architecture
- 26:31IDE integration
related talks
40mFundamentals of Dependency Injection
48mDemystifying Dagger
32mLet's Build a Dependency Injection Framework
40mFramework-Free Dependency Injection
42mDependency injection made simple
25mDetangling Your Dependency Graph
40mNavigating Dependency Injection with Metro
22mDependency Injection in Android using Dagger 2
