Skip to content

Commit

Permalink
Update to Core 11.7.0 (#7609)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmelchior authored Dec 6, 2021
1 parent 2bf4176 commit 9e15e65
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
* 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.
* APIs are backwards compatible with all previous release of realm-java in the 10.6.y series.
* 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static_assert(SchemaMode::Automatic ==
static_assert(SchemaMode::Immutable==
static_cast<SchemaMode>(io_realm_internal_OsRealmConfig_SCHEMA_MODE_VALUE_IMMUTABLE),
"");
static_assert(SchemaMode::ReadOnlyAlternative ==
static_assert(SchemaMode::ReadOnly ==
static_cast<SchemaMode>(io_realm_internal_OsRealmConfig_SCHEMA_MODE_VALUE_READONLY),
"");
static_assert(SchemaMode::ResetFile ==
Expand Down Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion realm/realm-library/src/main/cpp/realm-core
Submodule realm-core updated 141 files
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9e15e65

Please sign in to comment.