Skip to content

Commit ce72f03

Browse files
ObjectBox Swift database 4.4.0
1 parent 90f8eb1 commit ce72f03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+757
-179
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Notable changes to the ObjectBox Swift library.
44

55
For more insights into what changed in the ObjectBox C++ core, [check the ObjectBox C changelog](https://github.com/objectbox/objectbox-c/blob/main/CHANGELOG.md).
66

7-
## Next release
7+
## 4.4.0 - 2025-07-09
88

99
- **Breaking API change: when using the Swift Package, make sure to run the generator again.**
1010
For Xcode projects, right-click your project in the Project navigator and click ObjectBoxGeneratorCommand.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ and search for the package URL:
167167
https://github.com/objectbox/objectbox-swift-spm
168168
```
169169

170-
For the Dependency Rule, we recommend to use "Up to Next Major Version" and version `4.3.0-beta.2`. To find the latest
170+
For the Dependency Rule, we recommend to use "Up to Next Major Version". To find the latest
171171
version to use view the [tags of the objectbox-swift-spm repository](https://github.com/objectbox/objectbox-swift-spm/tags).
172172

173173
Finally, when asked, add the `ObjectBox.xcframework` to your app target. Or to use
@@ -182,7 +182,7 @@ Now, you are all set to define your first ObjectBox entities! To continue check
182182
In your `Swift.package` file, add the ObjectBox Swift Package repository to the `dependencies` block:
183183

184184
```swift
185-
.package(url: "https://github.com/objectbox/objectbox-swift-spm.git", from: "4.3.0-beta.2"),
185+
.package(url: "https://github.com/objectbox/objectbox-swift-spm.git", from: "4.4.0"),
186186
```
187187

188188
Add the `ObjectBox.xcframework` to the `dependencies` of the desired target in `targets`:

Source/fetch_dependencies.command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313

1414
# objectbox-swift release version on GitHub:
1515
# https://github.com/objectbox/objectbox-swift/releases/download/v${version}
16-
version=4.3.0
16+
version=4.4.0
1717

1818
# C library version attached to the GitHub release:
1919
# ObjectBoxCore-static-${c_version}.zip

Source/ios-framework/CodeGenTests/expected/entity-info/EntityInfo.generated1.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ extension BusRoute: ObjectBox.EntityInspectable {
2121
internal typealias EntityBindingType = BusRouteBinding
2222

2323
/// Generated metadata used by ObjectBox to persist the entity.
24-
internal static var entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
24+
internal static let entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
2525

26-
internal static var entityBinding = EntityBindingType()
26+
internal static let entityBinding = EntityBindingType()
2727

2828
fileprivate static func buildEntity(modelBuilder: ObjectBox.ModelBuilder) throws {
2929
let entityBuilder = try modelBuilder.entityBuilder(for: BusRoute.self, id: 1, uid: 5107964062888457216)
@@ -74,7 +74,7 @@ extension ObjectBox.Property where E == BusRoute {
7474

7575

7676
/// Generated service type to handle persisting and reading entity data. Exposed through `BusRoute.EntityBindingType`.
77-
internal class BusRouteBinding: ObjectBox.EntityBinding {
77+
internal final class BusRouteBinding: ObjectBox.EntityBinding, Sendable {
7878
internal typealias EntityType = BusRoute
7979
internal typealias IdType = EntityId<BusRoute>
8080

Source/ios-framework/CodeGenTests/expected/entity-info/EntityInfo.generated12.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ extension BusRoute: ObjectBox.EntityInspectable {
2020
internal typealias EntityBindingType = BusRouteBinding
2121

2222
/// Generated metadata used by ObjectBox to persist the entity.
23-
internal static var entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
23+
internal static let entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
2424

25-
internal static var entityBinding = EntityBindingType()
25+
internal static let entityBinding = EntityBindingType()
2626

2727
fileprivate static func buildEntity(modelBuilder: ObjectBox.ModelBuilder) throws {
2828
let entityBuilder = try modelBuilder.entityBuilder(for: BusRoute.self, id: 1, uid: 5107964062888457216)
@@ -58,7 +58,7 @@ extension ObjectBox.Property where E == BusRoute {
5858

5959

6060
/// Generated service type to handle persisting and reading entity data. Exposed through `BusRoute.EntityBindingType`.
61-
internal class BusRouteBinding: ObjectBox.EntityBinding {
61+
internal final class BusRouteBinding: ObjectBox.EntityBinding, Sendable {
6262
internal typealias EntityType = BusRoute
6363
internal typealias IdType = EntityId<BusRoute>
6464

Source/ios-framework/CodeGenTests/expected/entity-info/EntityInfo.generated13.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ extension BusRoute: ObjectBox.EntityInspectable {
2020
internal typealias EntityBindingType = BusRouteBinding
2121

2222
/// Generated metadata used by ObjectBox to persist the entity.
23-
internal static var entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
23+
internal static let entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
2424

25-
internal static var entityBinding = EntityBindingType()
25+
internal static let entityBinding = EntityBindingType()
2626

2727
fileprivate static func buildEntity(modelBuilder: ObjectBox.ModelBuilder) throws {
2828
let entityBuilder = try modelBuilder.entityBuilder(for: BusRoute.self, id: 1, uid: 5107964062888457216)
@@ -73,7 +73,7 @@ extension ObjectBox.Property where E == BusRoute {
7373

7474

7575
/// Generated service type to handle persisting and reading entity data. Exposed through `BusRoute.EntityBindingType`.
76-
internal class BusRouteBinding: ObjectBox.EntityBinding {
76+
internal final class BusRouteBinding: ObjectBox.EntityBinding, Sendable {
7777
internal typealias EntityType = BusRoute
7878
internal typealias IdType = EntityId<BusRoute>
7979

Source/ios-framework/CodeGenTests/expected/entity-info/EntityInfo.generated14.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ extension BusRoute: ObjectBox.EntityInspectable {
2020
internal typealias EntityBindingType = BusRouteBinding
2121

2222
/// Generated metadata used by ObjectBox to persist the entity.
23-
internal static var entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
23+
internal static let entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
2424

25-
internal static var entityBinding = EntityBindingType()
25+
internal static let entityBinding = EntityBindingType()
2626

2727
fileprivate static func buildEntity(modelBuilder: ObjectBox.ModelBuilder) throws {
2828
let entityBuilder = try modelBuilder.entityBuilder(for: BusRoute.self, id: 1, uid: 5107964062888457216)
@@ -73,7 +73,7 @@ extension ObjectBox.Property where E == BusRoute {
7373

7474

7575
/// Generated service type to handle persisting and reading entity data. Exposed through `BusRoute.EntityBindingType`.
76-
internal class BusRouteBinding: ObjectBox.EntityBinding {
76+
internal final class BusRouteBinding: ObjectBox.EntityBinding, Sendable {
7777
internal typealias EntityType = BusRoute
7878
internal typealias IdType = EntityId<BusRoute>
7979

Source/ios-framework/CodeGenTests/expected/entity-info/EntityInfo.generated15.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ extension BusRoute: ObjectBox.EntityInspectable {
2020
internal typealias EntityBindingType = BusRouteBinding
2121

2222
/// Generated metadata used by ObjectBox to persist the entity.
23-
internal static var entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
23+
internal static let entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
2424

25-
internal static var entityBinding = EntityBindingType()
25+
internal static let entityBinding = EntityBindingType()
2626

2727
fileprivate static func buildEntity(modelBuilder: ObjectBox.ModelBuilder) throws {
2828
let entityBuilder = try modelBuilder.entityBuilder(for: BusRoute.self, id: 1, uid: 17664)
@@ -73,7 +73,7 @@ extension ObjectBox.Property where E == BusRoute {
7373

7474

7575
/// Generated service type to handle persisting and reading entity data. Exposed through `BusRoute.EntityBindingType`.
76-
internal class BusRouteBinding: ObjectBox.EntityBinding {
76+
internal final class BusRouteBinding: ObjectBox.EntityBinding, Sendable {
7777
internal typealias EntityType = BusRoute
7878
internal typealias IdType = EntityId<BusRoute>
7979

Source/ios-framework/CodeGenTests/expected/entity-info/EntityInfo.generated16.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ extension BusRoute: ObjectBox.EntityInspectable {
2020
internal typealias EntityBindingType = BusRouteBinding
2121

2222
/// Generated metadata used by ObjectBox to persist the entity.
23-
internal static var entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
23+
internal static let entityInfo = ObjectBox.EntityInfo(name: "BusRoute", id: 1)
2424

25-
internal static var entityBinding = EntityBindingType()
25+
internal static let entityBinding = EntityBindingType()
2626

2727
fileprivate static func buildEntity(modelBuilder: ObjectBox.ModelBuilder) throws {
2828
let entityBuilder = try modelBuilder.entityBuilder(for: BusRoute.self, id: 1, uid: 17664)
@@ -88,7 +88,7 @@ extension ObjectBox.Property where E == BusRoute {
8888

8989

9090
/// Generated service type to handle persisting and reading entity data. Exposed through `BusRoute.EntityBindingType`.
91-
internal class BusRouteBinding: ObjectBox.EntityBinding {
91+
internal final class BusRouteBinding: ObjectBox.EntityBinding, Sendable {
9292
internal typealias EntityType = BusRoute
9393
internal typealias IdType = EntityId<BusRoute>
9494

0 commit comments

Comments
 (0)