Rewriting a Mobile App: Assessment, Migration and Delivery

A four-year-old app had two codebases, three navigation patterns and a release cycle measured in weeks. The question was not whether to rewrite it, but what to rewrite it into and how to keep shipping while it happened.

Client withheld under NDA. The sector, the shape of the engagement and the constraints are described; no client data, screens, names or volumes are reproduced.

Snapshot
Client
Integrated resort, Macao
Sector
Consumer mobile
Engagement
Technical assessment, options paper, incremental migration
Scope
Code audit · option costing · shared core · screen migration · release pipeline · analytics parity
Duration
9 weeks assessment, 7 months delivery
Status
One codebase; releases weekly, from six-weekly
2
codebases, one per platform, with different behaviour.
1
shared core after migration, two thin platform shells.
6
weeks per release before; one after.
0
screens shipped without their analytics events migrated.

Problem

The app worked and the team was afraid of it. Two codebases meant two bugs for every feature, and the navigation had drifted so far that a screen on iOS and the same screen on Android behaved differently in ways nobody had written down.

“Rewrite” is usually proposed as a single heroic release, which is the riskiest possible shape. The alternative is to make the rewrite a series of small migrations behind a stable release process, which is slower to demonstrate and far less likely to fail.

Figure 1 — Four options, costed rather than argued

CostRiskTimeKeep two codebasesShared core, native shellsCross-platform rewriteHybrid wrapperhighest runlowongoingmediummedium7 monthsmediumhigh5 monthslowhigh3 monthsThe cheapest options were the riskiest, which is why the paper was written before a line of code: the argument was about risk appetite, not about technology.

Approach

We spent nine weeks establishing facts: crash rates per screen, build times, the real cost of a release, and which features were actually used. Two of the app’s eleven sections were used by fewer than one per cent of sessions and were deleted rather than migrated.

Migration ran screen by screen inside the existing app, so every release shipped. A screen was rebuilt in the new core, put behind a flag, compared against the old one on real devices, then switched. The release train never stopped, which is what kept the business on side.

Figure 2 — What parity meant for each migration

the surfaces in scopeBehaviourthe same taps, the same resultAnalyticsthe same events, the same namesDeep linksold links still resolveAccessibilitylabels and order preservedOfflinethe same cached statesPerformanceno slower on the oldest deviceThe oldest supported device was the benchmark for every screen. A rewrite that is fast on a new phone and slow on afour-year-old one has moved the problem, not solved it.

What the team kept

The release pipeline, the crash reporting and the test suite were migrated first, before any feature. That felt slow for three weeks and made every subsequent week cheaper.

We also kept one platform shell fully native. The shared core holds logic and state; navigation and platform behaviour stay where the platform expects them, which avoided the uncanny valley that cross-platform apps fall into.

What we delivered

Assessment
Nine weeks of facts
Crash rates, build times, release cost and feature usage, before any option was argued.
Options
Four, costed
Each with cost, risk and time, so the decision was about appetite rather than technology.
Core
Shared logic, native shells
State and business rules in one place; navigation and platform behaviour left native.
Migration
Screen by screen, flagged
Rebuilt, compared on real devices behind a flag, then switched. Every release shipped.
Pipeline
Migrated first
Build, test and crash reporting moved before features, which made the rest cheaper.
Parity
Six checks per screen
Behaviour, analytics, deep links, accessibility, offline and performance on the oldest device.

What it changed

One codebase, weekly releases, and two sections deleted rather than rebuilt. The release cadence is the number the business feels; the deletion is the one that saved the most work.

The assessment was the valuable half. Nine weeks produced a decision the organisation could defend, which is why the delivery ran without a mid-project re-litigation.

CONTACT US

We provide a custom made service for just drop us a line.
We would be glad to have feedback from you.