Setting Up Dependency Injection Using Anvil: A Step-by-Step Guide | by Xi Wei | Mar, 2025

Setting Up Dependency Injection Using Anvil: A Step-by-Step Guide | by Xi Wei | Mar, 2025

Anvil is a clean and powerful library that simplifies dependency injection by building on top of Dagger. It removes a lot of boilerplate and is easy to use. There are some great articles explaining how Anvil works and why you might want to use it. However, the exact setup documentation is limited, so I’m creating … Read more

Creating and managing custom-scoped components in kotlin-inject + Anvil | by André Thiele | Feb, 2025

Creating and managing custom-scoped components in kotlin-inject + Anvil | by André Thiele | Feb, 2025

@pinewatt This is an updated blog post of my previous iteration, in which I’m going to show you how to create custom-scoped components using kotlin-inject + Anvil. This allows you to scope your dependencies to your domain’s lifecycle, rather than a specific lifecycle of Android. If you’re already familiar with Anvil, feel free to skip … Read more