Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Compilers Remove topic Compilers Clear all 1 posts RSS

Tuesday, Jul 20, 2021

Slack Engineering

Extending Anvil for Fun and Profit

Case study 6 min +60 XP

Slack's Android app replaced dagger-android activity injection with a custom Anvil code generator: annotating an activity with @InjectWith(scope) generates an AnvilInjector wrapping Dagger's intrinsic MembersInjector plus a @ContributesTo binding module that adds it to a scope-level multibinding map.

The quest for software engineering knowledge.

Look:
Layout: