~/talk

Why you should positively consider introducing and migrating to KSP

TalkinJapaneseat DroidKaigi 2024 · 2024-09-11..09-13· [kotlin, android]
name:shxun6934
links:none on file
slides:none on file

Kotlin Symbol Processing (KSP) as a replacement for kapt is explained: add the KSP Gradle plugin, switch annotation-processor dependencies to their KSP variants, and keep Kotlin and KSP versions matched. A custom ViewModelFactory symbol processor that generates Kotlin/Java code is demonstrated, and benchmarks (10-run averages) show pure-KSP builds for Room and Hilt are faster while mixing kapt+KSP slows builds; KSP2 adds the ability to run processors inside programs for easier testing and debugging.

AI-written summary · about

  1. 0:00KSP benefits
  2. 1:07Introduction
  3. 2:13KSP vs KAPT basics
  4. 3:58Compiler plugin history
  5. 8:56KSP features and limits
  6. 11:46KSP vs KAPT future
  7. 13:38KSP setup
  8. 15:28Symbol processor
  9. 26:50Build time comparison
  10. 30:33KSP2 new features
  11. 35:17Summary
~/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.