Skip to content

Commit

Permalink
Update expected core to 4.0.2-2024-10-15, add core changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot authored and greenrobot-team committed Oct 22, 2024
1 parent 033d624 commit 74b6e3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions objectbox/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
* 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`.
* Flutter for Android: update to [objectbox-android 4.0.3](https://github.com/objectbox/objectbox-java/releases/tag/V4.0.3).
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).
Expand Down
8 changes: 4 additions & 4 deletions objectbox/lib/src/native/bindings/bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 74b6e3a

Please sign in to comment.