Skip to content

Commit

Permalink
Move some class to Sendable
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Jan 31, 2025
1 parent ae802c9 commit 27d3ba6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion iOSClient/Data/NCManageDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protocol DateCompareable {
var dateKey: Date { get }
}

class NCManageDatabase: NSObject {
final class NCManageDatabase: NSObject, Sendable {
@objc static let shared: NCManageDatabase = {
let instance = NCManageDatabase()
return instance
Expand Down
2 changes: 1 addition & 1 deletion iOSClient/NCGlobal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import UIKit

class NCGlobal: NSObject {
final class NCGlobal: NSObject, Sendable {
static let shared = NCGlobal()

// ENUM
Expand Down
2 changes: 1 addition & 1 deletion iOSClient/Utility/NCUtility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import CoreMedia
import Photos
import Alamofire

class NCUtility: NSObject {
final class NCUtility: NSObject, Sendable {
let utilityFileSystem = NCUtilityFileSystem()
let global = NCGlobal.shared

Expand Down
4 changes: 2 additions & 2 deletions iOSClient/Utility/NCUtilityFileSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import UIKit
import NextcloudKit
import PhotosUI

class NCUtilityFileSystem: NSObject {
let fileManager = FileManager.default
final class NCUtilityFileSystem: NSObject, @unchecked Sendable {
let fileManager = FileManager()
var directoryGroup: String {
return fileManager.containerURL(forSecurityApplicationGroupIdentifier: NCBrandOptions.shared.capabilitiesGroup)?.path ?? ""
}
Expand Down

0 comments on commit 27d3ba6

Please sign in to comment.