Skip to content

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

Booking.com Engineering 14 min read Case study mediumAdept

Kotlin Multiplatform in Production: Two Real-World Use Cases from Booking.com

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. The experimentation library ships as a Gradle dependency on Android and an XCFramework via CocoaPods on iOS, and was validated by running old and new implementations side by side behind experiment flags. During that parallel phase iOS saw roughly +140 ms p90 startup and +2.5 MB download size, but startup improved once the legacy code was removed, which shows migration-time performance data can mislead. iOS engineers were brought on board through an evaluation framework with an explicit exit ramp, and some later became contributors, though Xcode's lack of Kotlin support remains a tooling gap.

Related posts

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

    Slack Engineering easyNovice

    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.

  • Management of Native Code and React Native at Shopify

    Shopify Engineering mediumAdept

    Shopify's Point of Sale team kept complex UI such as a draggable, reorderable grid of hundreds of buttons in React Native, fixing performance with fewer re-renders, lazy rendering, memoization and Reanimated 2. Background offline sync jobs were a different story: they froze the app because work in single-threaded JavaScript plus bridge traffic blocked interaction. The team moved that sync engine to a Kotlin Multiplatform library using SQLDelight, Apollo and coroutines, reaching about 95% shared code and cutting initial sync for a medium store from 30+ seconds to 2-3 seconds. The post recommends packaging KMM as a separate library with sandbox apps, sketches the Gradle and Xcode build setup, and notes the steeper learning curve for Swift developers.

  • Vinted is Fully Composed

    Vinted Engineering mediumAdept

    Vinted migrated all 300+ product screens of its 15-year-old Android app from XML Views to Jetpack Compose in 18 months while feature work continued. The work was organized around ProJet, a thin framework that kept Fragments as screen hosts and added a dual-stack design system (Bloom, ~75 components rewritten). It also wired Compose previews into Paparazzi snapshot tests and enforced per-screen test coverage in CI. Key lessons: verifying parity took longer than writing Compose, every migration was guarded by A/B tests or feature flags (100+ tests), interop wrappers hurt scroll performance until screens were fully migrated, and redesigns should never be bundled with migrations. The pure-Compose homepage unexpectedly raised clicks per user by 2.69% and halved presentation code.

  • Building On-call: Building a multi-platform on-call mobile app

    incident.io mediumAdept

    incident.io built its on-call mobile app with React Native and Expo after weighing native iOS/Android, Kotlin Multiplatform and Flutter. It wanted one codebase, native-feeling UX and a stack its web engineers could contribute to. Mirroring the web stack (Yarn workspace API client, SWR, Nativewind, Expo Router) kept the code familiar. Prebuild with app config and EAS builds let engineers ship push notifications without maintaining native projects. The main pain points were EAS build failures fixed with an easignore file, and Android's lack of critical alerts, which required a custom Kotlin Expo module to ring through silent mode.

  • Scaling Slack’s Mobile Codebases: Modernization

    Slack Engineering mediumAdept

    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. Follow-up work includes layered module dependency rules to stop circular dependencies, possibly adopting Needle for dependency injection, and splitting Android modules into API/implementation pairs for build parallelism.

The quest for software engineering knowledge.

Look:
Layout: