04/17/2013, 03:42 PM
edit: files updated in first post -- removed from this post, Latest Preware version includes these changes
I have created a debug version of the sync behaviors patch. It has some extra logging for help in sync problems.
I also added a beta preference to the Tweaks interface -- "Sync Strategy" The options are "Default" and "Changes Only" It's my belief that the changes only strategy will be better for the heavy calendar users with greater than 50 events in a calendar month -- counting repeating events as 1 event.
- Asks google for any changes from the last sync
- After changes are processed, it asks for all events in the sync window specified by the tweaks preferences. 12 months back and 48 forward by default.
- You can change these as you need.
- This last sync type uses more battery and bandwidth, but ensures most events are found.
- If you have hundreds of events per month, this last sync has a tendency to error if you are not on wifi.
- Asks google for any changes since the last sync.
- If there is no error on the response, it stops there.
- If there are minor errors, it will attempt to sync just the last week and 2 weeks forward. As a second request.
- If there are major errors, it will do the default sync of asking for events in the window specified in your Tweaks settings.
- In theory, this should lower the time it takes to sync. Improving battery and data usage.
- If your network is always dropping, then it will do the default for safety..
- I could configure it to not do the default, but I need more testers to verify the changes only works well.
Choose "Changes Only" under the Tweaks preferences for calendar to try the new sync strategy.
To manually install this patch you must uninstall the current sync behaviors patch. Restart Luna, install this debug version. You must also have Tweaks installed and copy over the new attached json file. You use the json file as follows:
1. rename the attached "google-first-sync.json.txt" file to "google-first-sync.json" by deleting ".txt" from the end of the name. 2. place the "google-first-sync.json" file in the following directory: