Sunday, November 24, 2019

New AndroidX library to replace SharedPreferences



+New library meant to replace SharedPreferences. The name is not final, this is just for implementation review and to support the design doc.

The XmlUtils and FastXmlSerializer classes were taken from the platform.

Test: One of the reviewer, tested consistency and creating thousands of operations on 2 forked threads and made the results were consistant in the object.

The implementation is strongly consistent, thread safe and completely asynchronous. The testing was done on a local app. If implementation is okay and design is final unit tests will be added.

Source: Googlesource.com
Share:

0 comments:

Post a Comment