MobileOrg / mobileorg

MobileOrg iPhone App
http://mobileorg.github.io
GNU General Public License v2.0
557 stars 70 forks source link

Base iCloud support #246

Closed dive closed 4 years ago

dive commented 4 years ago

Hello there,

This is a base implementation of iCloud support. It works in the same way as WebDAV and Dropbox synchronisation options.

Good to know

Technical details

Synchronisation with Emacs

To set up synchronisation with Emacs you have to change org-mobile-directory in your init.el file to something like this:

(setq org-mobile-directory "~/Library/Mobile Documents/iCloud~com~mobileorg~mobileorg/Documents")

You can verify the path by opening iCloud Drive folder in the Finder, look for MobileOrg folder inside, right-click on it, hold Alt and select "Copy "MobileOrg" as Pathname". The proper path will be copied to the clipboard.

NOTE: The folder will appear in your iCloud Drive only after the initial sync initiated from the mobile application.

For a reviewer/maintainer

For testing, I used my own containers within my development account. So, it is better to double-check that everything works as expected by whoever has access to the iTunes Connect account you use to distribute TestFlight and release builds.

Resolves #201, corresponding feature request in the tracker.

Let me know if you want to make any changes in the pull-request or have questions.

Cheers, Artem

webframp commented 4 years ago

Looking great @dive thanks! I only did some cursory testing with it, but will work on getting a Testflight beta out after this is merged.

I’m not a fan of the multiple plist approach, that’s just legacy stuff I believe.

dive commented 4 years ago

Looking great @dive thanks! I only did some cursory testing with it, but will work on getting a Testflight beta out after this is merged.

Thanks.

I’m not a fan of the multiple plist approach, that’s just legacy stuff I believe.

Yeah, me either. Btw, it would be nice to get rid of CocoaPods and switch to Carthage. It will allow switching to a proper configuration based on xcconfig files. But let's try to prepare the next release of MobileOrg first. I am working on the UI rework, and then will try to resolve issues within v1.7.5 milestone.

webframp commented 4 years ago

it would be nice to get rid of CocoaPods and switch to Carthage.

I'd like to look at this post-v1.7.5 maybe, especially if it makes the development process simpler for new contributors.

webframp commented 4 years ago

Seems to "just work" for me so far with local testing, going to go ahead and merge into dev branch.