---
title: "Stabilize, Modularize, Modernize: Scaling Slack’s Mobile Codebases"
description: "Slack chose to refactor its iOS and Android codebases in place through Project Duplo, a cross-platform effort in three phases: Stabilization, Modularization and Modernization."
url: "https://swe.quest/articles/stabilize-modularize-modernize-scaling-slack-s-mobile-codebases-6744c42390a79288"
canonical: "https://slack.engineering/stabilize-modularize-modernize-scaling-slacks-mobile-codebases/"
source: "Slack Engineering"
published: "2022-01-12"
difficulty: "easy"
kind: "Case study"
reading_minutes: 14
tags: ["mobile","refactoring","swift","jvm","developer-productivity"]
---

# Stabilize, Modularize, Modernize: Scaling Slack’s Mobile Codebases

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2022-01-12, 14 min read, Case study. Original: [https://slack.engineering/stabilize-modularize-modernize-scaling-slacks-mobile-codebases/](https://slack.engineering/stabilize-modularize-modernize-scaling-slacks-mobile-codebases/)

## Summary

Slack chose to refactor its iOS and Android codebases in place through Project Duplo, a cross-platform effort in three phases: Stabilization, Modularization and Modernization. A full rewrite and shared cross-platform code (React Native, Flutter, C++, Kotlin Multiplatform) were rejected because of risk, performance and tooling costs. The six-month Stabilization phase used a dedicated core team to finish stalled migrations. On iOS that meant porting about 80,000 lines of Objective-C to Swift and fully adopting internal data-access and networking libraries. On Android it meant splitting the monolithic SlackApi and database interfaces, moving queries to SQLDelight, standardizing on the repository pattern and removing Otto bus events.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Swift](https://swe.quest/tags/swift.md) (Languages)
- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- iOS or Android app development ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))
- MVVM/MVP architecture patterns ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))

## Keywords

Project Duplo, Slack, Swift, Objective-C, SQLDelight, CoreData, Kotlin, Otto

## Related posts

- [Scaling Slack’s Mobile Codebases: Modernization](https://swe.quest/articles/scaling-slack-s-mobile-codebases-modernization-950b9c539d5b5770.md): Slack Engineering · 2022-05-04 · Medium · 12 min read · Mobile, Refactoring & migrations, Swift, Java & JVM, Build systems
  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.
- [Scaling Slack’s Mobile Codebases: Modularization](https://swe.quest/articles/scaling-slack-s-mobile-codebases-modularization-70662aadd976d6a5.md): Slack Engineering · 2022-03-28 · Medium · 11 min read · Mobile, Build systems, Refactoring & migrations, Developer productivity, Swift
  Slack split its monolithic iOS and Android app targets into owned Feature, Service and Library modules with strict linking rules, such as interface/implementation pairs on iOS, to cut build times, untangle dependencies and clarify code ownership.
- [How we rebuilt the Shopify app in 12 weeks](https://swe.quest/articles/how-we-rebuilt-the-shopify-app-in-12-weeks-08ae147088c9e21e.md): Shopify Engineering · 2026-11-10 · Medium · 15 min read · AI for coding, Mobile, Refactoring & migrations, Developer productivity, Code review
  Thirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code.
- [The evolution of Facebook’s iOS app architecture](https://swe.quest/articles/the-evolution-of-facebook-s-ios-app-architecture-399dd453da436a48.md): Meta Engineering · 2023-02-06 · Medium · 12 min read · Mobile, Build systems, Swift, C & C++, Performance engineering
  Facebook's iOS app grew over ten years into a C++/Objective-C++/Swift codebase built around in-house abstractions, dynamically loaded libraries, and Buck-driven code generation.
- [Kotlin Multiplatform in Production: Two Real-World Use Cases from Booking.com](https://swe.quest/articles/kotlin-multiplatform-in-production-two-real-world-use-cases-from-booking-com-12a191bfb36fb8d9.md): Booking.com Engineering · 2026-06-05 · Medium · 14 min read · Mobile, Java & JVM, Design systems, Refactoring & migrations
  Booking.com applied Kotlin Multiplatform in two production cases: a shared experimentation library replacing drifting Java/Kotlin and Objective-C implementations, and a Compose Multiplatform (Kotlin/JS) web playground that renders the real Android BUI design-system components in a browser.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
