~/talk

Krate ft. Moshi: a Kotlin library design case study

Talkat droidcon Italy 2020 · 2020-11-27..11-28· [kotlin, testing]
slides:none on file

Krate is a SharedPreferences wrapper that gets a Moshi-based addon implemented as delegates; code shows a working Krate SharedPreferences wrapper and a new Moshi adapter delegates class that serializes into prefs. The talk traces concrete fixes: replacing Gson type tokens with a Kotlin-based makeType, handling reified generics, debugging lists that returned LinkedTreeMap, and adding unit tests that initially fail for lists then pass after switching to Kotlin 1.4 java type support.

AI-written summary · about

  1. 0:00Introduction to libraries
  2. 1:17Working with Crate
  3. 6:21Introduction to Moshi
  4. 11:01Json delegate challenges
  5. 17:04Testing crate delegates
  6. 19:24Integrating Moshi and Crate
  7. 23:23Reflection in Java and Kotlin
  8. 27:36Moshi delegate issues
  9. 31:18Refining type management
  10. 40:33Wrap up and resources
~/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.