https://kotlinlang.org logo
Title
c

Colton Idle

01/30/2023, 12:18 AM
Kinda just asking for a sanity check. I have a small app that I'm mostly using for myself so code quality etc is sorta low on the totem pole compared to the functionality that I'm trying to have. But I just need to be able to persist this object that I have to disk so it survives process death.. Seems like just using moshi to serialize into a string that I write to a file should be enough right? Nothing kinda glaringly terrible about that approach?
x

xxfast

02/01/2023, 12:10 AM
You can use KStore for this, although it is not using moshi
disclaimer - im the author ._.
c

Colton Idle

02/01/2023, 12:21 AM
Oooh. very interesting. Anything like AtomicFile supported in there?