From 0896eeac64fe348b4a9a4f330f7883ceb60a7e00 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Tue, 20 Aug 2024 16:39:44 -0600 Subject: [PATCH] Drop the db connection before deleting the db (#389) * bump to latest * add the try --- Package.swift | 2 +- Sources/XMTPiOS/Client.swift | 1 + XMTP.podspec | 4 ++-- .../project.xcworkspace/xcshareddata/swiftpm/Package.resolved | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Package.swift b/Package.swift index 7a1c3498..f69541a6 100644 --- a/Package.swift +++ b/Package.swift @@ -25,7 +25,7 @@ let package = Package( .package(url: "https://github.com/1024jp/GzipSwift", from: "5.2.0"), .package(url: "https://github.com/bufbuild/connect-swift", exact: "0.12.0"), .package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0"), - .package(url: "https://github.com/xmtp/libxmtp-swift.git", exact: "0.5.7-beta3"), + .package(url: "https://github.com/xmtp/libxmtp-swift.git", exact: "0.5.7-beta4"), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. diff --git a/Sources/XMTPiOS/Client.swift b/Sources/XMTPiOS/Client.swift index 146c854b..7e3273a3 100644 --- a/Sources/XMTPiOS/Client.swift +++ b/Sources/XMTPiOS/Client.swift @@ -543,6 +543,7 @@ public final class Client { } public func deleteLocalDatabase() throws { + try dropLocalDatabaseConnection() let fm = FileManager.default try fm.removeItem(atPath: dbPath) } diff --git a/XMTP.podspec b/XMTP.podspec index fd724250..dd81f389 100644 --- a/XMTP.podspec +++ b/XMTP.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |spec| # spec.name = "XMTP" - spec.version = "0.14.6" + spec.version = "0.14.7" spec.summary = "XMTP SDK Cocoapod" # This description is used to generate tags and improve search results. @@ -44,5 +44,5 @@ Pod::Spec.new do |spec| spec.dependency "web3.swift" spec.dependency "GzipSwift" spec.dependency "Connect-Swift", "= 0.12.0" - spec.dependency 'LibXMTP', '= 0.5.7-beta3' + spec.dependency 'LibXMTP', '= 0.5.7-beta4' end diff --git a/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 77adf40f..5f1e124e 100644 --- a/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -59,8 +59,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/xmtp/libxmtp-swift.git", "state" : { - "revision" : "0b2d92a8da6caa2e5f16a2ea060b099278354d74", - "version" : "0.5.7-beta3" + "revision" : "39a3bfd39adc93cf3207946ab302a3579014f369", + "version" : "0.5.7-beta4" } }, {