~/talk

Migrating from Autovalue to Kotlin Data Classes

Talkat droidcon Berlin 2018 · 2018-06-25..06-27· [kotlin]
links:none on file
slides:none on file

Migrating 46 AutoValue classes to Kotlin data classes removes AutoValue and its plugins, reduces boilerplate, and replaces four dependencies while adding one (removed 4 dependencies, added JSON value). An IntelliJ/Android Studio refactoring plugin automates conversion and renames Java/Kotlin call sites, preserving Java-friendly with/create helpers. Clean builds run more than a minute faster and incremental edits improve, APK size stays unchanged, startup time edges up slightly, and Kotlinx.serialization is initially three times slower but after optimizations is now comparable to GSON/Moshi.

AI-written summary · about

  1. 0:00Introduction to migration
  2. 0:20What is AutoValue
  3. 3:31Why use AutoValue
  4. 4:36How AutoValue works
  5. 7:48Why migrate to Kotlin
  6. 10:36Kotlin serialization options
  7. 18:07Migration process overview
  8. 19:15Demo of IntelliJ plugin
  9. 24:52Handling Java compatibility
  10. 25:56Testing and results
  11. 27:31Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.