Pragmatic Kotlin on Android
summary
Five production apps converted so far and a practical migration path: configure Kotlin in Android Studio, run the IDE converter on one file, run unit tests to catch regressions, and iteratively replace ugly output with Kotlin patterns. Concrete fixes include replace annotationProcessor with KAPT, add @JvmField for ButterKnife/data binding, use lateinit/val, apply Elvis and let to eliminate all !!, and enable Mockito mock-maker or kotlin-allopen for mocking final classes; converter reduces work but manual cleanup is required.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:12About me
- 6:23Typecasting
- 8:39Companion
- 11:15Default Getters
- 12:00Common Issue
- 16:00Data Binding
- 17:14Butterknife
- 18:24NullPointer Exceptions
- 21:45Null Check
- 22:58Extensions
- 23:52Tips
- 24:32Questions
- 25:17Converting Kotlin to Java
- 27:58Reverse engineering in Kotlin
- 28:55Data classes in Kotlin
- 30:54Java to Kotlin converter
- 31:50Kotlin for SDK development
- 32:31K apt configuration








