Skip to content

Commit 1d5c20c

Browse files
greenrobot-teamGraybox CI
authored and
Graybox CI
committed
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 {

Source/ios-framework/CommonTests/StoreTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ class StoreTests: XCTestCase {
4848
// Update the expected versions every now and then.
4949
// TODO XCTAssertGreaterThanOrEqual doesn't respect semantic versioning:
5050
// e.g. 0.10.0 will be evaluated as lower than 0.9.1
51-
XCTAssertGreaterThanOrEqual(Store.version, "1.8.1")
52-
XCTAssertGreaterThanOrEqual(Store.versionLib, "0.18.0")
53-
XCTAssertGreaterThanOrEqual(Store.versionCore, "3.5.1-2023-01-26")
51+
XCTAssertGreaterThanOrEqual(Store.version, "1.9.0")
52+
XCTAssertGreaterThanOrEqual(Store.versionLib, "0.19.0")
53+
XCTAssertGreaterThanOrEqual(Store.versionCore, "3.7.0-2023-09-11")
5454
}
5555

5656
func testCloseTwice() {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
model.json.bak
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
21+
</dict>
22+
</plist>
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1250"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "7561E8CE25CA0CA6003FD439"
18+
BuildableName = "ObjectBox.framework"
19+
BlueprintName = "ObjectBox-iOS Simulator"
20+
ReferencedContainer = "container:ObjectBox.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "NO"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "NO">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "5070A96C217F479C002305F8"
32+
BuildableName = "ObjectBoxTests-iOS.xctest"
33+
BlueprintName = "ObjectBoxTests-iOS"
34+
ReferencedContainer = "container:ObjectBox.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "5070A96C217F479C002305F8"
50+
BuildableName = "ObjectBoxTests-iOS.xctest"
51+
BlueprintName = "ObjectBoxTests-iOS"
52+
ReferencedContainer = "container:ObjectBox.xcodeproj">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
</TestAction>
57+
<LaunchAction
58+
buildConfiguration = "Debug"
59+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
60+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
61+
launchStyle = "0"
62+
useCustomWorkingDirectory = "NO"
63+
ignoresPersistentStateOnLaunch = "NO"
64+
debugDocumentVersioning = "YES"
65+
debugServiceExtension = "internal"
66+
allowLocationSimulation = "YES">
67+
</LaunchAction>
68+
<ProfileAction
69+
buildConfiguration = "Release"
70+
shouldUseLaunchSchemeArgsEnv = "YES"
71+
savedToolIdentifier = ""
72+
useCustomWorkingDirectory = "NO"
73+
debugDocumentVersioning = "YES">
74+
<MacroExpansion>
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "7561E8CE25CA0CA6003FD439"
78+
BuildableName = "ObjectBox.framework"
79+
BlueprintName = "ObjectBox-iOS Simulator"
80+
ReferencedContainer = "container:ObjectBox.xcodeproj">
81+
</BuildableReference>
82+
</MacroExpansion>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>

Source/ios-framework/ObjectBox.xcodeproj/xcshareddata/xcschemes/ObjectBox-macOS.xcscheme

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@
5959
debugDocumentVersioning = "YES"
6060
debugServiceExtension = "internal"
6161
allowLocationSimulation = "YES">
62-
<PathRunnable
63-
runnableDebuggingMode = "0"
64-
BundleIdentifier = "io.objectbox.NotesExample-macOS"
65-
FilePath = "/Users/uli/Library/Developer/Xcode/DerivedData/NotesExample-cqgsvuasfccaqlcxqpncrsimbwoy/Build/Products/Debug/NotesExample-macOS.app">
66-
</PathRunnable>
6762
<MacroExpansion>
6863
<BuildableReference
6964
BuildableIdentifier = "primary"

Source/ios-framework/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
This is the ObjectBox Swift **API reference**.
1010
Also check the **[guides](https://swift.objectbox.io/)** for general documentation including [setup](https://swift.objectbox.io/install) and [getting started](https://swift.objectbox.io/getting-started).
1111

12-
Current version: 1.8.1
12+
Current version: 1.9.0
1313

1414
## Most Important Types
1515

Source/ios-framework/docs/jazzy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: "ObjectBox"
44
author_url: "https://objectbox.io"
55

66
module: "ObjectBox"
7-
module_version: 1.8.0
7+
module_version: 1.9.0
88

99
github_url: "https://github.com/ObjectBox/objectbox-swift"
1010
root_url: "https://objectbox.io/docfiles/swift/current/"

cartspec/ObjectBox.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"1.9.0": "https://github.com/objectbox/objectbox-swift/releases/download/v1.9.0/ObjectBox-1.9.0-Carthage.framework.zip",
23
"1.8.1": "https://github.com/objectbox/objectbox-swift/releases/download/v1.8.1/ObjectBox-1.8.1-Carthage.framework.zip",
34
"1.8.0": "https://github.com/objectbox/objectbox-swift/releases/download/v1.8.0/ObjectBox-1.8.0-Carthage.framework.zip",
45
"1.7.0": "https://github.com/objectbox/objectbox-swift/releases/download/v1.7.0/ObjectBox-1.7.0-Carthage.framework.zip",

0 commit comments

Comments
 (0)