Przeglądaj źródła

Merge branch 'develop'

marinofaggiana 5 lat temu
rodzic
commit
fcc246ca97
100 zmienionych plików z 151 dodań i 102 usunięć
  1. 1 0
      .gitignore
  2. 1 1
      Cartfile
  3. 1 1
      Cartfile.resolved
  4. 3 3
      File Provider Extension/FileProviderData.swift
  5. 67 9
      File Provider Extension/FileProviderEnumerator.swift
  6. 3 1
      File Provider Extension/FileProviderExtension+NetworkingDelegate.swift
  7. 12 12
      Nextcloud.xcodeproj/project.pbxproj
  8. 1 1
      Share/ShareViewController.m
  9. 36 6
      iOSClient/AppDelegate.m
  10. 14 0
      iOSClient/Brand/NCBrand.swift
  11. 2 55
      iOSClient/Favorites/CCFavorites.m
  12. 5 6
      iOSClient/Main/CCMain.m
  13. 2 5
      iOSClient/Main/CCSplit.m
  14. 1 1
      iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift
  15. 1 0
      iOSClient/Networking/CCNetworking.m
  16. BIN
      iOSClient/Supporting Files/af.lproj/Localizable.strings
  17. BIN
      iOSClient/Supporting Files/ar.lproj/Localizable.strings
  18. BIN
      iOSClient/Supporting Files/ast.lproj/Localizable.strings
  19. BIN
      iOSClient/Supporting Files/az.lproj/Localizable.strings
  20. BIN
      iOSClient/Supporting Files/be.lproj/Localizable.strings
  21. BIN
      iOSClient/Supporting Files/bg_BG.lproj/Localizable.strings
  22. BIN
      iOSClient/Supporting Files/bn_BD.lproj/Localizable.strings
  23. BIN
      iOSClient/Supporting Files/bs.lproj/Localizable.strings
  24. BIN
      iOSClient/Supporting Files/ca.lproj/Localizable.strings
  25. BIN
      iOSClient/Supporting Files/cs-CZ.lproj/Localizable.strings
  26. BIN
      iOSClient/Supporting Files/cy_GB.lproj/Localizable.strings
  27. BIN
      iOSClient/Supporting Files/da.lproj/Localizable.strings
  28. BIN
      iOSClient/Supporting Files/de.lproj/Localizable.strings
  29. BIN
      iOSClient/Supporting Files/el.lproj/Localizable.strings
  30. BIN
      iOSClient/Supporting Files/en-GB.lproj/Localizable.strings
  31. 1 1
      iOSClient/Supporting Files/en.lproj/Localizable.strings
  32. BIN
      iOSClient/Supporting Files/eo.lproj/Localizable.strings
  33. BIN
      iOSClient/Supporting Files/es-419.lproj/Localizable.strings
  34. BIN
      iOSClient/Supporting Files/es-AR.lproj/Localizable.strings
  35. BIN
      iOSClient/Supporting Files/es-CL.lproj/Localizable.strings
  36. BIN
      iOSClient/Supporting Files/es-CO.lproj/Localizable.strings
  37. BIN
      iOSClient/Supporting Files/es-CR.lproj/Localizable.strings
  38. BIN
      iOSClient/Supporting Files/es-DO.lproj/Localizable.strings
  39. BIN
      iOSClient/Supporting Files/es-EC.lproj/Localizable.strings
  40. BIN
      iOSClient/Supporting Files/es-GT.lproj/Localizable.strings
  41. BIN
      iOSClient/Supporting Files/es-HN.lproj/Localizable.strings
  42. BIN
      iOSClient/Supporting Files/es-MX.lproj/Localizable.strings
  43. BIN
      iOSClient/Supporting Files/es-NI.lproj/Localizable.strings
  44. BIN
      iOSClient/Supporting Files/es-PA.lproj/Localizable.strings
  45. BIN
      iOSClient/Supporting Files/es-PE.lproj/Localizable.strings
  46. BIN
      iOSClient/Supporting Files/es-PR.lproj/Localizable.strings
  47. BIN
      iOSClient/Supporting Files/es-PY.lproj/Localizable.strings
  48. BIN
      iOSClient/Supporting Files/es-SV.lproj/Localizable.strings
  49. BIN
      iOSClient/Supporting Files/es-UY.lproj/Localizable.strings
  50. BIN
      iOSClient/Supporting Files/es.lproj/Localizable.strings
  51. BIN
      iOSClient/Supporting Files/et_EE.lproj/Localizable.strings
  52. BIN
      iOSClient/Supporting Files/eu.lproj/Localizable.strings
  53. BIN
      iOSClient/Supporting Files/fa.lproj/Localizable.strings
  54. BIN
      iOSClient/Supporting Files/fi-FI.lproj/Localizable.strings
  55. BIN
      iOSClient/Supporting Files/fr.lproj/Localizable.strings
  56. BIN
      iOSClient/Supporting Files/gl.lproj/Localizable.strings
  57. BIN
      iOSClient/Supporting Files/he.lproj/Localizable.strings
  58. BIN
      iOSClient/Supporting Files/hr.lproj/Localizable.strings
  59. BIN
      iOSClient/Supporting Files/hu.lproj/Localizable.strings
  60. BIN
      iOSClient/Supporting Files/hy.lproj/Localizable.strings
  61. BIN
      iOSClient/Supporting Files/ia.lproj/Localizable.strings
  62. BIN
      iOSClient/Supporting Files/id.lproj/Localizable.strings
  63. BIN
      iOSClient/Supporting Files/is.lproj/Localizable.strings
  64. BIN
      iOSClient/Supporting Files/it.lproj/Localizable.strings
  65. BIN
      iOSClient/Supporting Files/ja-JP.lproj/Localizable.strings
  66. BIN
      iOSClient/Supporting Files/ka-GE.lproj/Localizable.strings
  67. BIN
      iOSClient/Supporting Files/km.lproj/Localizable.strings
  68. BIN
      iOSClient/Supporting Files/kn.lproj/Localizable.strings
  69. BIN
      iOSClient/Supporting Files/ko.lproj/Localizable.strings
  70. BIN
      iOSClient/Supporting Files/lb.lproj/Localizable.strings
  71. BIN
      iOSClient/Supporting Files/lt_LT.lproj/Localizable.strings
  72. BIN
      iOSClient/Supporting Files/lv.lproj/Localizable.strings
  73. BIN
      iOSClient/Supporting Files/mk.lproj/Localizable.strings
  74. BIN
      iOSClient/Supporting Files/mn.lproj/Localizable.strings
  75. BIN
      iOSClient/Supporting Files/ms_MY.lproj/Localizable.strings
  76. BIN
      iOSClient/Supporting Files/nb-NO.lproj/Localizable.strings
  77. BIN
      iOSClient/Supporting Files/nl.lproj/Localizable.strings
  78. BIN
      iOSClient/Supporting Files/nn_NO.lproj/Localizable.strings
  79. BIN
      iOSClient/Supporting Files/oc.lproj/Localizable.strings
  80. BIN
      iOSClient/Supporting Files/pl.lproj/Localizable.strings
  81. BIN
      iOSClient/Supporting Files/pt-BR.lproj/Localizable.strings
  82. BIN
      iOSClient/Supporting Files/pt-PT.lproj/Localizable.strings
  83. BIN
      iOSClient/Supporting Files/ro.lproj/Localizable.strings
  84. BIN
      iOSClient/Supporting Files/ru.lproj/Localizable.strings
  85. BIN
      iOSClient/Supporting Files/si_LK.lproj/Localizable.strings
  86. BIN
      iOSClient/Supporting Files/sk-SK.lproj/Localizable.strings
  87. BIN
      iOSClient/Supporting Files/sl.lproj/Localizable.strings
  88. BIN
      iOSClient/Supporting Files/sq.lproj/Localizable.strings
  89. BIN
      iOSClient/Supporting Files/sr.lproj/Localizable.strings
  90. BIN
      iOSClient/Supporting Files/sr@latin.lproj/Localizable.strings
  91. BIN
      iOSClient/Supporting Files/sv.lproj/Localizable.strings
  92. BIN
      iOSClient/Supporting Files/ta_LK.lproj/Localizable.strings
  93. BIN
      iOSClient/Supporting Files/th_TH.lproj/Localizable.strings
  94. BIN
      iOSClient/Supporting Files/tr.lproj/Localizable.strings
  95. BIN
      iOSClient/Supporting Files/ug.lproj/Localizable.strings
  96. BIN
      iOSClient/Supporting Files/uk.lproj/Localizable.strings
  97. BIN
      iOSClient/Supporting Files/ur_PK.lproj/Localizable.strings
  98. BIN
      iOSClient/Supporting Files/vi.lproj/Localizable.strings
  99. BIN
      iOSClient/Supporting Files/zh-Hans.lproj/Localizable.strings
  100. BIN
      iOSClient/Supporting Files/zh-Hant-TW.lproj/Localizable.strings

+ 1 - 0
.gitignore

@@ -27,3 +27,4 @@ UserInterfaceState.xcuserstate
 
 
 ## Carthage
 ## Carthage
 Carthage/
 Carthage/
+Cartfile.resolved

+ 1 - 1
Cartfile

@@ -1,4 +1,4 @@
-github "nextcloud/ios-communication-library" "v0.2"
+github "nextcloud/ios-communication-library" "v0.3"
 github "tilltue/TLPhotoPicker" "2.0.7"
 github "tilltue/TLPhotoPicker" "2.0.7"
 github "kishikawakatsumi/UICKeyChainStore" "v2.1.2"
 github "kishikawakatsumi/UICKeyChainStore" "v2.1.2"
 github "danielsaidi/Sheeeeeeeeet" "3.0.9"
 github "danielsaidi/Sheeeeeeeeet" "3.0.9"

+ 1 - 1
Cartfile.resolved

@@ -16,7 +16,7 @@ github "krzyzanowskim/OpenSSL" "1.0.218"
 github "malcommac/SwiftRichString" "3.0.4"
 github "malcommac/SwiftRichString" "3.0.4"
 github "marinofaggiana/AFNetworking" "2967678c3e0e98c9b8d7e06222ad12d1f49c26f2"
 github "marinofaggiana/AFNetworking" "2967678c3e0e98c9b8d7e06222ad12d1f49c26f2"
 github "marinofaggiana/FastScroll" "81967c2309d29bc2c330d422da612160a30bade8"
 github "marinofaggiana/FastScroll" "81967c2309d29bc2c330d422da612160a30bade8"
-github "nextcloud/ios-communication-library" "v0.2"
+github "nextcloud/ios-communication-library" "v0.3"
 github "realm/realm-cocoa" "v4.1.1"
 github "realm/realm-cocoa" "v4.1.1"
 github "rechsteiner/Parchment" "v1.7.0"
 github "rechsteiner/Parchment" "v1.7.0"
 github "tilltue/TLPhotoPicker" "2.0.7"
 github "tilltue/TLPhotoPicker" "2.0.7"

+ 3 - 3
File Provider Extension/FileProviderData.swift

@@ -82,7 +82,7 @@ class fileProviderData: NSObject {
             accountUrl = tableAccount.url
             accountUrl = tableAccount.url
             homeServerUrl = CCUtility.getHomeServerUrlActiveUrl(tableAccount.url)
             homeServerUrl = CCUtility.getHomeServerUrlActiveUrl(tableAccount.url)
             
             
-            NCCommunicationCommon.sharedInstance.setup(username: accountUserID, password: accountPassword, userAgent: CCUtility.getUserAgent(), capabilitiesGroup: NCBrandOptions.sharedInstance.capabilitiesGroups, delegate: NCNetworking.sharedInstance)
+            NCCommunicationCommon.sharedInstance.setup(username: accountUser, userID: accountUserID,  password: accountPassword, userAgent: CCUtility.getUserAgent(), capabilitiesGroup: NCBrandOptions.sharedInstance.capabilitiesGroups, delegate: NCNetworking.sharedInstance)
             NCNetworking.sharedInstance.setup(account: tableAccount.account, delegate: providerExtension as? NCNetworkingDelegate)
             NCNetworking.sharedInstance.setup(account: tableAccount.account, delegate: providerExtension as? NCNetworkingDelegate)
             
             
             return true
             return true
@@ -104,7 +104,7 @@ class fileProviderData: NSObject {
                 accountUrl = tableAccount.url
                 accountUrl = tableAccount.url
                 homeServerUrl = CCUtility.getHomeServerUrlActiveUrl(tableAccount.url)
                 homeServerUrl = CCUtility.getHomeServerUrlActiveUrl(tableAccount.url)
                 
                 
-                NCCommunicationCommon.sharedInstance.setup(username: accountUserID, password: accountPassword, userAgent: CCUtility.getUserAgent(), capabilitiesGroup: NCBrandOptions.sharedInstance.capabilitiesGroups, delegate: NCNetworking.sharedInstance)
+                NCCommunicationCommon.sharedInstance.setup(username: accountUser, userID: accountUserID, password: accountPassword, userAgent: CCUtility.getUserAgent(), capabilitiesGroup: NCBrandOptions.sharedInstance.capabilitiesGroups, delegate: NCNetworking.sharedInstance)
                 NCNetworking.sharedInstance.setup(account: tableAccount.account, delegate: providerExtension as? NCNetworkingDelegate)
                 NCNetworking.sharedInstance.setup(account: tableAccount.account, delegate: providerExtension as? NCNetworkingDelegate)
 
 
                 foundAccount = true
                 foundAccount = true
@@ -132,7 +132,7 @@ class fileProviderData: NSObject {
                 accountUrl = tableAccount.url
                 accountUrl = tableAccount.url
                 homeServerUrl = CCUtility.getHomeServerUrlActiveUrl(tableAccount.url)
                 homeServerUrl = CCUtility.getHomeServerUrlActiveUrl(tableAccount.url)
                 
                 
-                NCCommunicationCommon.sharedInstance.setup(username: accountUserID, password: accountPassword, userAgent: CCUtility.getUserAgent(), capabilitiesGroup: NCBrandOptions.sharedInstance.capabilitiesGroups, delegate: NCNetworking.sharedInstance)
+                NCCommunicationCommon.sharedInstance.setup(username: accountUser, userID: accountUserID, password: accountPassword, userAgent: CCUtility.getUserAgent(), capabilitiesGroup: NCBrandOptions.sharedInstance.capabilitiesGroups, delegate: NCNetworking.sharedInstance)
                 NCNetworking.sharedInstance.setup(account: tableAccount.account, delegate: providerExtension as? NCNetworkingDelegate)
                 NCNetworking.sharedInstance.setup(account: tableAccount.account, delegate: providerExtension as? NCNetworkingDelegate)
                 
                 
                 foundAccount = true
                 foundAccount = true

+ 67 - 9
File Provider Extension/FileProviderEnumerator.swift

@@ -102,21 +102,42 @@ class FileProviderEnumerator: NSObject, NSFileProviderEnumerator {
             
             
             if (page == NSFileProviderPage.initialPageSortedByDate as NSFileProviderPage || page == NSFileProviderPage.initialPageSortedByName as NSFileProviderPage) {
             if (page == NSFileProviderPage.initialPageSortedByDate as NSFileProviderPage || page == NSFileProviderPage.initialPageSortedByName as NSFileProviderPage) {
                 
                 
-                readFileOrFolder(serverUrl: serverUrl) {
-                    let metadatas = NCManageDatabase.sharedInstance.getMetadatas(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", fileProviderData.sharedInstance.account, serverUrl), page: 1, limit: fileProviderData.sharedInstance.itemForPage, sorted: "fileName", ascending: true)
+                if NCBrandBeta.shared.iOSHelper {
                     
                     
-                    self.completeObserver(observer, numPage: 1, metadatas: metadatas)
+                    // Beta
+                    self.readFolder(serverUrl: serverUrl, page: 1, limit: fileProviderData.sharedInstance.itemForPage) { (metadatas) in
+                        self.completeObserver(observer, numPage: 1, metadatas: metadatas)
+                    }
+                    
+                } else {
+                    
+                    readFileOrFolder(serverUrl: serverUrl) {
+                        let metadatas = NCManageDatabase.sharedInstance.getMetadatas(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", fileProviderData.sharedInstance.account, serverUrl), page: 1, limit: fileProviderData.sharedInstance.itemForPage, sorted: "fileName", ascending: true)
+                        
+                        self.completeObserver(observer, numPage: 1, metadatas: metadatas)
+                    }
+                    
+                    // Update the WorkingSet -> Favorite
+                    fileProviderData.sharedInstance.updateFavoriteForWorkingSet()
                 }
                 }
                 
                 
-                // Update the WorkingSet -> Favorite
-                fileProviderData.sharedInstance.updateFavoriteForWorkingSet()
-                
             } else {
             } else {
                 
                 
                 let numPage = Int(String(data: page.rawValue, encoding: .utf8)!)!
                 let numPage = Int(String(data: page.rawValue, encoding: .utf8)!)!
-                let metadatas = NCManageDatabase.sharedInstance.getMetadatas(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", fileProviderData.sharedInstance.account, serverUrl), page: numPage, limit: fileProviderData.sharedInstance.itemForPage, sorted: "fileName", ascending: true)
-                
-                completeObserver(observer, numPage: numPage, metadatas: metadatas)
+
+                if NCBrandBeta.shared.iOSHelper {
+                         
+                    // Beta
+                    self.readFolder(serverUrl: serverUrl, page: 1, limit: fileProviderData.sharedInstance.itemForPage) { (metadatas) in
+                        self.completeObserver(observer, numPage: 1, metadatas: metadatas)
+                    }
+                    
+                } else {
+            
+                    let metadatas = NCManageDatabase.sharedInstance.getMetadatas(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", fileProviderData.sharedInstance.account, serverUrl), page: numPage, limit: fileProviderData.sharedInstance.itemForPage, sorted: "fileName", ascending: true)
+                    
+                    completeObserver(observer, numPage: numPage, metadatas: metadatas)
+                }
             }
             }
         }
         }
     }
     }
@@ -247,4 +268,41 @@ class FileProviderEnumerator: NSObject, NSFileProviderEnumerator {
         })
         })
     }
     }
     
     
+    func readFolder(serverUrl: String, page: Int, limit: Int, completionHandler: @escaping (_ metadatas: [tableMetadata]?) -> Void) {
+        
+        let offset = (page - 1) * limit
+        let serverUrl = fileProviderData.sharedInstance.accountUrl
+        var fileNamePath = "/"
+        
+        if serverUrl != fileProviderData.sharedInstance.accountUrl {
+            fileNamePath = CCUtility.returnPathfromServerUrl(serverUrl, activeUrl: fileProviderData.sharedInstance.accountUrl)!
+        }
+        
+        NCCommunication.sharedInstance.iosHelper(serverUrl: serverUrl, fileNamePath: fileNamePath, offset: offset, limit: limit, account: fileProviderData.sharedInstance.account) { (account, files, errorCode, errorDescription) in
+            
+             if errorCode == 0 && files != nil  && files!.count >= 1 {
+                
+                // Prepare DB
+                if offset == 0 {
+                    NCManageDatabase.sharedInstance.deleteMetadata(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@ AND (status == %d OR status == %d)", account, serverUrl, k_metadataStatusNormal, k_metadataStatusHide))
+                    NCManageDatabase.sharedInstance.setDateReadDirectory(serverUrl: serverUrl, account: account)
+                    let metadatasInDownload = NCManageDatabase.sharedInstance.getMetadatas(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@ AND (status == %d OR status == %d OR status == %d OR status == %d)", account, serverUrl, k_metadataStatusWaitDownload, k_metadataStatusInDownload, k_metadataStatusDownloading, k_metadataStatusDownloadError), sorted: nil, ascending: false)
+                    let metadatasInUpload = NCManageDatabase.sharedInstance.getMetadatas(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@ AND (status == %d OR status == %d OR status == %d OR status == %d)", account, serverUrl, k_metadataStatusWaitUpload, k_metadataStatusInUpload, k_metadataStatusUploading, k_metadataStatusUploadError), sorted: nil, ascending: false)
+                    if metadatasInDownload != nil {
+                        _ = NCManageDatabase.sharedInstance.addMetadatas(metadatasInDownload!)
+                    }
+                    if metadatasInUpload != nil {
+                        _ = NCManageDatabase.sharedInstance.addMetadatas(metadatasInUpload!)
+                    }
+                }
+                
+                NCManageDatabase.sharedInstance.addMetadatas(files: files!, account: account, serverUrl: serverUrl, removeFirst: true)
+            }
+            
+            let metadatas = NCManageDatabase.sharedInstance.getMetadatas(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", fileProviderData.sharedInstance.account, serverUrl), page: page, limit: fileProviderData.sharedInstance.itemForPage, sorted: "fileName", ascending: true)
+            
+            completionHandler(metadatas)
+        }
+    }
+    
 }
 }

+ 3 - 1
File Provider Extension/FileProviderExtension+NetworkingDelegate.swift

@@ -32,7 +32,9 @@ extension FileProviderExtension: NCNetworkingDelegate {
         guard let metadata = NCManageDatabase.sharedInstance.getMetadata(predicate: NSPredicate(format: "ocId == %@", ocIdTemp)) else { return }
         guard let metadata = NCManageDatabase.sharedInstance.getMetadata(predicate: NSPredicate(format: "ocId == %@", ocIdTemp)) else { return }
         
         
         let url = URL(fileURLWithPath: CCUtility.getDirectoryProviderStorageOcId(ocIdTemp, fileNameView: fileName))
         let url = URL(fileURLWithPath: CCUtility.getDirectoryProviderStorageOcId(ocIdTemp, fileNameView: fileName))
-        outstandingSessionTasks.removeValue(forKey: url)
+        DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
+            self.outstandingSessionTasks.removeValue(forKey: url)
+        }
         outstandingOcIdTemp[ocIdTemp] = ocId
         outstandingOcIdTemp[ocIdTemp] = ocId
         
         
         if error == nil && statusCode >= 200 && statusCode < 300 {
         if error == nil && statusCode >= 200 && statusCode < 300 {

+ 12 - 12
Nextcloud.xcodeproj/project.pbxproj

@@ -3854,7 +3854,7 @@
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/Share.entitlements;
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/Share.entitlements;
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				CURRENT_PROJECT_VERSION = 10;
+				CURRENT_PROJECT_VERSION = 6;
 				DEBUG_INFORMATION_FORMAT = dwarf;
 				DEBUG_INFORMATION_FORMAT = dwarf;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
@@ -3873,7 +3873,7 @@
 				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LIBRARY_SEARCH_PATHS = "\"Libraries external\"/**";
 				LIBRARY_SEARCH_PATHS = "\"Libraries external\"/**";
-				MARKETING_VERSION = 2.25.2;
+				MARKETING_VERSION = 2.25.3;
 				OTHER_LDFLAGS = "-ObjC";
 				OTHER_LDFLAGS = "-ObjC";
 				PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.Share;
 				PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.Share;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PRODUCT_NAME = "$(TARGET_NAME)";
@@ -3898,7 +3898,7 @@
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/Share.entitlements;
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/Share.entitlements;
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				CURRENT_PROJECT_VERSION = 10;
+				CURRENT_PROJECT_VERSION = 6;
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
@@ -3917,7 +3917,7 @@
 				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LIBRARY_SEARCH_PATHS = "\"Libraries external\"/**";
 				LIBRARY_SEARCH_PATHS = "\"Libraries external\"/**";
-				MARKETING_VERSION = 2.25.2;
+				MARKETING_VERSION = 2.25.3;
 				OTHER_LDFLAGS = "-ObjC";
 				OTHER_LDFLAGS = "-ObjC";
 				PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.Share;
 				PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.Share;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PRODUCT_NAME = "$(TARGET_NAME)";
@@ -3948,7 +3948,7 @@
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Automatic;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 10;
+				CURRENT_PROJECT_VERSION = 6;
 				DEBUG_INFORMATION_FORMAT = dwarf;
 				DEBUG_INFORMATION_FORMAT = dwarf;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
@@ -3967,7 +3967,7 @@
 				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
 				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LIBRARY_SEARCH_PATHS = "\"Libraries external\"/**";
 				LIBRARY_SEARCH_PATHS = "\"Libraries external\"/**";
-				MARKETING_VERSION = 2.25.2;
+				MARKETING_VERSION = 2.25.3;
 				OTHER_LDFLAGS = "-ObjC";
 				OTHER_LDFLAGS = "-ObjC";
 				PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.Nextcloud.File-Provider-Extension";
 				PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.Nextcloud.File-Provider-Extension";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PRODUCT_NAME = "$(TARGET_NAME)";
@@ -3998,7 +3998,7 @@
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Automatic;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 10;
+				CURRENT_PROJECT_VERSION = 6;
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
@@ -4017,7 +4017,7 @@
 				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
 				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LIBRARY_SEARCH_PATHS = "\"Libraries external\"/**";
 				LIBRARY_SEARCH_PATHS = "\"Libraries external\"/**";
-				MARKETING_VERSION = 2.25.2;
+				MARKETING_VERSION = 2.25.3;
 				OTHER_LDFLAGS = "-ObjC";
 				OTHER_LDFLAGS = "-ObjC";
 				PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.Nextcloud.File-Provider-Extension";
 				PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.Nextcloud.File-Provider-Extension";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PRODUCT_NAME = "$(TARGET_NAME)";
@@ -4040,7 +4040,7 @@
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/iOSClient.entitlements;
 				CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/iOSClient.entitlements;
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				CURRENT_PROJECT_VERSION = 10;
+				CURRENT_PROJECT_VERSION = 6;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				ENABLE_BITCODE = YES;
 				ENABLE_BITCODE = YES;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
@@ -4058,7 +4058,7 @@
 				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LIBRARY_SEARCH_PATHS = "";
 				LIBRARY_SEARCH_PATHS = "";
-				MARKETING_VERSION = 2.25.2;
+				MARKETING_VERSION = 2.25.3;
 				OTHER_LDFLAGS = "-ObjC";
 				OTHER_LDFLAGS = "-ObjC";
 				OTHER_SWIFT_FLAGS = "";
 				OTHER_SWIFT_FLAGS = "";
 				PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.$(PRODUCT_NAME:rfc1034identifier)";
 				PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.$(PRODUCT_NAME:rfc1034identifier)";
@@ -4087,7 +4087,7 @@
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				COPY_PHASE_STRIP = NO;
 				COPY_PHASE_STRIP = NO;
-				CURRENT_PROJECT_VERSION = 10;
+				CURRENT_PROJECT_VERSION = 6;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				DEVELOPMENT_TEAM = 6JLRKY9ZV7;
 				ENABLE_BITCODE = YES;
 				ENABLE_BITCODE = YES;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
@@ -4104,7 +4104,7 @@
 				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
 				LIBRARY_SEARCH_PATHS = "";
 				LIBRARY_SEARCH_PATHS = "";
-				MARKETING_VERSION = 2.25.2;
+				MARKETING_VERSION = 2.25.3;
 				OTHER_LDFLAGS = "-ObjC";
 				OTHER_LDFLAGS = "-ObjC";
 				PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.$(PRODUCT_NAME:rfc1034identifier)";
 				PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.$(PRODUCT_NAME:rfc1034identifier)";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PRODUCT_NAME = "$(TARGET_NAME)";

+ 1 - 1
Share/ShareViewController.m

@@ -58,7 +58,7 @@
     } else {
     } else {
         
         
         // Networking
         // Networking
-        [[NCCommunicationCommon sharedInstance] setupWithUsername:tableAccount.userID password:[CCUtility getPassword:tableAccount.account] userAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups delegate:[NCNetworking sharedInstance]];
+        [[NCCommunicationCommon sharedInstance] setupWithUsername:tableAccount.user userID:tableAccount.userID password:[CCUtility getPassword:tableAccount.account] userAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups delegate:[NCNetworking sharedInstance]];
        
        
         _activeAccount = tableAccount.account;
         _activeAccount = tableAccount.account;
         
         

+ 36 - 6
iOSClient/AppDelegate.m

@@ -157,6 +157,17 @@ PKPushRegistry *pushRegistry;
         [review showStoreReview];
         [review showStoreReview];
     }
     }
     
     
+    // Detect Dark mode
+    if (@available(iOS 13.0, *)) {
+        if ([CCUtility getDarkModeDetect]) {
+            if ([[UITraitCollection currentTraitCollection] userInterfaceStyle] == UIUserInterfaceStyleDark) {
+                [CCUtility setDarkMode:YES];
+            } else {
+                [CCUtility setDarkMode:NO];
+            }
+        }
+    }
+    
     return YES;
     return YES;
 }
 }
 
 
@@ -402,7 +413,7 @@ PKPushRegistry *pushRegistry;
     [CCNetworking sharedNetworking].delegate = [NCNetworkingMain sharedInstance];
     [CCNetworking sharedNetworking].delegate = [NCNetworkingMain sharedInstance];
     
     
     [[NCNetworking sharedInstance] setupWithAccount:activeAccount delegate:nil];
     [[NCNetworking sharedInstance] setupWithAccount:activeAccount delegate:nil];
-    [[NCCommunicationCommon sharedInstance] setupWithUsername:activeUserID password:activePassword userAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups delegate:[NCNetworking sharedInstance]];
+    [[NCCommunicationCommon sharedInstance] setupWithUsername:activeUser userID:activeUserID password:activePassword userAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups delegate:[NCNetworking sharedInstance]];
 }
 }
 
 
 - (void)deleteAccount:(NSString *)account wipe:(BOOL)wipe
 - (void)deleteAccount:(NSString *)account wipe:(BOOL)wipe
@@ -1367,13 +1378,32 @@ PKPushRegistry *pushRegistry;
         metadataForUpload = [[NCManageDatabase sharedInstance] getMetadataWithPredicate:[NSPredicate predicateWithFormat:@"sessionSelector == %@ AND status == %d", selectorUploadFile, k_metadataStatusWaitUpload] sorted:@"session" ascending:YES];
         metadataForUpload = [[NCManageDatabase sharedInstance] getMetadataWithPredicate:[NSPredicate predicateWithFormat:@"sessionSelector == %@ AND status == %d", selectorUploadFile, k_metadataStatusWaitUpload] sorted:@"session" ascending:YES];
         if (metadataForUpload) {
         if (metadataForUpload) {
             
             
-            metadataForUpload.status = k_metadataStatusInUpload;
-            tableMetadata *metadata = [[NCManageDatabase sharedInstance] addMetadata:metadataForUpload];
+            BOOL isAleadyInUpload = false;
             
             
-            [[CCNetworking sharedNetworking] uploadFile:metadata taskStatus:k_taskStatusResume];
+            for (tableMetadata *metadata in metadatasUpload) {
+                if ([metadataForUpload.account isEqualToString:metadata.account] && [metadataForUpload.serverUrl isEqualToString:metadata.serverUrl] && [metadataForUpload.fileName isEqualToString:metadata.fileName]) {
+                    isAleadyInUpload = true;
+                }
+            }
+            
+            if (isAleadyInUpload == false) {
+                metadataForUpload.status = k_metadataStatusInUpload;
+                tableMetadata *metadata = [[NCManageDatabase sharedInstance] addMetadata:metadataForUpload];
+                
+                [[CCNetworking sharedNetworking] uploadFile:metadata taskStatus:k_taskStatusResume];
+                
+                counterUpload++;
+                sizeUpload = sizeUpload + metadata.size;
+                
+                // IMI -> MODIFY
+                if ([metadata.fileName.pathExtension.lowercaseString isEqualToString:@"imi"]) {
+                    break;
+                }
+                
+            } else {
+                break;
+            }
             
             
-            counterUpload++;
-            sizeUpload = sizeUpload + metadata.size;
         } else {
         } else {
             break;
             break;
         }
         }

+ 14 - 0
iOSClient/Brand/NCBrand.swift

@@ -156,3 +156,17 @@ class NCBrandColor: NSObject {
         }
         }
     }
     }
 }
 }
+
+//MARK: - Beta
+
+@objc class NCBrandBeta: NSObject {
+    
+    @objc static let shared: NCBrandBeta = {
+        let instance = NCBrandBeta()
+        return instance
+    }()
+
+    @objc public let directEditing: Bool = false
+    @objc public let iOSHelper: Bool = false
+}
+

+ 2 - 55
iOSClient/Favorites/CCFavorites.m

@@ -181,15 +181,13 @@
     if (appDelegate.activeAccount.length == 0)
     if (appDelegate.activeAccount.length == 0)
         return;
         return;
     
     
-    [[NCCommunication sharedInstance] listingFavoritesWithUrlString:appDelegate.activeUrl account:appDelegate.activeAccount completionHandler:^(NSString *account, NSArray *files, NSInteger errorCode, NSString *errorDescription) {
+    [[OCNetworking sharedManager] listingFavoritesWithAccount:appDelegate.activeAccount completion:^(NSString *account, NSArray *metadatas, NSString *message, NSInteger errorCode) {
         
         
         if (errorCode == 0 && [account isEqualToString:appDelegate.activeAccount]) {
         if (errorCode == 0 && [account isEqualToString:appDelegate.activeAccount]) {
             
             
             NSString *father = @"";
             NSString *father = @"";
             NSMutableArray *filesOcId = [NSMutableArray new];
             NSMutableArray *filesOcId = [NSMutableArray new];
             
             
-            NSArray *metadatas = [[NCNetworking sharedInstance] convertFiles:files urlString:[CCUtility getHomeServerUrlActiveUrl:appDelegate.activeUrl] serverUrl:nil user:appDelegate.activeUserID];
-            
             for (tableMetadata *metadata in metadatas) {
             for (tableMetadata *metadata in metadatas) {
                 
                 
                 // insert for test NOT favorite
                 // insert for test NOT favorite
@@ -222,59 +220,8 @@
             // Verify remove favorite
             // Verify remove favorite
             NSArray *allRecordFavorite = [[NCManageDatabase sharedInstance] getMetadatasWithPredicate:[NSPredicate predicateWithFormat:@"account == %@ AND favorite == true", account] sorted:nil ascending:NO];
             NSArray *allRecordFavorite = [[NCManageDatabase sharedInstance] getMetadatasWithPredicate:[NSPredicate predicateWithFormat:@"account == %@ AND favorite == true", account] sorted:nil ascending:NO];
             
             
-            for (tableMetadata *metadata in allRecordFavorite) {
-                if (![filesOcId containsObject:metadata.ocId])
-                    [[NCManageDatabase sharedInstance] setMetadataFavoriteWithOcId:metadata.ocId favorite:NO];
-            }
-            
-        } else if (errorCode != 0) {
-            [appDelegate messageNotification:@"_error_" description:errorDescription visible:YES delay:k_dismissAfterSecond type:TWMessageBarMessageTypeError errorCode:errorCode];
-        } else {
-            NSLog(@"[LOG] It has been changed user during networking process, error.");
-        }
-    }];
-    
-    [[OCNetworking sharedManager] listingFavoritesWithAccount:appDelegate.activeAccount completion:^(NSString *account, NSArray *metadatas, NSString *message, NSInteger errorCode) {
-        
-        if (errorCode == 0 && [account isEqualToString:appDelegate.activeAccount]) {
-            
-            NSString *father = @"";
-            NSMutableArray *filesEtag = [NSMutableArray new];
-            
-            for (tableMetadata *metadata in metadatas) {
-                
-                // insert for test NOT favorite
-                [filesEtag addObject:metadata.ocId];
-                
-                NSString *serverUrl = metadata.serverUrl;
-                NSString *serverUrlSon = [CCUtility stringAppendServerUrl:serverUrl addFileName:metadata.fileName];
-                
-                if (![serverUrlSon containsString:father]) {
-                    
-                    if (metadata.directory) {
-                        
-                        if ([CCUtility getFavoriteOffline])
-                            [[CCSynchronize sharedSynchronize] readFolder:[CCUtility stringAppendServerUrl:serverUrl addFileName:metadata.fileName] selector:selectorReadFolderWithDownload account:account];
-                        else
-                            [[CCSynchronize sharedSynchronize] readFolder:[CCUtility stringAppendServerUrl:serverUrl addFileName:metadata.fileName] selector:selectorReadFolder account:account];
-                        
-                    } else {
-                        
-                        if ([CCUtility getFavoriteOffline])
-                            [[CCSynchronize sharedSynchronize] readFile:metadata.ocId fileName:metadata.fileName serverUrl:serverUrl selector:selectorReadFileWithDownload account:account];
-                        else
-                            [[CCSynchronize sharedSynchronize] readFile:metadata.ocId fileName:metadata.fileName serverUrl:serverUrl selector:selectorReadFile account:account];
-                    }
-                    
-                    father = serverUrlSon;
-                }
-            }
-            
-            // Verify remove favorite
-            NSArray *allRecordFavorite = [[NCManageDatabase sharedInstance] getMetadatasWithPredicate:[NSPredicate predicateWithFormat:@"account == %@ AND favorite == true", account] sorted:nil ascending:NO];
-            
             for (tableMetadata *metadata in allRecordFavorite)
             for (tableMetadata *metadata in allRecordFavorite)
-                if (![filesEtag containsObject:metadata.ocId])
+                if (![filesOcId containsObject:metadata.ocId])
                     [[NCManageDatabase sharedInstance] setMetadataFavoriteWithOcId:metadata.ocId favorite:NO];
                     [[NCManageDatabase sharedInstance] setMetadataFavoriteWithOcId:metadata.ocId favorite:NO];
             
             
             [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"clearDateReadDataSource" object:nil];
             [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"clearDateReadDataSource" object:nil];

+ 5 - 6
iOSClient/Main/CCMain.m

@@ -1162,13 +1162,12 @@
         (void)[[NCManageDatabase sharedInstance] addMetadatas:metadatasInDownload];
         (void)[[NCManageDatabase sharedInstance] addMetadatas:metadatasInDownload];
     }
     }
     
     
-    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
-        
-        // File is changed ??
-        if (!self.searchController.isActive && metadatasToInsertInDB)
+    // File is changed ??
+    if (!self.searchController.isActive && metadatasToInsertInDB) {
+        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
             [[CCSynchronize sharedSynchronize] verifyChangeMedatas:metadatasToInsertInDB serverUrl:serverUrl account:account withDownload:NO];
             [[CCSynchronize sharedSynchronize] verifyChangeMedatas:metadatasToInsertInDB serverUrl:serverUrl account:account withDownload:NO];
-    });
-    
+        });
+    }
     // Search Mode
     // Search Mode
     if (self.searchController.isActive) {
     if (self.searchController.isActive) {
         
         

+ 2 - 5
iOSClient/Main/CCSplit.m

@@ -276,18 +276,15 @@
     BOOL isRunningInFullScreen = CGRectEqualToRect([UIApplication sharedApplication].delegate.window.frame, [UIApplication sharedApplication].delegate.window.screen.bounds);
     BOOL isRunningInFullScreen = CGRectEqualToRect([UIApplication sharedApplication].delegate.window.frame, [UIApplication sharedApplication].delegate.window.screen.bounds);
     
     
     // detect Dark Mode
     // detect Dark Mode
-    
     if (@available(iOS 13.0, *)) {
     if (@available(iOS 13.0, *)) {
-        appDelegate.preferredUserInterfaceStyle = self.traitCollection.userInterfaceStyle;
         if ([CCUtility getDarkModeDetect]) {
         if ([CCUtility getDarkModeDetect]) {
-            if (appDelegate.preferredUserInterfaceStyle == UIUserInterfaceStyleDark) {
+            if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
                 [CCUtility setDarkMode:YES];
                 [CCUtility setDarkMode:YES];
             } else {
             } else {
                 [CCUtility setDarkMode:NO];
                 [CCUtility setDarkMode:NO];
             }
             }
-                
-            [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"changeTheming" object:nil];
         }
         }
+        [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"changeTheming" object:nil];
     }
     }
     
     
     prevRunningInFullScreen = isRunningInFullScreen;
     prevRunningInFullScreen = isRunningInFullScreen;

+ 1 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

@@ -680,7 +680,7 @@ class NCCreateScanDocument : NSObject, ImageScannerControllerDelegate {
         if results.doesUserPreferEnhancedScan {
         if results.doesUserPreferEnhancedScan {
             image = results.enhancedScan?.image
             image = results.enhancedScan?.image
         } else {
         } else {
-            image = results.originalScan.image
+            image = results.croppedScan.image
         }
         }
         
         
         if image != nil {
         if image != nil {

+ 1 - 0
iOSClient/Networking/CCNetworking.m

@@ -1129,6 +1129,7 @@
             
             
             if (![tempocId isEqualToString:metadata.ocId]) {
             if (![tempocId isEqualToString:metadata.ocId]) {
                 [CCUtility copyFileAtPath:[NSString stringWithFormat:@"%@/%@", [CCUtility getDirectoryProviderStorage], tempocId] toPath:[NSString stringWithFormat:@"%@/%@", [CCUtility getDirectoryProviderStorage], metadata.ocId]];
                 [CCUtility copyFileAtPath:[NSString stringWithFormat:@"%@/%@", [CCUtility getDirectoryProviderStorage], tempocId] toPath:[NSString stringWithFormat:@"%@/%@", [CCUtility getDirectoryProviderStorage], metadata.ocId]];
+                [[NCManageDatabase sharedInstance] deleteMetadataWithPredicate:[NSPredicate predicateWithFormat:@"ocId == %@", tempocId]];
             }
             }
             
             
         } else {
         } else {

BIN
iOSClient/Supporting Files/af.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ar.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ast.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/az.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/be.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/bg_BG.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/bn_BD.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/bs.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ca.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/cs-CZ.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/cy_GB.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/da.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/de.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/el.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/en-GB.lproj/Localizable.strings


+ 1 - 1
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -477,7 +477,7 @@
 "_enforce_password_protection_" = "Enforce password protection";
 "_enforce_password_protection_" = "Enforce password protection";
 "_password_obligatory_"         = "Enforce password protection enabled, password obligatory";
 "_password_obligatory_"         = "Enforce password protection enabled, password obligatory";
 "_shared_with_you_by_"          = "Shared with you by";
 "_shared_with_you_by_"          = "Shared with you by";
-"_shareLinksearch_placeholder_" = "Search for user or group…";
+"_shareLinksearch_placeholder_" = "Type a name and press Enter";
 "_new_comment_"                 = "New comment…";
 "_new_comment_"                 = "New comment…";
 "_edit_comment_"                = "Edit comment";
 "_edit_comment_"                = "Edit comment";
 "_delete_comment_"              = "Delete comment";
 "_delete_comment_"              = "Delete comment";

BIN
iOSClient/Supporting Files/eo.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-419.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-AR.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-CL.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-CO.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-CR.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-DO.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-EC.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-GT.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-HN.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-MX.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-NI.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-PA.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-PE.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-PR.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-PY.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-SV.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-UY.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/et_EE.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/eu.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/fa.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/fi-FI.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/fr.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/gl.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/he.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/hr.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/hu.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/hy.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ia.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/id.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/is.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/it.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ja-JP.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ka-GE.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/km.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/kn.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ko.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/lb.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/lt_LT.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/lv.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/mk.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/mn.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ms_MY.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/nb-NO.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/nl.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/nn_NO.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/oc.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/pl.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/pt-BR.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/pt-PT.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ro.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ru.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/si_LK.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sk-SK.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sl.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sq.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sr.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sr@latin.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/sv.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ta_LK.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/th_TH.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/tr.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ug.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/uk.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/ur_PK.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/vi.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/zh-Hans.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/zh-Hant-TW.lproj/Localizable.strings


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików