Migrating 7 years of native code to Flutter — without pausing the roadmap
Unified a seven-year-old Android and iOS codebase into a single Flutter application over 14 months, while shipping seven new product modules in parallel so the business never had to stop delivering features.
Context
The client runs an automotive marketplace platform used by roughly 700 people across multiple car dealerships in Latin America. Their mobile product had been in continuous development for seven years as two entirely separate native codebases: Java on Android and Objective-C on iOS.
Problem
Two independent codebases meant every feature was designed, built, tested and debugged twice — and they had drifted apart, so the same screen behaved differently depending on the device. Maintenance cost grew with each release, stability suffered, and hiring for an aging Objective-C codebase was getting harder every year. The obvious fix was a rewrite, and the obvious objection was the one every CTO raises: the roadmap cannot stop for a year.
What I did
- Audited both native codebases to map real feature parity, then sequenced the migration so the highest-traffic flows moved first and could be validated by real users early.
- Designed the target architecture before writing product code: a three-layer separation of data, domain and presentation, with a single source of truth for every piece of state.
- Standardised state management on a single predictable pattern and centralised dependency wiring through a service locator, so any developer could trace a screen from event to data source without reading the whole repository.
- Built the native bridges the product genuinely needed — audio capture with format normalisation across iOS and Android, an embedded web surface, and map integration — keeping platform-specific code isolated behind narrow interfaces.
- Ran the migration and new feature development as one stream rather than two, so every new module was built directly in Flutter instead of being written twice and migrated later.
- Wrote the architecture documentation and a mandatory per-feature template, then used it to onboard the existing Java and Objective-C engineers onto Flutter until they could ship modules independently.
- Scoped and estimated each module task by task — interface, API integration, platform-specific adjustments, testing and release — against committed delivery dates.
Constraints
Feature delivery could not pause: the business needed new capability shipped throughout the migration. The existing engineering team had no Flutter experience and had to keep the native apps alive while learning the new stack. Client-side security and the specific composition of the platform core are confidential and are deliberately not described here.
Outcome
Two codebases became one. The product now ships from a single Flutter codebase across iOS and Android, with the architecture and documentation in place for the in-house team to maintain and extend it. Seven-plus new modules — voice notes, scheduled replies, message comments, local drafts, conversation filters, a gesture-driven Kanban board, and notes, tasks and events for conversation detail — were delivered during the migration rather than after it. The engagement has been continuous since May 2024.