Open aaryankotharii opened 4 months ago
Thank you @aaryankotharii! I'll review and get back to you soon!
Hello @ualch9, I have made the following changes as requested above.
PropertyListEncoder / Decoder
with JSONEncoder / Decoder
.FileDestination
logic with simple static constants in RegionsService
.FileManagerProtocol
to RegionsServiceFileManagerProtocol
.Thank you @aaryankotharii! Apologies for the delayed turnaround in reviewing, I'll get to this ASAP.
no worries @ualch9, but there are a few migration issues I'm not sure how to address. for example, how to approach fetching custom regions, of existing users, which are stored in userdefaults ?
no worries @ualch9, but there are a few migration issues I'm not sure how to address. for example, how to approach fetching custom regions, of existing users, which are stored in userdefaults ?
Excellent question... @aaronbrethorst, do you have any insight on if custom regions are used enough for us to support a migration path?
I would not worry about custom regions at this time. Thanks for checking!
@aaryankotharii - need anything from me in order to get this wrapped up?
This PR migrates regions storage from UserDefaults to FileManager. Same file structure followed as mentioned in issue description.
fixes issue: #629
Code Changes
FileManagerProtocol
to abstract FileManager operations for testability.FileManagerMock
and updatedRegionsServiceTests
.