mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Move CloudKitRemoteNotificationOperation to CloudKitSync module.
This commit is contained in:
parent
5d1bd9c5e4
commit
83e73821f4
@ -9,11 +9,10 @@
|
||||
import Foundation
|
||||
import os.log
|
||||
import Core
|
||||
import CloudKitSync
|
||||
|
||||
class CloudKitRemoteNotificationOperation: MainThreadOperation {
|
||||
|
||||
private var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "CloudKit")
|
||||
@MainActor public final class CloudKitRemoteNotificationOperation: MainThreadOperation {
|
||||
|
||||
private let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "CloudKit")
|
||||
|
||||
// MainThreadOperation
|
||||
public var isCanceled = false
|
||||
@ -26,13 +25,13 @@ class CloudKitRemoteNotificationOperation: MainThreadOperation {
|
||||
private weak var articlesZone: CloudKitArticlesZone?
|
||||
private var userInfo: [AnyHashable : Any]
|
||||
|
||||
init(accountZone: CloudKitAccountZone, articlesZone: CloudKitArticlesZone, userInfo: [AnyHashable : Any]) {
|
||||
public init(accountZone: CloudKitAccountZone, articlesZone: CloudKitArticlesZone, userInfo: [AnyHashable : Any]) {
|
||||
self.accountZone = accountZone
|
||||
self.articlesZone = articlesZone
|
||||
self.userInfo = userInfo
|
||||
}
|
||||
|
||||
@MainActor func run() {
|
||||
@MainActor public func run() {
|
||||
guard let accountZone = accountZone, let articlesZone = articlesZone else {
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
return
|
Loading…
Reference in New Issue
Block a user