Hi guys! I need reactive version of SharedPreferences. As we are using LiveData already I was happy when I have found
https://gist.github.com/rharter/1df1cd72ce4e9d1801bd2d49f2a96810. Those are extensions to LiveData making reactive version of returned data. It was working great so far. Recently I migrated from lifecycle 1.0.0 to 1.1.1 which means new LiveData class. I have found out that when observingForever at some point that livedata object is destroyed. That is causing no update to the value. I am using mockk and roboelectric for running integration test: