Adopting Jetpack Compose for Etsy’s Android App
Etsy adopted Jetpack Compose as its preferred Android UI toolkit through a staged rollout. It started with an internal curriculum and Compose versions of design system components, then moved to an internal-only screen, then user-facing bottom sheets, and finally a three-month rewrite of the Shop screen paired with the Macramé unidirectional-data-flow architecture. An A/B test showed 5% faster initial render and improvements in conversion, add-to-cart and other engagement metrics, and engineers reported less code, better test coverage and value from Compose Previews. Pain points included an alpha-stage third-party library and the different key and item-reuse semantics of LazyRow/LazyColumn compared with RecyclerView.
Related posts
- Macramé: Untangling the Knot on the Etsy Android Listing Screen
Etsy Code as Craft mediumAdeptEtsy rewrote its 4000-line Android listing Fragment into Macramé, a Mobius-inspired unidirectional architecture: a single immutable State exposed via StateFlow, flattened into small UI models rendered by a RecyclerView with ListAdapter diffing, and a sealed-class Event dispatcher routing actions to single-purpose Handlers that update State, launch async work, or emit SideEffects to the Fragment. The five-month rewrite cut Time to First Content by 18% (1585 ms to 1298 ms), lifted listing views, add-to-carts and searches in an A/B test, and raised business-logic unit test coverage from single digits to 76%. Remaining tradeoffs include Event/Handler wiring boilerplate, harder debugging of Handler-dispatched event chains, and overkill on simple screens.
- Kotlin Multiplatform in Production: Two Real-World Use Cases from Booking.com
Booking.com Engineering mediumAdeptBooking.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.
- Migrating Shop app from React Native to native
Shopify Engineering mediumAdeptShopify rebuilt the Shop app from React Native into native Swift/SwiftUI and Kotlin/Jetpack Compose in 12 weeks, with coding agents porting features using the existing React Native app as a reference. Native builds cut cold start by 23% on iOS and 50% on Android, raised session stability from 99.5%+ to 99.95%+, shrank the Android app by 109 MB, reduced Android release build time by about 75%, and reached 120 FPS scrolling on Pixel. The team built a Pi agent extension with subagents for source analysis, planning, implementation and parity review, with plan approval tied to a content hash. They also built Tardis, a tool that exposes live app events, logs and state to agents and compares analytics payloads between the old and new apps. Native expertise, linting, tests and code review were still needed to catch duplication, architectural drift and performance problems in generated code.
- Management of Native Code and React Native at Shopify
Shopify Engineering mediumAdeptShopify'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.
- Instant Performance Upgrade: From FlatList to FlashList
Shopify Engineering easyNoviceFlashList is Shopify's open-source drop-in replacement for React Native's FlatList. It builds on RecyclerListView, recycling already-allocated cell views instead of creating new ones, and it moves some layout work to native code. The goal is a consistent 60+ FPS and no blank cells, even on low-end Android devices. It uses a small default render buffer (250 px) to cut memory use. Migration is mostly a component rename plus an estimatedItemSize prop, and extras include getItemType for per-type recycling pools, flexible column spans via overrideItemLayout, and built-in blank-cell and FPS metrics.