Skip to content

Dagger 2.5

Compare
Choose a tag to compare
@ronshapiro ronshapiro released this 15 Jun 19:45
· 2628 commits to master since this release
  • Enables @Binds usage with multibinding annotations (@IntoSet, @ElementsIntoSet, and @IntoMap)
  • Adds @Multibinds API to replace @Multibindings interfaces
  • @Component.Builder methods for abstract modules are no longer allowed
  • Performance improvements for @IntoSet usage. Provided objects are no longer wrapped in a wasteful Collections.singleton()
  • Compilation speed improvements for large graphs
  • @Scopes are no longer allowed on @Produces methods
  • Adds state checking to scoped providers to make sure a circular dependency does not create multiple instances
  • Producers optimizations: Each @Produces method now generates 1 class instead of 2
  • Fix: Requests for Map<K, V> now include both @Provides @IntoMap and @Produces @IntoMap values