Skip to content

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

Java & JVM Remove topic Java & JVM Clear all 5 posts RSS

2022

Slack Engineering

Scaling Slack’s Mobile Codebases: Modernization

Case study 12 min +120 XP

Slack's year-and-a-half Duplo initiative concluded by modernizing its iOS and Android codebases: iOS moved to a custom VIPER-style feature architecture, stricter SwiftLint rules banning singletons and NotificationCenter, Combine (via CombineX until iOS 12 was dropped), and broader SlackKit adoption, while Android replaced Gson with Moshi, Android Priority Job Queue with WorkManager, and handwritten API calls with an internal Retrofit-based library, and introduced coroutines and Compose incrementally. iOS ended 68% modernized and 81% modularized with CI stability rising from 77% to 90% and average time-to-merge down 64%, Android reached 92% modularization, and local builds later dropped nearly 50% with Bazel and M1 Macs.

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: