~/talk

AndroidX Lifecycle's Path To Multiplatform

Talkat droidcon London 2024 · 2024-10-31..11-01· [android]
slides:none on file

AndroidX Lifecycle becomes Kotlin Multiplatform compatible and reaches stable after a focused January–May 2024 effort that removes Android-only dependencies, enables Navigation Compose KMP, and fixes binary-compat breakages caused by Kotlin synthetic overloads. The work uses metalava and Kotlin binary-compat validator to detect removed constructors, adds a compatibility create() shim and a shared viewModelProviderImpl bridge with expect/actual platform hooks, replaces Java-only types, tests synchronization and dispatch fallbacks, and ships stable and working.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08AndroidX support for KMP
  3. 3:18KMP compatibility vs support
  4. 5:09Timeline to stable release
  5. 10:09Moving ViewModelProvider to common
  6. 16:49Handling Java types in APIs
  7. 18:54Migrating ViewModelProvider with expect/actual
  8. 24:53Mixing expect/actual with common
  9. 25:56ViewModel addClosable and scope APIs
  10. 33:25Accessing native APIs in KMP
  11. 36:59Key takeaways
  12. 38:42Conclusion
~/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.