Migration to Kotlin

If you have a legacy project or an existing Java module that you want to migrate to Kotlin, migration should be easy. People who made it, thought about this. As you remember, Kotlin is interoperable. Because of that, some modules don't need full migration; instead, they can be included into a Kotlin project. It's up to you to decide. So, let's prepare our migration!

In this chapter, we will cover the following topics:

  • Preparing the migration
  • Converting classes
  • Refactoring and cleanup

Get Mastering Android Development with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.