|
@@ -25,7 +25,6 @@ import UIKit
|
|
|
import CoreLocation
|
|
|
import NCCommunication
|
|
|
import Photos
|
|
|
-import NextcloudKit
|
|
|
import Queuer
|
|
|
|
|
|
class NCAutoUpload: NSObject {
|
|
@@ -87,7 +86,7 @@ class NCAutoUpload: NSObject {
|
|
|
self.getCameraRollAssets(viewController: viewController, account: account, selector: selector, alignPhotoLibrary: false) { assets in
|
|
|
guard let assets = assets, !assets.isEmpty else {
|
|
|
#if EXTENSION_WIDGET
|
|
|
- NKCommon.shared.writeLog("Automatic upload widget, no new assets found [" + log + "]")
|
|
|
+ NCCommunicationCommon.shared.writeLog("Automatic upload widget, no new assets found [" + log + "]")
|
|
|
#else
|
|
|
NCCommunicationCommon.shared.writeLog("Automatic upload, no new assets found [" + log + "]")
|
|
|
#endif
|
|
@@ -95,7 +94,7 @@ class NCAutoUpload: NSObject {
|
|
|
return
|
|
|
}
|
|
|
#if EXTENSION_WIDGET
|
|
|
- NKCommon.shared.writeLog("Automatic upload widget, new \(assets.count) assets found [" + log + "]")
|
|
|
+ NCCommunicationCommon.shared.writeLog("Automatic upload widget, new \(assets.count) assets found [" + log + "]")
|
|
|
#else
|
|
|
NCCommunicationCommon.shared.writeLog("Automatic upload, new \(assets.count) assets found [" + log + "]")
|
|
|
#endif
|
|
@@ -172,7 +171,7 @@ class NCAutoUpload: NSObject {
|
|
|
}
|
|
|
if selector == NCGlobal.shared.selectorUploadAutoUpload {
|
|
|
#if EXTENSION_WIDGET
|
|
|
- NKCommon.shared.writeLog("Automatic upload widget added \(metadata.fileNameView) with Identifier \(metadata.assetLocalIdentifier)")
|
|
|
+ NCCommunicationCommon.shared.writeLog("Automatic upload widget added \(metadata.fileNameView) with Identifier \(metadata.assetLocalIdentifier)")
|
|
|
#else
|
|
|
NCCommunicationCommon.shared.writeLog("Automatic upload added \(metadata.fileNameView) with Identifier \(metadata.assetLocalIdentifier)")
|
|
|
#endif
|
|
@@ -271,7 +270,7 @@ class NCAutoUpload: NSObject {
|
|
|
|
|
|
NCManageDatabase.shared.addPhotoLibrary(assets, account: activeAccount.account)
|
|
|
#if EXTENSION_WIDGET
|
|
|
- NKCommon.shared.writeLog("Widget align Photo Library \(assets.count)")
|
|
|
+ NCCommunicationCommon.shared.writeLog("Widget align Photo Library \(assets.count)")
|
|
|
#else
|
|
|
NCCommunicationCommon.shared.writeLog("Align Photo Library \(assets.count)")
|
|
|
#endif
|