STITCH-1996 Add reactive user rebinding of services on switch
This also adds the new StitchAuthDelegate methods (these are the enhanced StitchAuthListener changes from the other SDKs) and integration tests for those methods
I noticed that the tests for this listener on Android were not very robust, so I opened the ticket STITCH-2570 to make those tests more robust.
STITCH-2282 DataSynchronizer should make initialization async
I’m putting this up with the caveat that asynchronous data synchronizer initialization is not quite complete. Some calls that were once synchronous may now block, and there is the possibility of nil pointer accesses in edge cases we’ve missed.
These are not urgent concerns since the multi-user functionality works, but it’s something we should address soon, probably when Jason gets back so we can discuss the necessary API changes. I filed STITCH-2558 and STITCH-2559 to track this.
STITCH-2264 Multiplex local client on app ID
Since each app ID and user ID has its own data directory, I also removed the instance key from the sync_user_ and sync_undo_ database names, so now user-defined db and coll names can be longer (the instance key is staying on the sync_config_ db name since the namespace is not defined by user namespaces, but it’s not strictly necessary. I kept it because it may help us in the future with troubleshooting)
When this review is approved, I will manually squash my commits into one so that Jason’s foundational work on this PR is recognized in a commit in the git history of the SDK.
This should cover
StitchAuthDelegate
methods (these are the enhancedStitchAuthListener
changes from the other SDKs) and integration tests for those methodssync_user_
andsync_undo_
database names, so now user-defined db and coll names can be longer (the instance key is staying on thesync_config_
db name since the namespace is not defined by user namespaces, but it’s not strictly necessary. I kept it because it may help us in the future with troubleshooting)When this review is approved, I will manually squash my commits into one so that Jason’s foundational work on this PR is recognized in a commit in the git history of the SDK.