From 74b6e3acd3804360b7098190f427edc85f613f0c Mon Sep 17 00:00:00 2001 From: Markus Date: Thu, 17 Oct 2024 20:10:26 +0200 Subject: [PATCH] Update expected core to 4.0.2-2024-10-15, add core changelog --- objectbox/CHANGELOG.md | 7 +++++++ objectbox/lib/src/native/bindings/bindings.dart | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/objectbox/CHANGELOG.md b/objectbox/CHANGELOG.md index 7393e0af..96db9b04 100644 --- a/objectbox/CHANGELOG.md +++ b/objectbox/CHANGELOG.md @@ -3,6 +3,9 @@ * Generator: replace cryptography library, allows to use newer versions of the transitive `js` dependency. [#638](https://github.com/objectbox/objectbox-dart/issues/638) * iOS: support `Query.findWithScores()` with big objects (> 4 KB), previously would throw a `StorageException: Do not use vector-based find on 32 bit systems with big objects`. [#676](https://github.com/objectbox/objectbox-dart/issues/676) +* Make closing the Store more robust. It waits for ongoing queries and transactions to finish. + This is just an additional safety net. Your code should still make sure to finish all Store + operations, like queries, before closing it. * Flutter for Linux/Windows, Dart Native: update to [objectbox-c 4.0.2](https://github.com/objectbox/objectbox-c/releases/tag/v4.0.2). * Flutter for iOS/macOS: update to [objectbox-swift 4.0.1](https://github.com/objectbox/objectbox-swift/releases/tag/v4.0.1). Existing projects may have to run `pod repo update` and `pod update ObjectBox`. @@ -10,6 +13,10 @@ If you are [using Admin](https://docs.objectbox.io/data-browser#admin-for-android), make sure to update to `io.objectbox:objectbox-android-objectbrowser:4.0.3` in `android/app/build.gradle`. +### Sync +* **Fix a serious regression, please update as soon as possible.** +* Add special compression for tiny transactions (internally). + ## 4.0.2 (2024-08-14) * Sync: support option to enable [shared global IDs](https://sync.objectbox.io/advanced/object-ids#shared-global-ids). diff --git a/objectbox/lib/src/native/bindings/bindings.dart b/objectbox/lib/src/native/bindings/bindings.dart index 75a1b7f0..71861aaa 100644 --- a/objectbox/lib/src/native/bindings/bindings.dart +++ b/objectbox/lib/src/native/bindings/bindings.dart @@ -94,15 +94,15 @@ ObjectBoxC? _tryObjectBoxLibFile() { // Require the minimum C API version of all supported platform-specific // libraries. -// Library | C API version | Core version +// Library | C API version | Core version // objectbox-c | 4.0.2 | 4.0.2-2024-10-15 -// ObjectBox Swift 4.0.0 | 4.0.1 | 4.0.1-2024-07-17 -// objectbox-android 4.0.2 | 4.0.1 | 4.0.2-2024-08-19 +// ObjectBox Swift 4.0.1 | 4.0.2 | 4.0.2-2024-10-15 +// objectbox-android 4.0.3 | 4.0.1 | 4.0.2-2024-10-15 var _obxCminMajor = 4; var _obxCminMinor = 0; var _obxCminPatch = 1; // Require minimum core version guaranteeing actual C API availability. -var _obxCoreMinVersion = "4.0.1-2024-07-17"; +var _obxCoreMinVersion = "4.0.2-2024-10-15"; bool _isSupportedVersion(ObjectBoxC obxc) { if (!obxc.version_is_at_least(_obxCminMajor, _obxCminMinor, _obxCminPatch)) {