← All work
cat work/retail-mobile

Retail mobile modernization.

Led the Swift and Kotlin rewrite of the Bilka, Netto and føtex apps, from 75% to 98% crash-free sessions and from a 3.8s to a 1.6s cold start.

Role
Mobile Team Lead · Salling Group
Context
Professional · 2018 – 2021
Stack
SwiftObjective-CKotlinJavaiOSAndroid
  • 75→98%crash-free sessions
  • 3.8→1.6scold start
  • 400k+downloads · 60k+ MAU · 4.8★
  • 5people in the mobile team I led
Crash-free sessions (higher is better)
75%
98%
Cold start (lower is better)
3.8s
1.6s
Main screen load (lower is better)
2.5s
0.9s
Bilka, Netto and føtex apps before and after the Swift/Kotlin rewrite: crash-free sessions 75% → 98%, cold start 3.8s → 1.6s, main screen load 2.5s → 0.9s.

The problem

The retail apps had grown on ageing Objective-C and Java codebases. Crashes and slow starts were hurting everyday shopping.

What I did

I led the rewrite: Objective-C → Swift on iOS and Java → Kotlin on Android. Stability was the first goal, and crash-free sessions rose from 75% to 98% across the apps.

Performance was the second goal: cold start and main screen load came down through the startup work described under Decisions and trade-offs.

Leading the team

As Mobile Team Lead, I owned planning, estimation, delivery and release practices for a 5-person Mobile Applications team (4 engineers and 1 intern). I worked with product, design and backend, and contributed to mobile architecture decisions.

git log --decisions

Decisions & trade-offs

The choices that shaped the system, what they bought, and what they cost.

  1. D1

    Rewrite in Swift and Kotlin instead of patching

    Why
    The ageing Objective-C and Java codebases were hard to keep stable and fast. A rewrite in Swift and Kotlin was the chance to fix the foundations on both platforms.
    Trade-off
    A rewrite competes with feature work for the same team, so it had to prove its value in production early.
  2. D2

    Measure what shoppers feel

    Why
    Crash-free sessions, cold start and main screen load were the success metrics, because those are what people notice in a store aisle.
    Trade-off
    Holding the line on those numbers takes instrumentation and release discipline, not a one-off effort.
  3. D3

    Pay startup costs later, or off the main thread

    Why
    Deferred initialization, moving work off the main thread and leaner data loading brought the cold start from 3.8s to 1.6s and main screen load from 2.5s to 0.9s.
    Trade-off
    Initialization order becomes something you have to design explicitly, not something that just happens.
  4. D4

    Make quality a team practice

    Why
    As team lead I raised the code-quality and release standards on both platforms, so the gains didn't depend on any one person.
    Trade-off
    Stricter standards mean more review and release effort for each change.
Read as Markdown ↗Next: Story of the Day →