Skip to content

Commit 888d119

Browse files
committed
Version 4.2.0
1 parent 69237cb commit 888d119

File tree

12 files changed

+127
-16
lines changed

12 files changed

+127
-16
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
ObjectBox C and C++ API Changelog
22
=================================
33

4+
4.2.0 (2025-03-04)
5+
------------------
6+
* Extended the model by external names and types:
7+
allows defining a different name for an external database, which ObjectBox syncs with.
8+
9+
This prepares upcoming features for our [MongoDB Sync Connector](https://sync.objectbox.io/mongodb-sync-connector).
10+
411
4.1.0 (2025-01-28)
512
------------------
613
* New query conditions for map properties (via flex properties):

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ else ()
4949

5050
function(defineObjectBoxLib VARIANT)
5151
# Configuration updated for each release
52-
set(DL_VERSION 4.1.0)
52+
set(DL_VERSION 4.2.0)
5353

5454
# Platform detection and other setup
5555
set(DL_URL https://github.com/objectbox/objectbox-c/releases/download)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ box.put({.text = "Buy milk"});
1818
1919
See [ObjectBox C and C++ docs](https://cpp.objectbox.io/) for API details.
2020
21-
**Latest version: 4.1.0** (2025-01-28).
21+
**Latest version: 4.2.0** (2025-03-04).
2222
See [changelog](CHANGELOG.md) for more details.
2323
2424
## Table of Contents:

download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tty -s || quiet=true
4444

4545
# Note: optional arguments like "--quiet" shifts argument positions in the case block above
4646

47-
version=${1:-4.1.0}
47+
version=${1:-4.2.0}
4848
os=${2:-$(uname)}
4949
arch=${3:-$(uname -m)}
5050
echo "Base config: OS ${os} and architecture ${arch}"

doxygen/Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
ObjectBox C and C++ API Changelog
44
=================================
55

6+
4.2.0 (2025-03-04)
7+
------------------
8+
* Extended the model by external names and types:
9+
allows defining a different name for an external database, which ObjectBox syncs with.
10+
11+
This prepares upcoming features for our [MongoDB Sync Connector](https://sync.objectbox.io/mongodb-sync-connector).
12+
613
4.1.0 (2025-01-28)
714
------------------
815
* New query conditions for map properties (via flex properties):

doxygen/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "ObjectBox C and C++ API"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "4.1.0"
41+
PROJECT_NUMBER = "4.2.0"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

examples/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ add_subdirectory(c-gen)
33
add_subdirectory(cpp-gen)
44
add_subdirectory(cpp-gen-sync)
55

6-
find_package(ObjectBoxGenerator 4.0.0)
6+
# Since core project is also using this CMakeLists.txt and it did not fetch the ObjectBoxGenerator, find it quietly.
7+
find_package(ObjectBoxGenerator 4.0.0 QUIET)
78
# Some platforms such as Linux ARM(64) and Windows ARM(64) are not supported.
89
# We exclude this example for these cases where the generator was not found.
910
if (ObjectBoxGenerator_FOUND)
1011
add_subdirectory(cpp-autogen)
1112
else ()
12-
message(WARNING "Did not add all examples, as the ObjectBoxGenerator CMake was not found")
13+
message(STATUS "Did not add all examples, as the ObjectBoxGenerator CMake was not found")
1314
endif ()
1415
add_subdirectory(vectorsearch-cities)

examples/cpp-autogen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_executable(${PROJECT_NAME}
55
main.cpp
66
)
77

8-
# add_obx_schema provided by ObjectBoxGenerator package.
8+
# add_obx_schema provided by ObjectBoxGenerator package, which is fetched in one of the parent CMakeLists.txt files.
99
add_obx_schema(TARGET ${PROJECT_NAME} SCHEMA_FILES tasklist.fbs INSOURCE)
1010

1111
set_target_properties(${PROJECT_NAME} PROPERTIES

include/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 == 1 && OBX_VERSION_PATCH == 0, // NOLINT
37+
static_assert(OBX_VERSION_MAJOR == 4 && OBX_VERSION_MINOR == 2 && OBX_VERSION_PATCH == 0, // NOLINT
3838
"Versions of objectbox.h and objectbox-sync.h files do not match, please update");
3939
#endif
4040

include/objectbox-sync.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "objectbox-sync.h"
2020
#include "objectbox.hpp"
2121

22-
static_assert(OBX_VERSION_MAJOR == 4 && OBX_VERSION_MINOR == 1 && OBX_VERSION_PATCH == 0, // NOLINT
22+
static_assert(OBX_VERSION_MAJOR == 4 && OBX_VERSION_MINOR == 2 && OBX_VERSION_PATCH == 0, // NOLINT
2323
"Versions of objectbox.h and objectbox-sync.hpp files do not match, please update");
2424

2525
namespace obx {

0 commit comments

Comments
 (0)