Turo Aug 23, 2022

Designing Jetpack Compose Architecture for a Gradual Transition from Fragments on Android

Article Summary

Turo's Android team faced a challenge: how to adopt Jetpack Compose without rewriting their entire fragment-based app overnight.

Staff Engineer Pavlo Stavytskyi shares how Turo designed an architecture that lets developers write pure Compose code while maintaining seamless compatibility with legacy fragments. The solution uses code generation and abstraction layers to hide complexity.

Key Takeaways

Critical Insight

Turo built a migration path where engineers write pure Compose code while code generation handles all fragment compatibility automatically.

The architecture is now open sourced as Nibel, and the implementation details reveal clever tricks with NavHost and fragment transactions.

Recent from Turo

Related Articles