Browse Source

fix

Signed-off-by: marinofaggiana <marino.faggiana@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
4b5ef8555a
2 changed files with 7 additions and 14 deletions
  1. 4 5
      iOSClient/Networking/NCAutoUpload.swift
  2. 3 9
      iOSClient/Networking/NCService.swift

+ 4 - 5
iOSClient/Networking/NCAutoUpload.swift

@@ -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

+ 3 - 9
iOSClient/Networking/NCService.swift

@@ -242,18 +242,12 @@ class NCService: NSObject {
                 }
             }
 
-            //TODO: TEST API
+            //TODO: Test API
+            /*
             NCCommunication.shared.getDashboard { request in
-
             } completion: { dashboardResult, json, errorCode, errorDescription in
-                if let json = json {
-                    for (_, subJson):(String, JSON) in json["ocs"]["data"]["recommendations"] {
-                        print("")
-
-                    }
-                    
-                }
             }
+            */
         }
     }