Skip to content

Commit

Permalink
fix @objc
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 60ec2ad commit 2548164
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion iOSClient/Networking/NCNetworking+Synchronization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extension NCNetworking {
NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Synchronization \(serverUrl) in \(diffDate)")
completion(0, metadatasSynchronizationOffline.count)
} else {
NextcloudKit.shared.nkCommonInstance.writeLog("[ERROR] Synchronization \(serverUrl), \(error.errorCode), \(error.description)")
NextcloudKit.shared.nkCommonInstance.writeLog("[ERROR] Synchronization \(serverUrl), \(error.errorCode)")
completion(error.errorCode, metadatasSynchronizationOffline.count)
}
}
Expand Down
4 changes: 2 additions & 2 deletions iOSClient/Networking/NCNetworking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import Queuer
@objc protocol uploadE2EEDelegate: AnyObject { }
#endif

@objc protocol NCNetworkingDelegate {
protocol NCNetworkingDelegate {

Check warning on line 34 in iOSClient/Networking/NCNetworking.swift

View workflow job for this annotation

GitHub Actions / Lint

Class Delegate Protocol Violation: Delegate protocols should be class-only so they can be weakly referenced (class_delegate_protocol)
func downloadProgress(_ progress: Float, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask)
func uploadProgress(_ progress: Float, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask)
func downloadComplete(fileName: String, serverUrl: String, etag: String?, date: Date?, dateLastModified: Date?, length: Int64, task: URLSessionTask, error: NKError)
Expand Down Expand Up @@ -71,7 +71,7 @@ class NCNetworking: NSObject, NextcloudKitDelegate {
var requestsUnifiedSearch: [DataRequest] = []
var lastReachability: Bool = true
var networkReachability: NKCommon.TypeReachability?
weak var delegate: NCNetworkingDelegate?
var delegate: NCNetworkingDelegate?
weak var certificateDelegate: ClientCertificateDelegate?
var p12Data: Data?
var p12Password: String?
Expand Down
2 changes: 1 addition & 1 deletion iOSClient/Utility/NCContentPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class NCContentPresenter: NSObject {
priority: priority)
}

@objc func messageNotification(_ title: String, error: NKError, delay: TimeInterval, type: messageType, afterDelay: TimeInterval = 0) {
func messageNotification(_ title: String, error: NKError, delay: TimeInterval, type: messageType, afterDelay: TimeInterval = 0) {
messageNotification(title, error: error, delay: delay, type: type, priority: .normal, dropEnqueuedEntries: false, afterDelay: afterDelay)
}

Expand Down

0 comments on commit 2548164

Please sign in to comment.