~/talk

Annotation Processing in a Kotlin World

Talkat KotlinConf 2018 · 2018-10-03..10-05· [kotlin]
github:hzsweers
slides:none on file

Kapt’s Java stub output hides Kotlin specifics, so read the class’s @kotlin.Metadata protobuf to recover default values, nullability, mutability and primary-constructor mappings; this fixes real Dagger quirks (wildcard lists, qualifier targets, companion static methods) and offsets kapt slowness. Uses: the community library kotlin-metadata (and JetBrains’ kotlinx-metadata visitor API) plus KotlinPoet to generate Kotlin. Examples built: a working copyDynamic generator and Moshi adapters (Moshi uses this approach); compiler plugins exist but are unstable.

AI-written summary · about

  1. 0:00Start
  2. 32:37Metadata is added signal
  3. 33:03Abstract your renderer
  4. 34:38Be mindful of mixed source sets
  5. 35:59Lean on language features
  6. 37:05Be mindful of quirks and caveats
~/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.