diff --git a/CHANGELOG.md b/CHANGELOG.md index 52fdece33a..486d53332c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * Using "sort", "distinct", or "limit" as field name in query expression would cause an "Invalid predicate" error. (Issue [#7545](), since v10.X.X) * Crash when quering with 'Not()' followed by empty group. (Issue [Realm Core #4168]() since v1.0.0) * Streaming download notifiers reported incorrect values for transferrable bytes. (Issue [Realm Core #5008]() since v11.5.2) +* `@sum` and `@avg` queries on Dictionaries of floats or doubles used too much precision for intermediates, resulting in incorrect rounding. ### Compatibility * File format: Generates Realms with format v22. Unsynced Realms will be upgraded from Realm Java 2.0 and later. Synced Realms can only be read and upgraded if created with Realm Java v10.0.0-BETA.1. @@ -20,7 +21,7 @@ * Realm Studio 11.0.0-alpha.0 or above is required to open Realms created by this version. ### Internal -* Updated to Realm Core 11.6.0, commit: b170db6a47789ff5f2fbc3eeed0220b4b0a3f6b7. +* Updated to Realm Core 11.7.0, commit: 81eafa44879eb5f5829b345005abf99adb306133. * Building the SDK now requires JDK 11. * Updated to Gradle 7.2. * Updated to Android Gradle Plugin 7.1.0-beta03. diff --git a/realm/realm-library/src/main/cpp/io_realm_internal_OsRealmConfig.cpp b/realm/realm-library/src/main/cpp/io_realm_internal_OsRealmConfig.cpp index df6950dec4..f6621c7a6f 100644 --- a/realm/realm-library/src/main/cpp/io_realm_internal_OsRealmConfig.cpp +++ b/realm/realm-library/src/main/cpp/io_realm_internal_OsRealmConfig.cpp @@ -48,7 +48,7 @@ static_assert(SchemaMode::Automatic == static_assert(SchemaMode::Immutable== static_cast(io_realm_internal_OsRealmConfig_SCHEMA_MODE_VALUE_IMMUTABLE), ""); -static_assert(SchemaMode::ReadOnlyAlternative == +static_assert(SchemaMode::ReadOnly == static_cast(io_realm_internal_OsRealmConfig_SCHEMA_MODE_VALUE_READONLY), ""); static_assert(SchemaMode::ResetFile == @@ -349,7 +349,7 @@ JNIEXPORT jstring JNICALL Java_io_realm_internal_OsRealmConfig_nativeCreateAndSe config.sync_config->stop_policy = session_stop_policy; config.sync_config->error_handler = std::move(error_handler); switch (j_client_reset_mode) { - case io_realm_internal_OsRealmConfig_CLIENT_RESYNC_MODE_SEAMLESS_LOSS: config.sync_config->client_resync_mode = realm::ClientResyncMode::SeamlessLoss; break; + case io_realm_internal_OsRealmConfig_CLIENT_RESYNC_MODE_DISCARD_LOCAL: config.sync_config->client_resync_mode = realm::ClientResyncMode::DiscardLocal; break; case io_realm_internal_OsRealmConfig_CLIENT_RESYNC_MODE_MANUAL: config.sync_config->client_resync_mode = realm::ClientResyncMode::Manual; break; default: throw std::logic_error(util::format("Unsupported value for ClientResyncMode: %1", j_client_reset_mode)); } diff --git a/realm/realm-library/src/main/cpp/realm-core b/realm/realm-library/src/main/cpp/realm-core index b170db6a47..81eafa4487 160000 --- a/realm/realm-library/src/main/cpp/realm-core +++ b/realm/realm-library/src/main/cpp/realm-core @@ -1 +1 @@ -Subproject commit b170db6a47789ff5f2fbc3eeed0220b4b0a3f6b7 +Subproject commit 81eafa44879eb5f5829b345005abf99adb306133 diff --git a/realm/realm-library/src/main/java/io/realm/internal/OsRealmConfig.java b/realm/realm-library/src/main/java/io/realm/internal/OsRealmConfig.java index f6b20df116..825bbc4e0e 100644 --- a/realm/realm-library/src/main/java/io/realm/internal/OsRealmConfig.java +++ b/realm/realm-library/src/main/java/io/realm/internal/OsRealmConfig.java @@ -175,7 +175,7 @@ public Builder fifoFallbackDir(File dir) { // Public to be usable from the io.realm package public static final byte CLIENT_RESYNC_MODE_MANUAL = 0; - public static final byte CLIENT_RESYNC_MODE_SEAMLESS_LOSS = 1; + public static final byte CLIENT_RESYNC_MODE_DISCARD_LOCAL = 1; private static final long nativeFinalizerPtr = nativeGetFinalizerPtr();