realm-kotlin icon indicating copy to clipboard operation
realm-kotlin copied to clipboard

Update to Core 12.5.0

Open edualonso opened this issue 3 years ago • 0 comments

Fixes #867

Updated to Core 12.5.0 and fixed the following breaking changes

  • Queries now receive a realm_query_arg_t instead of a realm_value_t - see https://github.com/realm/realm-core/issues/4266 for more details.
  • Anonymous logins now have the option of not reusing the same anonymous user - I've implemented it the same way .NET did, see https://github.com/realm/realm-dotnet/blob/d5b334a1fe5f5d5be1139e2e7f28558e2ebe417d/Realm/Realm/Sync/Credentials.cs#L99 - thoughts @cmelchior?
  • realm_convert_with_config now receives a boolean that triggers copying over all objects present in the realm specified by the provided configuration, though we default it to false to avoid copying things - thoughs @cmelchior?
  • Added new recovery modes for client reset (though they are not used yet, they will be added when adding automatic reset with recovery).
  • onBefore and onAfter client reset callbacks now return a boolean to allow routing errors through onError in Kotlin Native. As a consequence of this SyncClientResetIntegrationJVMTests.kt was no longer needed and was removed.
  • Sync-related download and upload completion blocks have been unified under realm_sync_wait_for_completion_func_t.

TODO:

  • [ ] update changelog
  • [ ] missing tests for new anonymous login without reuseExisting user

edualonso avatar Aug 11 '22 12:08 edualonso