Skip to content

Commit 441bdf9

Browse files
committed
[MOB - 6106] - Use Application Directory
Use Application Support Directory instead of Default document directory to store files required by SDK so that the files is not visible to user in Files App.
1 parent fd55d0a commit 441bdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-sdk/Internal/InAppPersistence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class InAppFilePersister: InAppPersistenceProtocol {
411411

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

0 commit comments

Comments
 (0)