Kotlin-inject-anvil is a dependency injection framework for Kotlin Multiplatform. It verifies the dependency graph at compile time and generates the necessary code to instantiate the object graph at runtime. The framework aims to provide a safe dependency injection solution without the boilerplate and configurations common in many other libraries.
This talk will introduce kotlin-inject-anvil, discussing its benefits and how it scales in large, modularized codebases. We'll explore how to leverage the strengths of each host platform while maximizing common Kotlin Multiplatform code. Since each codebase is unique, I'll demonstrate how we adapt the framework for our own internal use cases at Amazon.