mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Supporting other cloud services #117
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tosbaha on GitHub (Dec 31, 2016).
Hi,
Besides iCloud, is it possible to use other cloud services like Dropbox,Google or our own server(JSON result) to sync the core data? Where should I look in the code to support syncing with my own server? If there is a way to use protocols or some kind of sub classing it will be better than changing multiple places. I think it could be super cool to add some kind of protocol so that people can add plugins to CoreStore to support different cloud services.
@JohnEstropia commented on GitHub (Jan 4, 2017):
There is currently no built-in mechanism for file syncing in CoreStore so you will have to implement your own if you are using services like Dropbox or Google, but to be honest that sounds difficult (Ensembles is good at this, but I doubt there will be a way to mix it with CoreStore)
If you have your own server, however, you can use the
ImportableObjectandImportableUniqueObjectobjects to map your JSON responses. See https://github.com/JohnEstropia/CoreStore#importing-data@tosbaha commented on GitHub (Jan 4, 2017):
Thanks for your quick response. Yes I have my own server and
ImportableObjectandImportableUniqueObjectseem like a good starting point. 👍