Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add history syncing #222
This is a WIP for history syncing, which depends on mozilla-mobile/android-components#1409
This has some hacks to change the FxA servers we use from production to https://latest.dev.lcip.org - this is because production hasn't all the config changes necessary to support what we need to do here - @rfk can elaborate if necessary. While we will probably not want to merge these changes, I restructured things a little so that it's much easier to change FxA stacks by changing just one constant - it might make sense to merge that refactor even if we can use prod by the time this is merged.
I've also made an attempt to update the last-sync timestamp, but the timestamp doesn't update immediately after pressing "sync now" as I wasn't sure whether to (and how to best) introduce a custom coroutine scope here.
This also doesn't look at the "choose what to sync" prefs - it unconditionally syncs history even if that option is de-selected - but that might be OK for an initial landing.