Getir Apr 28, 2023

Migrating from XML to Jetpack Compose in an MVVM Android Project

Article Summary

Jyoti Sheoran from Getir shares how her team successfully migrated their multi-module MVVM Android app from XML to Jetpack Compose without breaking production. The secret? Their decoupled architecture made gradual migration actually work.

Getir's Android team tackled the daunting task of modernizing their UI layer while keeping the app stable. They documented their three-part migration strategy: UI layer conversion, navigation refactoring, and an optional shift to MVI architecture. The approach leverages Compose's interoperability with XML to migrate screen by screen.

Key Takeaways

Critical Insight

Breaking the migration into UI layer, navigation, and architecture phases made the XML to Compose transition manageable without disrupting the live app.

The article includes specific code examples showing how to refactor real fragments into Composables, plus the exact build.gradle setup needed to get started.

Recent from Getir

Related Articles