Skip to content

Commit

Permalink
Drop the db connection before deleting the db (#389)
Browse files Browse the repository at this point in the history
* bump to latest

* add the try
  • Loading branch information
nplasterer authored Aug 20, 2024
1 parent 135991e commit 0896eea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions Sources/XMTPiOS/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ public final class Client {
}

public func deleteLocalDatabase() throws {
try dropLocalDatabaseConnection()
let fm = FileManager.default
try fm.removeItem(atPath: dbPath)
}
Expand Down
4 changes: 2 additions & 2 deletions XMTP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down

0 comments on commit 0896eea

Please sign in to comment.