Skip to content

Commit

Permalink
Corrected changelog and wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe committed Feb 28, 2024
1 parent 26bfc48 commit 28b8b88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* `String` and `byte[]` are now strongly typed for comparisons and queries. This change is especially relevant when querying for a string constant on a `RealmValue` property, as now only strings will be returned. If searching for binary data is desired, then that type must be specified by the constant. In RQL (`.Filter()`) the new way to specify a binary constant is to use `RealmValueProp = bin('xyz')` or `RealmValueProp = binary('xyz')`. (Core 14.0.0-beta.0)
* Sorting order of strings has changed to use standard unicode codepoint order instead of grouping similar english letters together. A noticeable change will be from "aAbBzZ" to "ABZabz". (Core 14.0.0-beta.0)
* In RQL (`Filter()`), ff you want to query using `@type` operation, you must use `objectlink` to match links to objects. `object` is reserved for dictionary types. (Core 14.0.0)
* Opening file with file format 23 (Realm .NET versions ealrier than 12.0.0) in read-only mode will crash. (Core 14.0.0)

### Enhancements
* Add support for passing a key paths collection (`KeyPathsCollection`) when using `IRealmCollection.SubscribeForNotifications`. Passing a `KeyPathsCollection` allows to specify which changes in properties should raise a notification.
Expand Down
20 changes: 6 additions & 14 deletions wrappers/src/app_cs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,26 +296,18 @@ extern "C" {
}

REALM_EXPORT void shared_app_reset_for_testing(SharedApp& app) {

if (!app->sync_manager()->get_logger()) {
return;
}

auto users = app->all_users();
for (size_t i = 0; i < users.size(); i++) {
auto &user = users[i];
user->log_out();
}

while (app->sync_manager()->has_existing_sessions()) {
sleep_ms(5);
}

bool did_reset = false;
while (!did_reset) {
try {
app->sync_manager()->tear_down_for_testing();
did_reset = true;
}
catch (...) {

}
}
app->sync_manager()->tear_down_for_testing();

App::clear_cached_apps();
}
Expand Down

0 comments on commit 28b8b88

Please sign in to comment.