Skip to content

Commit

Permalink
Release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot committed Nov 4, 2024
1 parent d7dee55 commit a2a13df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# ObjectBox Generator

Current version: 4.0.0-beta
Current version: 4.0.0

ObjectBox is a superfast cross-platform object-oriented database.
ObjectBox Generator produces code for ObjectBox C, C++ and Go APIs (more languages to be supported in the future).
Expand Down Expand Up @@ -36,9 +36,10 @@ Build notes:
To get started, have a look at the specific language bindings (the approaches differ):

* C and C++ [repository](https://github.com/objectbox/objectbox-c) and [docs](https://cpp.objectbox.io/).
In summary, you define a FlatBuffers schema file, and the ObjectBox Generator will create plain C++ data classes
and helper classes that "glue" the data classes to the ObjectBox runtime library.
CMake users can also use the convenient add_obx_schema() task instead of using the generator executable directly.
* CMake users use `add_obx_schema()` task to configure and invoke the generator at build time.
* Non-CMake users can run the generator directly.
In summary, you define a FlatBuffers schema file, and the ObjectBox Generator will create plain C++ data classes
and helper classes that "glue" the data classes to the ObjectBox runtime library.
* Go [repository](https://github.com/objectbox/objectbox-go) and [docs](https://golang.objectbox.io/).
Here, you start with Go data structs, for which the Generator generates the glue code directly.

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindObjectBoxGenerator.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Generated headers and sources are written to the sub-directories ``ObjectBoxGene
option(OBX_GENERATOR_ALLOW_FETCH "Opt-in automatic download and prepare for local execution" ON)

# Updated by maintainer to latest available version:
set(ObjectBoxGenerator_FETCH_VERSION 4.0.0-beta) # Note: must be safe for filename
set(ObjectBoxGenerator_FETCH_VERSION 4.0.0) # Note: must be safe for filename
# Using the version in the directories used for the generator executable to cleanly support multiple versions.
# This is e.g. relevant when updating to ensure fetching the new version.
set(ObjectBoxGenerator_FETCH_DIR ${CMAKE_BINARY_DIR}/ObjectBoxGenerator-download/${ObjectBoxGenerator_FETCH_VERSION}/fetch)
Expand Down
2 changes: 1 addition & 1 deletion internal/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
)

// Version specifies the current generator version.
const Version = "4.0.0-beta"
const Version = "4.0.0"

// VersionId specifies the current generator version identifier.
// It is used to validate generated code compatibility and is increased when there are changes in the generated code.
Expand Down

0 comments on commit a2a13df

Please # to comment.