Skip to content

dcow/kotlin-sealed-class-parceler-sample

Repository files navigation

Sealed Classes

Kotlin supports sealed classes. But to use them with Parceler, a custom converter needs to be supported. Can we do better?

Instructions

  1. Install the application.
  2. Turn on the Don't keep activities option in the Developer settings.
  3. Toggle the recent applications menu and navigate back: app should crash.
  4. Specify a custom converter (included) for the Data class: no crash.

Discussion

johncarl81/parceler#274

About

Demo using Kotlin `sealed` classes with Parceler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published