Why Do I Want to Use Kotlin?

How Did We Migrate from Java to Kotlin?

There are some steps that we do the migration...

  1. We started from models and value objects

    1. Convert them into data classes
  2. Convert files from Java to Kotlin?

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/110077a1-f76d-4325-80b5-e963de9e6bd2/Screen_Shot_2020-04-23_at_5.10.30_PM.png

  3. Dealing with Double bang operators !!

    1. Some platform types !
    2. Or you might want to use safe call operator ?
  4. Convert tests into Kotlin classes

    1. Use MockK to refactor tests.
  5. Refactoring other classes in model layer

    1. For example, classes like Repository or UseCase.
  6. Refactoring presentation layer

    1. It might contains Presenter or ViewModel
  7. Refactoring View

  8. If you are using RxJava, you can consider using Flow instead.

Problems