anvil

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

Anvil Alternatives

Similar projects and alternatives to anvil

  • Dagger2

    50 anvil VS Dagger2

    A fast dependency injector for Android and Java.

  • koin

    16 anvil VS koin

    Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • kotlin-inject

    Dependency injection lib for kotlin

  • dikt

    7 anvil VS dikt

    Simple and powerful DI for kotlin multiplatform

  • whetstone

    Whetstone is a dependency injection framework for Android that greatly simplifies working with Dagger 2 using all the powers of Anvil

  • Theatre

    0 anvil VS Theatre

    Pet project using Clean Architecture + MVVM + Reactive Extensions + Android Architecture Components. The data are fetched from LondonTheatreDirect API. 🎭 (by andremion)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. 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.

    InfluxDB logo
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.
  • Having both Dagger and Hilt at the same time? 🤔
    1 project | /r/android_devs | 29 Nov 2022
    I would recommend checking out Anvil for multi-module setup as it can provide an easier migration path than Hilt while also providing similar features.
  • 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:
  • Toying with Kotlin's Context Receivers
    1 project | news.ycombinator.com | 15 May 2022
    Have you considered something like Dagger + Anvil (https://github.com/square/anvil) ? It works well enough that it gets out of your way. Is it doing insane things in the background at compilation time ? Absolutely. But it's worth it. And to save time in debug, you can shim in dagger-reflect to avoid the cost of having to run annotation processors.
  • N26 Path To Anvil
    1 project | /r/android_devs | 18 Feb 2021
    For more details, check the official documentation: Anvil Dagger Factory Generation.
  • N26 Path to Anvil
    1 project | dev.to | 5 Feb 2021
    And finally, testing: Anvil offers a replace module feature that is handful to provide new dependencies during tests. For that, we create helper modules called testing and we provide fake dependencies of those replacing the production modules. Developers that include the testing in their test classpath can automatically interact with our testing utilities (or create their own, if required). To be completely honest here, it is more of an ongoing process.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 25 Apr 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic anvil repo stats
8
1,258
9.5
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.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com