Skip to content

Commit 9836d7c

Browse files
Update C-API [4.2.0 -> 4.3.0]
1 parent 67c01e5 commit 9836d7c

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

objectbox/lib/src/modelinfo/enums.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,13 @@ abstract class OBXExternalPropertyType {
321321
/// Representing type: String
322322
static const int JavaScript = 111;
323323

324+
/// A JSON string that is converted to a native representation in the external system.
325+
/// For example, a JSON object on the ObjectBox side (string) would be converted to an embedded document in MongoDB.
326+
/// It depends on the external system what kind of JSON structures is supported.
327+
/// For MongoDB, this is very flexible and allows (nested) objects, arrays, primitives, etc.
328+
/// Representing type: String
329+
static const int JsonToNative = 112;
330+
324331
/// A vector (array) of Int128 values
325332
static const int Int128Vector = 116;
326333

objectbox/lib/src/native/bindings/bindings.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ ObjectBoxC? _tryObjectBoxLibFile() {
9696
// libraries.
9797
// Library | C API | Database
9898
// ------------------------|-------|-----------------
99-
// objectbox-c | 4.2.0 | 4.2.0-2025-03-04
100-
// ObjectBox Swift 4.2.0 | 4.2.0 | 4.2.0-2025-03-27
101-
// objectbox-android 4.2.0 | 4.2.0 | 4.2.0-2025-03-04
99+
// C library 4.3.0 | 4.3.0 | 4.3.0-2025-05-12
100+
// Android library 4.3.0 | 4.3.0 | 4.3.0-2025-05-12
101+
// macOS/iOS library 4.3.0 | 4.3.0 | 4.3.0-2025-05-12
102102
var _obxCminMajor = 4;
103-
var _obxCminMinor = 2;
103+
var _obxCminMinor = 3;
104104
var _obxCminPatch = 0;
105105
// Require minimum database version guaranteeing actual C API availability.
106-
var _obxDatabaseMinVersion = "4.2.0-2025-03-04";
106+
var _obxDatabaseMinVersion = "4.3.0-2025-05-12";
107107

108108
bool _isSupportedVersion(ObjectBoxC obxc) {
109109
// Require a minimum C API version

objectbox/lib/src/native/bindings/objectbox-sync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "objectbox.h"
3535

3636
#if defined(static_assert) || defined(__cplusplus)
37-
static_assert(OBX_VERSION_MAJOR == 4 && OBX_VERSION_MINOR == 2 && OBX_VERSION_PATCH == 0, // NOLINT
37+
static_assert(OBX_VERSION_MAJOR == 4 && OBX_VERSION_MINOR == 3 && OBX_VERSION_PATCH == 0, // NOLINT
3838
"Versions of objectbox.h and objectbox-sync.h files do not match, please update");
3939
#endif
4040

objectbox/lib/src/native/bindings/objectbox.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extern "C" {
5252
/// When using ObjectBox as a dynamic library, you should verify that a compatible version was linked using
5353
/// obx_version() or obx_version_is_at_least().
5454
#define OBX_VERSION_MAJOR 4
55-
#define OBX_VERSION_MINOR 2
55+
#define OBX_VERSION_MINOR 3
5656
#define OBX_VERSION_PATCH 0 // values >= 100 are reserved for dev releases leading to the next minor/major increase
5757

5858
//----------------------------------------------
@@ -669,7 +669,12 @@ typedef enum {
669669
/// JavaScript source code
670670
/// Representing type: String
671671
OBXExternalPropertyType_JavaScript = 111,
672-
// OBXExternalPropertyType_Reserved5 = 112,
672+
/// A JSON string that is converted to a native representation in the external system.
673+
/// For example, a JSON object on the ObjectBox side (string) would be converted to an embedded document in MongoDB.
674+
/// It depends on the external system what kind of JSON structures is supported.
675+
/// For MongoDB, this is very flexible and allows (nested) objects, arrays, primitives, etc.
676+
/// Representing type: String
677+
OBXExternalPropertyType_JsonToNative = 112,
673678
// OBXExternalPropertyType_Reserved6 = 113,
674679
// OBXExternalPropertyType_Reserved7 = 114,
675680
// OBXExternalPropertyType_Reserved8 = 115,

objectbox/lib/src/native/bindings/objectbox_c.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10692,6 +10692,13 @@ abstract class OBXExternalPropertyType {
1069210692
/// Representing type: String
1069310693
static const int JavaScript = 111;
1069410694

10695+
/// A JSON string that is converted to a native representation in the external system.
10696+
/// For example, a JSON object on the ObjectBox side (string) would be converted to an embedded document in MongoDB.
10697+
/// It depends on the external system what kind of JSON structures is supported.
10698+
/// For MongoDB, this is very flexible and allows (nested) objects, arrays, primitives, etc.
10699+
/// Representing type: String
10700+
static const int JsonToNative = 112;
10701+
1069510702
/// A vector (array) of Int128 values
1069610703
static const int Int128Vector = 116;
1069710704

@@ -11669,7 +11676,7 @@ typedef obx_dart_closer
1166911676

1167011677
const int OBX_VERSION_MAJOR = 4;
1167111678

11672-
const int OBX_VERSION_MINOR = 2;
11679+
const int OBX_VERSION_MINOR = 3;
1167311680

1167411681
const int OBX_VERSION_PATCH = 0;
1167511682

0 commit comments

Comments
 (0)