Replace device.storagegetStore() and setStore(val) with async getItem(key) and setItem(key, val).
Rename loadFiles to resolvePromises in replay-test.
Being async means we can use native storage - e.g. on iOS, localStorage has a maximum size of 5 MB. iOS now uses UserDefaults which has no limit. Storing by key is closer to how it's done on the platform level and so should be more performant.
Breaking changes
device.storage
getStore()
andsetStore(val)
with asyncgetItem(key)
andsetItem(key, val)
.loadFiles
toresolvePromises
in replay-test.Being async means we can use native storage - e.g. on iOS,
localStorage
has a maximum size of 5 MB. iOS now usesUserDefaults
which has no limit. Storing by key is closer to how it's done on the platform level and so should be more performant.