Closed tadfisher closed 1 year ago
@tadfisher I apologize, I missed this PR. After I saw issue #3, I started hacking away at the solution trying to be diligent, and released the fix already. The solution seems the same. If you'd like, you could make a separate PR adding the sample-compose
desktop logic to the build file you added in these changes. Sorry again.
Fixes #3
Relax the type constraint on
encodeToBundle
anddecodeFromBundle
functions that useKSerializer<T>
or look up serializers viaserializersModule
.Align the type constraint on
rememberSaveable
andSaver
to match upstream compose; there is still an: Any
constraint forrememberSaveable<T : Any> : T
but there is none onrememberSaveable<T> : MutableState<T>
.Also, quickly configure the desktop version of
sample-compose
for easy testing.