Skip to content

Commit

Permalink
Fix the database directory creation to allow absolute (#346)
Browse files Browse the repository at this point in the history
* fix the database directory creation to be absolute

* bump the pod

* bring back the directory check before creating
  • Loading branch information
nplasterer authored Jun 5, 2024
1 parent d17af5e commit 1280ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/XMTPiOS/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public final class Client {
var directoryURL: URL
if let mlsDbDirectory = mlsDbDirectory {
let fileManager = FileManager.default
directoryURL = URL.documentsDirectory.appendingPathComponent(mlsDbDirectory)
directoryURL = URL(fileURLWithPath: mlsDbDirectory, isDirectory: true)
// Check if the directory exists, if not, create it
if !fileManager.fileExists(atPath: directoryURL.path) {
do {
Expand Down
2 changes: 1 addition & 1 deletion 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.11.3"
spec.version = "0.11.4"
spec.summary = "XMTP SDK Cocoapod"

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 1280ab8

Please sign in to comment.