google logo

Dagger2

A fast dependency injector for Android and Java. (by google)

Stats

Basic Dagger2 repo stats
1
15,949
9.2
5 days ago

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

Dagger2 Alternatives

Similar projects and alternatives to Dagger2 based on common topics and language

  • GitHub repo AssistedInject

    Constructor-inject views during XML layout inflation [Moved to: https://github.com/cashapp/InflationInject]

  • GitHub repo Vigilante

    🛡️ Android security (camera/microphone dots indicators) app using Hilt, Animations, Coroutines, Material, StateFlow, Jetpack (Room, ViewModel, Paging, Security, Biometrics, Start-up) based on MVVM architecture.

  • GitHub repo DaggerViewModelExperiment

    [DEPRECATED, EXPERIMENT] This is a PoC example for app->activity->fragment subscoping with Subcomponents + ViewModel by SavedStateHandle (using AutoFactory). You shouldn't use this setup, because it breaks scoping. Refer to https://github.com/Zhuinden/jetpack-navigation-ftue-sample for a proper setup.

  • GitHub repo Guice

    Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 6 and above, brought to you by Google.

  • GitHub repo Tiger

  • GitHub repo Bootique

    Bootique is a minimally opinionated platform for modern runnable Java apps.

  • GitHub repo Toothpick

    A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better Dagger2 alternative or higher similarity.

Posts

Posts where Dagger2 has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-04-04.
  • Any good open source repos with Hilt?
    Assisted inject
  • Dagger Hilt is now in beta (v2.33)!
  • Patterns of Distributed Systems (2020)
    news.ycombinator.com | 2021-02-10
    I think this is a good one. Most recent Java/C# systems would have a full IoC container, but have no dynamically selected components (which is how frameworks like Dagger -https://dagger.dev/ - can exist). A lot of runtime reflection/calculation gets done for something that can be known at compile time.
  • Dagger 2.31 released
  • AssistedInject or AutoFactory ?
    Here is the commit ref: https://github.com/google/dagger/commit/daf0c66