~/talk

How Kotlin 2.0 Will Evolve Android Development

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

Kotlin 2.0 introduces the K2 compiler promising up to 2× faster compilation and gives a concrete six-step Android migration path (bump Kotlin, update KSP, move Compose compiler dependency into the Kotlin repo, remove kotlin compiler extensions, update Gradle, migrate Kotlin options). Compose compiler integration removes version locks and a new strong-skip mode (default in 2.0.2) changes recomposition semantics (identical instances are skipped; use @NonSkippable or @DontMemoize to force recomposition). Other changes include AutoCloseable becoming stable, Power Assert for richer test failures, and a Gradle plugin to convert DataBinding to ViewBinding to ease KSP migration.

AI-written summary · about

  1. 0:00Introduction
  2. 2:53Kotlin 2.0 migration
  3. 10:07K2 compiler evolution
  4. 16:10Backing fields evolution
  5. 19:46Power asserts in tests
  6. 23:59Compose skip mode
  7. 36: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.