n8 icon indicating copy to clipboard operation
n8 copied to clipboard

add import / export functions

Open erdo opened this issue 1 year ago • 1 comments

The serialization code can be taken from https://github.com/erdo/persista

the key lines we'd need are:

val jsonText = json.encodeToString(serializer(stateKType), item)
json.decodeFromString(serializer(stateKType), jsonText) as NavigationState<L, T>

erdo avatar Apr 06 '24 08:04 erdo

basically make these two (currently ignored) tests in NavigationExtensionsTest pass:

when importing serialized state, state is rewritten correctly when exporting state, serialized representation is correct

erdo avatar Apr 07 '24 19:04 erdo