Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hot Reload on Android with Compose HotSwan

Hot Reload on Android with Compose HotSwan

Hot Reload on Android with Compose HotSwan

Avatar for Jaewoong

Jaewoong

May 20, 2026

More Decks by Jaewoong

Other Decks in Programming

Transcript

  1. Hot Reload on Android With Compose HotSwan Senior Developer Advocate

    @ RevenueCat Jaewoong Eum skydoves @github_skydoves
  2. What is Hot Reload? 3 Hot reload is the ability

    to see your code changes reflected on a running device instantly, without rebuilding, reinstalling, restarting, and navigating to the specific screens in the app. Without Hot Reload With Hot Reload
  3. Why Hot Reload? 4 • Fast development feedback (literal changes,

    resource (strings.xml, etc) changes) • Tuning UI animations • Watching UI changes on a real device, not a virtual JVM environment
  4. Why makes difficult on Android 5 • Dart Virtual Machine

    • Reloads Dart code into VM • Designed to keep app state • Mostly framework-controlled • Android Runtime • Limited class/method replacement • Harder across compiled app layers • Bytecode, class loading, verification, optimizations • JavaScript engine • Replaces JS bundle/modules • JS state can often stay alive • Native bridge boundaries
  5. Limitations 8 • Structural changes (changing a huge amount of

    composable trees) • Breaking baselines of the top-level classes (removing existing classes/functions) • Data class property changes • Constructor changes • Interface and superclass changes • etc. But the biggest problem is.. nobody tweaks even little parts of the code in this AI era.
  6. What's the future? 11 The key trade-offs • The interpreter

    engine must handle all Compose APIs and third-party packages. • Runtime API interpretation takes longer than v1. • The delay is a reasonable trade-off, as it is still faster than a full rebuild. • The mission is for developers to watch AI code changes in real-time. • Fast the development feedback and improve the Android Android development paradigms following the AI era. The mission