It started out internally as an annotation processor for Android projects, so the JVM limitation wasn’t an issue, but I’m definitely interested in the possibility of making it multiplatform.
A
#ksp version is currently in the works and available experimentally (
https://github.com/livefront/sealed-enum/pull/32), which could lead to multiplatform support.
A compiler plugin would also open up the possibility for a more integrated API by rewriting code (making the sealed class directly implement
Comparable
, making the
companion object
implement
SealedEnum
, etc.)