anvil

A Kotlin compiler plugin to make dependency injection with Dagger 2 easier. (by square)

Anvil Alternatives

Similar projects and alternatives to anvil

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better anvil alternative or higher similarity.

anvil reviews and mentions

Posts with mentions or reviews of anvil. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-06.
  • Refactoring our Dependency Injection using Anvil
    2 projects | /r/RedditEng | 6 Feb 2023
    Handling DI at scale can be a challenging task in avoiding circular dependencies, build bottlenecks, and poor developer experience. To solve these challenges and make it easier for our developers, we adopted Anvil, a compiler plugin that allows us to invert how developers wire, hook up dependencies and keep our implementations loosely coupled. However, before we get into the juicy details of using this new compiler plugin, let's talk about our current implementation and its problems that we are trying to solve.
  • Whetstone: A DI framework for Android that simplifies working with Dagger 2 using Anvil
    2 projects | /r/androiddev | 2 Oct 2022
    In terms of of what Anvil is I'd really recommend reading the README It's a lot more flexible than Hilt and provides a code generation hook so if you have a codebase specific DI pattern you can also set that up to be auto-generated with a custom annotation if you desire.
  • Anvil, generating factories without kapt, and module structure.
    2 projects | /r/androiddev | 30 Aug 2022
    Recently I've been looking into Anvil as an alternative to Dagger and realised that it can handily generate factories for you without kapt. That brings some exciting potential for build time improvement so I was eager to try it out. However very quickly I got stuck.
  • Multiplatform dependency injection libraries equivalent to Dagger/Anvil
    5 projects | /r/Kotlin | 27 Jul 2022
    I'm currently using Dagger and Anvil for my DI needs. It's been working really well, especially around what Anvil permits in terms of multibindings defined on the type declaration rather than in a module. For example:
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 29 Feb 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic anvil repo stats
8
1,245
9.3
6 days ago

square/anvil is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of anvil is Kotlin.

Learn 300+ open source libraries for free using AI.
LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!
learnthisrepo.com