It's important that the generated Dart C bindings have APIs matching the included C libraries. Dart won't error on C function signature mismatch, leading to obscure memory bugs.
For each:
- Update versions below
- Run update script
- Add CHANGELOG entry
- Commit changes
For Dart Native and unit tests (install.sh),
for the binding update script (see below) and
for Flutter (flutter_libs
and sync_flutter_libs
plugins) on Linux and Windows:
./tool/set-c-version.sh 4.2.0
* Update ObjectBox database for Flutter Linux/Windows, Dart Native apps to [4.2.0](https://github.com/objectbox/objectbox-c/releases/tag/v4.2.0).
Update C library [4.1.0 -> 4.2.0]
For the Flutter plugins on Android (view releases):
./tool/set-android-version.sh 4.2.0
* Update ObjectBox database for Flutter Android apps to 4.2.0.
If your project is [using Admin](https://docs.objectbox.io/data-browser#admin-for-android), make
sure to update to `io.objectbox:objectbox-android-objectbrowser:4.2.0` in `android/app/build.gradle`.
Update objectbox-android [4.1.0 -> 4.2.0]
Bundled with C API 4.2.0 and ObjectBox 4.2.0-2025-03-04
Note: the embedded C API and ObjectBox version can be looked up
from the relevant objectbox repository release tag (like java-4.1.0
).
For the Flutter plugins on iOS/macOS (view releases)
./tool/set-swift-version.sh 4.2.0
* Update ObjectBox database for Flutter iOS/macOS apps to 4.2.0.
For existing projects, run `pod repo update` and `pod update ObjectBox` in the `ios` or `macos` directories.
Update ObjectBox Swift [4.1.0 -> 4.2.0]
Bundled with C API 4.2.0 and ObjectBox 4.2.0-2025-03-04
Note: the embedded C API and ObjectBox version can be looked up
from the objectbox-swift release tag (like v4.1.0
) and
the objectbox commit it points to (see external/objectbox
).
To download the C library header files and generate bindings with ffigen (requires LLVM libraries, see ffigen docs and the ffigen section in pubspec.yaml):
./tool/update-c-binding.sh
Then manually:
- Copy/update enums that need to be exposed to users from objectbox_c.dart to enums.dart.
- Check the changed files, make any required changes in the Dart library (like method signature changes).
⚠️ Update minimum C API and core version and notes as needed in bindings.dart.- Commit as
Update C-API [4.1.0 -> 4.2.0]