Meta Omer Strulovich

Meta: From zero to 10 million lines of Kotlin

Original post From zero to 10 million lines of Kotlin

Article Summary

Omer Strulovich from Meta shares how they migrated 10 million lines of Android code from Java to Kotlin. The scale is massive, but the real story is in how they automated the impossible parts.

Meta converted their entire Android codebase (Facebook, Instagram, Messenger, Portal, Quest) from Java to Kotlin. This wasn't just running a converter tool: they built a three-step pipeline called Kotlinator to handle edge cases, framework quirks, and automated refactoring at scale.

Key Takeaways

Critical Insight

Meta successfully migrated over 10 million lines to Kotlin while maintaining performance, reducing code by 11%, and building automation tools they're now open sourcing.

Continue reading

The article reveals specific JUnit and Android framework gotchas that break during conversion, plus Meta's solution for the dreaded build time problem.

This page summarizes “From zero to 10 million lines of Kotlin” by Meta, published Oct 24, 2022. All credit for the original work goes to the authors.

Read the original on engineering.fb.com (opens in new tab)

AI tools for Android

Browse all AI tools →