diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift index 0f3552a6a..7d952f24e 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift @@ -18,7 +18,7 @@ import NextcloudKit import NextcloudFileProviderKit import OSLog -@objc class FileProviderExtension: NSObject, NSFileProviderReplicatedExtension, NKCommonDelegate { +@objc class FileProviderExtension: NSObject, NSFileProviderReplicatedExtension { let domain: NSFileProviderDomain let ncKit = NextcloudKit() let appGroupIdentifier = Bundle.main.object(forInfoDictionaryKey: "SocketApiPrefix") as? String @@ -37,25 +37,6 @@ import OSLog return LocalSocketClient(socketPath: socketPath.path, lineProcessor: lineProcessor) }() - let urlSessionIdentifier = "com.nextcloud.session.upload.fileproviderext" - let urlSessionMaximumConnectionsPerHost = 5 - lazy var urlSession: URLSession = { - let configuration = URLSessionConfiguration.background(withIdentifier: urlSessionIdentifier) - configuration.allowsCellularAccess = true - configuration.sessionSendsLaunchEvents = true - configuration.isDiscretionary = false - configuration.httpMaximumConnectionsPerHost = urlSessionMaximumConnectionsPerHost - configuration.requestCachePolicy = NSURLRequest.CachePolicy.reloadIgnoringLocalCacheData - configuration.sharedContainerIdentifier = appGroupIdentifier - - let session = URLSession( - configuration: configuration, - delegate: ncKitBackground, - delegateQueue: OperationQueue.main - ) - return session - }() - // Whether or not we are going to recursively scan new folders when they are discovered. // Apple's recommendation is that we should always scan the file hierarchy fully. // This does lead to long load times when a file provider domain is initially configured.