Closed vanniktech closed 8 months ago
Thanks for the reproducer! This looks like it's probably the same issue as #160.
nullableSerializedValue
does work when using MapSettings()
; however on my Android App nullableSerializedValue
didn't work correctly with the Shared Preferences Settings implementation.
Take a look at the 1.1 branch. I think I have this fixed but I'm not clear on the shared prefs difference you mentioned. I do expect possible behavior variations in the old implementation between the first time you deserialize and subsequent times, so that might account for what you saw, but I'm not certain.
The issues I can reproduce are fixed in 1.1.0. Let me know if there's still anything that isn't working for you.
The following test fails on the last assertEquals:
I would have expected to have a properly saved list but instead it's empty.
Public reproducer: https://github.com/vanniktech/playground/pull/116
However,
nullableSerializedValue
seems to work. You can check yourself by applying the following patch file: