Skip to content

Releases: mongodb/stitch-android-sdk

4.7.0

31 Jan 14:59
5a7109e
Compare
Choose a tag to compare
  • Fix bugs for customData

Release 4.5.0

15 Jul 14:21
bb82cbb
Compare
Choose a tag to compare
  • Adds support for additional options for watch in RemoteMongoCollection.
    • Watch for events on all documents.
    • Watch for all events matching a provided $match filter.
  • Fixes a bug where the remote MongoDB service for the server SDK had a dependency that had been deprecated and no longer published to gradle (see #166).

Release 4.4.1

06 Jun 22:06
172cd86
Compare
Choose a tag to compare
  • Update Jackson dependency to fix security vulnerability.

Release 4.4.0

31 May 22:36
1054fcd
Compare
Choose a tag to compare

NOTE: This release has breaking changes for the MongoDB Mobile Sync Beta

  • Mobile sync now uses compact change streams, which should save on network usage for collections with large documents and frequent updates that only affect a few fields.
    • When calling configure on a Sync, the ChangeEventListener will no longer guarantee that the ChangeEvent will have a non-null result for getFullDocument() if the OperationType is UPDATE.
    • When calling configure on a Sync, the signature for ConflictHandler#resolveConflict has changed:
      • It now returns a ConflictResolution. See the documentation for ConflictResolution for more information.
      • The type of the remote event in resolveConflict is now a CompactChangeEvent, to reflect the type of event received from the server. This means that when the remote event is an UPDATE, getFullDocument() will always return null.
  • It is now possible to add a listener/callback on the stream returned by RemoteMongoCollection#watch and RemoteMongoCollection#watchCompact.

Release 4.3.3

15 May 16:29
9dc6a8b
Compare
Choose a tag to compare
  • Fixed a bug where an invalid session might not get refreshed, causing sync to freeze up and watch streams to fail to open.

Release 4.3.0

06 May 03:57
Compare
Choose a tag to compare
  • Adds support for findOne, findOneAndReplace, findOneAndUpdate, findOneAndDelete operations
  • Adds recovery for network reconnect
  • Uses hashing to improve synchronization behavior
  • Automatically versions documents when remote and local are unversioned
  • Local reads now permitted while sync is in progress
  • Fixes various internal bugs and performance issues with the Mobile Sync Beta.

Release 4.2.1

05 Mar 19:01
Compare
Choose a tag to compare
  • Fixes various internal bugs and performance issues with the Mobile Sync Beta.
    • NOTE: This release has breaking changes for the Mobile Sync Beta.
      • The methods configure, syncOne, syncMany, desyncOne, desyncMany, getSyncedIds, getPausedDocumentIds, and resumeSyncForDocument are now asynchronous and return a Task. This is to prevent accidentally freezing the UI on sync tasks.
      • Existing code that calls configure, syncOne, syncMany, desyncOne, and desyncMany does not need to change, since the they return Task<Void>. A completion listener can be added if you would like to react to configuration completing, or a document being configured as synced, but it is not necessary.
      • Existing code that calls getSyncedIds, getPausedDocumentIds, and resumeSyncForDocument must be called with a completion listener, or Tasks.await to use the result.

Release 4.2.0

27 Feb 00:25
Compare
Choose a tag to compare
  • Adds multi-user support to the SDK
  • Adds the ability to watch remote collections
  • Miscellaneous behind-the-scenes improvements in sync behavior

Release 4.1.4

22 Dec 05:35
7a87b51
Compare
Choose a tag to compare

This release addresses some dependency vulnerabilities:

  • io.jsonwebtoken:jjwt:0.9.0 -> io.jsonwebtoken:jjwt:0.9.1
  • com.fasterxml.jackson.core:jackson-databind:2.9.5 -> com.fasterxml.jackson.core:jackson-databind:2.9.7
  • com.fasterxml.jackson.module:jackson-module-kotlin:2.9.5 -> com.fasterxml.jackson.module:jackson-module-kotlin:2.9.7

Release 4.1.3

07 Dec 18:05
Compare
Choose a tag to compare
  • Support for contacting applications deployed with a "local" deployment model
    • Before the first call to the client v2 API, the SDK now contacts the global MongoDB Stitch server to find out the deployment model and localized hostname for the application. The call is then redirected to the localized hostname (e.g. calls to Stitch for an app deployed locally to US-VA will hit a stitch server residing specifically in that location, while an app deployed globally will always use the global Stitch URL)
    • Subsequent calls to the API use the cached result
  • Fixed a bug in the sync beta code where a remote event with no version didn't conflict with a local document with no version.
  • Fixed a bug in the sync beta example app where stale local data would sometimes be improperly displayed in the UI.