Skip to content

Commit 148d8dd

Browse files
committed
ObjectBox Swift database 1.8.1
1 parent ec093e2 commit 148d8dd

17 files changed

+3988
-280
lines changed

Package.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// swift-tools-version:5.3
2-
1+
// swift-tools-version:5.7
2+
33
import PackageDescription
4-
4+
55
let package = Package(
66
name: "ObjectBox",
77
platforms: [
@@ -15,8 +15,8 @@ let package = Package(
1515
targets: [
1616
.binaryTarget(
1717
name: "ObjectBox",
18-
url: "https://github.com/objectbox/objectbox-swift/releases/download/v1.7.0/ObjectBox-xcframework-1.7.0.zip",
19-
checksum: "fb842c0ccd86a81b0640bc2dc1eee39d36528fcfc8e0af51396a45e4af7db004"
18+
url: "https://github.com/objectbox/objectbox-swift/releases/download/v1.8.1/ObjectBox-xcframework-1.8.1.zip",
19+
checksum: "d4f6d9caed7ae2808b15b81b769ad48e47c78d8abb882ff6fa8938cda7cf864c"
2020
)
2121
]
2222
)

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.8.1 | 5.7.2 |
135136
| 1.8.0 | 5.7.1 |
136137
| 1.7.0 | 5.5 |
137138
| 1.6.0 | 5.4 |

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.0
92-
c_version=0.18.0
91+
version=1.8.1
92+
c_version=0.18.1
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/Box.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright © 2018-2020 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.

Source/ios-framework/CommonSource/Store.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright © 2019-2022 ObjectBox Ltd. All rights reserved.
2+
// Copyright © 2019-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.
@@ -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.0"
46+
public static var version = "1.8.1"
4747

4848
/// Returns the versions of ObjectBox Swift, the ObjectBox lib, and ObjectBox core.
4949
public static var versionAll: String {
@@ -191,7 +191,9 @@ public class Store: CustomDebugStringConvertible {
191191
public func closeAndDeleteAllFiles() throws {
192192
self.close()
193193
obx_remove_db_files(directoryPath)
194-
try FileManager.default.removeItem(at: URL(fileURLWithPath: directoryPath))
194+
if FileManager.default.fileExists(atPath: directoryPath) {
195+
try FileManager.default.removeItem(atPath: directoryPath)
196+
}
195197
}
196198

197199
internal let setUpMutexIdentifier: Bool = {

0 commit comments

Comments
 (0)