Skip to content

Commit

Permalink
Merge pull request #626 from Iterable/MOB-6106-Application-Directory-…
Browse files Browse the repository at this point in the history
…for-json-file-storage

[MOB - 6106] - Use Application Directory
  • Loading branch information
Ayyanchira authored Apr 20, 2023
2 parents 33d88c9 + a871948 commit 3360b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift-sdk/Internal/InAppPersistence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ class InAppFilePersister: InAppPersistenceProtocol {

struct FileHelper {
static func getUrl(filename: String, ext: String) -> URL? {
guard let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else {
guard let dir = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first else {
return nil
}

Expand Down

0 comments on commit 3360b46

Please sign in to comment.