зеркало из https://github.com/nextcloud/desktop.git
Add change observer from NCFPK
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
6a64248ff6
Коммит
68370ade88
|
@ -103,6 +103,8 @@ extension FileProviderExtension: NSFileProviderServicing {
|
|||
nextcloudVersion: 25,
|
||||
delegate: nil) // TODO: add delegate methods for self
|
||||
|
||||
changeObserver = RemoteChangeObserver(ncKit: ncKit, domain: domain)
|
||||
|
||||
Logger.fileProviderExtension.info(
|
||||
"Nextcloud account set up in File Provider extension for user: \(user, privacy: .public) at server: \(serverUrl, privacy: .public)"
|
||||
)
|
||||
|
|
|
@ -23,6 +23,7 @@ import OSLog
|
|||
let ncKit = NextcloudKit()
|
||||
let appGroupIdentifier = Bundle.main.object(forInfoDictionaryKey: "SocketApiPrefix") as? String
|
||||
var ncAccount: Account?
|
||||
var changeObserver: RemoteChangeObserver?
|
||||
lazy var ncKitBackground = NKBackground(nkCommonInstance: ncKit.nkCommonInstance)
|
||||
lazy var socketClient: LocalSocketClient? = {
|
||||
guard let containerUrl = pathForAppGroupContainer() else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче