Skip to content

Commit 1d5c20c

Browse files
greenrobot-teamGraybox CI
authored andcommitted
ObjectBox Swift database 1.9.0
1 parent 3c96b8d commit 1d5c20c

File tree

18 files changed

+294
-49
lines changed

18 files changed

+294
-49
lines changed

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// swift-tools-version:5.7
2+
// WARNING This file is generated by ios-framework/cocoapod/make-release.command
23

34
import PackageDescription
45

@@ -15,8 +16,8 @@ let package = Package(
1516
targets: [
1617
.binaryTarget(
1718
name: "ObjectBox",
18-
url: "https://github.com/objectbox/objectbox-swift/releases/download/v1.8.1/ObjectBox-xcframework-1.8.1.zip",
19-
checksum: "d4f6d9caed7ae2808b15b81b769ad48e47c78d8abb882ff6fa8938cda7cf864c"
19+
url: "https://github.com/objectbox/objectbox-swift/releases/download/v1.9.0/ObjectBox-xcframework-1.9.0.zip",
20+
checksum: "039889a100789aaf1b0ae0de4a881f281f4e2c423d890a660eb06b3538c49111"
2021
)
2122
]
2223
)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ Here's a list of ObjectBox releases, and the Swift versions they were compiled w
132132

133133
| ObjectBox version(s) | Swift version |
134134
|:--------------------:|:-------------:|
135+
| 1.9.0 | 5.8.1 |
135136
| 1.8.1 | 5.7.2 |
136137
| 1.8.0 | 5.7.1 |
137138
| 1.7.0 | 5.5 |

Source/external/SwiftLint

Submodule SwiftLint updated 51 files

Source/fetch_dependencies.command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ if [ -d "$code_dir" ] && [ "$staging_repo" != "true" ]; then # Do we have an exi
8888
popd
8989
else # Download static public release and unzip into $dest
9090
if [ ! -d "${dest_dir}" ] || [ ! -e "${dest_dir}/libObjectBoxCore-iOS.a" ]; then
91-
version=1.8.1
92-
c_version=0.18.1
91+
version=1.9.0
92+
c_version=0.19.0
9393
archive_path="${my_dir}/external/objectbox-static.zip"
9494
if [ "$staging_repo" == "true" ]; then
9595
release_url_path="https://github.com/objectbox/objectbox-swift-spec-staging/releases/download/v1.x"

Source/ios-framework/CommonSource/Entities/EntityBuilder.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ public class EntityBuilder<T> {
4141
}
4242

4343
public func flags(_ flags: EntityFlags) throws {
44-
let err = obx_model_entity_flags(model, OBXEntityFlags(flags.rawValue))
44+
let err = obx_model_entity_flags(model, flags.rawValue)
4545
try checkLastError(err)
4646
}
4747

4848
public func flags(_ flags: [EntityFlags]) throws {
49-
let err = obx_model_entity_flags(model, OBXEntityFlags(flags.rawValue))
49+
let err = obx_model_entity_flags(model, flags.rawValue)
5050
try checkLastError(err)
5151
}
5252

@@ -62,7 +62,7 @@ public class EntityBuilder<T> {
6262
indexId: UInt32 = 0, indexUid: UInt64 = 0) throws {
6363
let err1 = obx_model_property(model, name, OBXPropertyType(UInt32(type.rawValue)), id, uid)
6464
try checkLastError(err1)
65-
let err2 = obx_model_property_flags(model, OBXPropertyFlags(flags.rawValue))
65+
let err2 = obx_model_property_flags(model, flags.rawValue)
6666
try checkLastError(err2)
6767
if indexId != 0 && indexUid != 0 {
6868
let err3 = obx_model_property_index_id(model, indexId, indexUid)

Source/ios-framework/CommonSource/Internal/objectbox-c-sync.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2022 ObjectBox Ltd. All rights reserved.
2+
* Copyright 2018-2023 ObjectBox Ltd. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@
3434
#include "objectbox-c.h"
3535

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

Source/ios-framework/CommonSource/Internal/objectbox-c.h

Lines changed: 159 additions & 26 deletions
Large diffs are not rendered by default.

Source/ios-framework/CommonSource/Query/QueryBuilder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ where E == E.EntityBindingType.EntityType {
7878
/// descending instead of ascending.
7979
public func ordered<T>(by property: Property<EntityType, T, Void>, flags: [OrderFlags] = [])
8080
-> QueryBuilder<EntityType> {
81-
obx_qb_order(queryBuilder, property.propertyId, OBXOrderFlags(flags.rawValue))
81+
obx_qb_order(queryBuilder, property.propertyId, flags.rawValue)
8282
return self
8383
}
8484

Source/ios-framework/CommonSource/Store.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class Store: CustomDebugStringConvertible {
4343
internal(set) public var directoryPath: String
4444

4545
/// Returns the version of ObjectBox Swift.
46-
public static var version = "1.8.1"
46+
public static var version = "1.9.0"
4747

4848
/// Returns the versions of ObjectBox Swift, the ObjectBox lib, and ObjectBox core.
4949
public static var versionAll: String {

0 commit comments

Comments
 (0)