Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2021-04-28 09:53:37 +0300
committermarinofaggiana <marino@marinofaggiana.com>2021-04-28 09:53:37 +0300
commitf71dd4b4cb4c95e0c9fd873cb13ecb8a77a1c6a3 (patch)
tree78345805bd8b8eaa267426cf0c15a3ea4b4e154b
parenta313b5f6aad5def81823708a5c78cadf63535eb2 (diff)
parent4f4a230f2d558561df1d543a9afa41246a36904a (diff)
Merge branch '342'3.4.2
-rwxr-xr-xNextcloud.xcodeproj/project.pbxproj34
-rw-r--r--Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved4
-rw-r--r--iOSClient/NCGlobal.swift5
-rw-r--r--iOSClient/Networking/NCNetworking.swift37
-rw-r--r--iOSClient/Networking/NCNetworkingProcessUpload.swift10
5 files changed, 24 insertions, 66 deletions
diff --git a/Nextcloud.xcodeproj/project.pbxproj b/Nextcloud.xcodeproj/project.pbxproj
index 338666ecc..0de1b078f 100755
--- a/Nextcloud.xcodeproj/project.pbxproj
+++ b/Nextcloud.xcodeproj/project.pbxproj
@@ -2228,7 +2228,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 6JLRKY9ZV7;
FRAMEWORK_SEARCH_PATHS = (
@@ -2251,7 +2251,7 @@
"@executable_path/../../Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 3.4.1;
+ MARKETING_VERSION = 3.4.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
OTHER_LDFLAGS = "-ObjC";
@@ -2283,7 +2283,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 6JLRKY9ZV7;
FRAMEWORK_SEARCH_PATHS = (
@@ -2306,7 +2306,7 @@
"@executable_path/../../Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 3.4.1;
+ MARKETING_VERSION = 3.4.2;
MTL_FAST_MATH = YES;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.Nextcloud.Notification-Service-Extension";
@@ -2330,7 +2330,7 @@
CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/Share.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 6JLRKY9ZV7;
FRAMEWORK_SEARCH_PATHS = (
@@ -2353,7 +2353,7 @@
"@executable_path/../../Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 3.4.1;
+ MARKETING_VERSION = 3.4.2;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.Share;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2378,7 +2378,7 @@
CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/Share.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 6JLRKY9ZV7;
FRAMEWORK_SEARCH_PATHS = (
@@ -2401,7 +2401,7 @@
"@executable_path/../../Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 3.4.1;
+ MARKETING_VERSION = 3.4.2;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = it.twsweb.Nextcloud.Share;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2432,7 +2432,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 6JLRKY9ZV7;
FRAMEWORK_SEARCH_PATHS = (
@@ -2455,7 +2455,7 @@
"@executable_path/../../Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 3.4.1;
+ MARKETING_VERSION = 3.4.2;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.Nextcloud.File-Provider-Extension";
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2486,7 +2486,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 6JLRKY9ZV7;
FRAMEWORK_SEARCH_PATHS = (
@@ -2509,7 +2509,7 @@
"@executable_path/../../Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 3.4.1;
+ MARKETING_VERSION = 3.4.2;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.Nextcloud.File-Provider-Extension";
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2532,7 +2532,7 @@
CODE_SIGN_ENTITLEMENTS = iOSClient/Brand/iOSClient.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 0;
DEVELOPMENT_TEAM = 6JLRKY9ZV7;
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
@@ -2552,7 +2552,7 @@
"@executable_path/../../Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 3.4.1;
+ MARKETING_VERSION = 3.4.2;
OTHER_LDFLAGS = "-ObjC";
OTHER_SWIFT_FLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.$(PRODUCT_NAME:rfc1034identifier)";
@@ -2581,7 +2581,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 0;
DEVELOPMENT_TEAM = 6JLRKY9ZV7;
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
@@ -2600,7 +2600,7 @@
"@executable_path/../../Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 3.4.1;
+ MARKETING_VERSION = 3.4.2;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "it.twsweb.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2819,7 +2819,7 @@
repositoryURL = "https://github.com/nextcloud/ios-communication-library/";
requirement = {
kind = exactVersion;
- version = 0.94.0;
+ version = 0.96.0;
};
};
F7C4D88B2534887E00C142DA /* XCRemoteSwiftPackageReference "Parchment" */ = {
diff --git a/Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 580e2a87f..38b71f3f3 100644
--- a/Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -24,8 +24,8 @@
"repositoryURL": "https://github.com/nextcloud/ios-communication-library/",
"state": {
"branch": null,
- "revision": "9eae0eaafdaa2bcb208c35da35fc6c07cfc32bbc",
- "version": "0.94.0"
+ "revision": "fa7fa3f4588cbfb124bbecce8664bbb38d87acf7",
+ "version": "0.96.0"
}
},
{
diff --git a/iOSClient/NCGlobal.swift b/iOSClient/NCGlobal.swift
index ea686668a..d041fe042 100644
--- a/iOSClient/NCGlobal.swift
+++ b/iOSClient/NCGlobal.swift
@@ -74,10 +74,7 @@ class NCGlobal: NSObject {
let e2eeMaxFileSize: UInt64 = 500000000 // 500 MB
let e2eePassphraseTest = "more over television factory tendency independence international intellectual impress interest sentence pony"
@objc let e2eeVersion = "1.1"
-
- // Max Size Upload
- let uploadMaxFileSize: UInt64 = 500000000 // 500 MB
-
+
// Chunck size MB
let chunckSize: Int64 = 10000000 // 10 MB
diff --git a/iOSClient/Networking/NCNetworking.swift b/iOSClient/Networking/NCNetworking.swift
index 667a2b631..51c1a9bdb 100644
--- a/iOSClient/Networking/NCNetworking.swift
+++ b/iOSClient/Networking/NCNetworking.swift
@@ -28,8 +28,8 @@ import Alamofire
import Queuer
@objc public protocol NCNetworkingDelegate {
- @objc optional func downloadProgress(_ progress: Double, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask)
- @objc optional func uploadProgress(_ progress: Double, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask)
+ @objc optional func downloadProgress(_ progress: Float, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask)
+ @objc optional func uploadProgress(_ progress: Float, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask)
@objc optional func downloadComplete(fileName: String, serverUrl: String, etag: String?, date: NSDate?, dateLastModified: NSDate?, length: Int64, description: String?, task: URLSessionTask, errorCode: Int, errorDescription: String)
@objc optional func uploadComplete(fileName: String, serverUrl: String, ocId: String?, etag: String?, date: NSDate?, size: Int64, description: String?, task: URLSessionTask, errorCode: Int, errorDescription: String)
}
@@ -136,7 +136,7 @@ import Queuer
}
}
- func downloadProgress(_ progress: Double, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask) {
+ func downloadProgress(_ progress: Float, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask) {
delegate?.downloadProgress?(progress, totalBytes: totalBytes, totalBytesExpected: totalBytesExpected, fileName: fileName, serverUrl: serverUrl, session: session, task: task)
}
@@ -493,7 +493,7 @@ import Queuer
}
}
- func uploadProgress(_ progress: Double, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask) {
+ func uploadProgress(_ progress: Float, totalBytes: Int64, totalBytesExpected: Int64, fileName: String, serverUrl: String, session: URLSession, task: URLSessionTask) {
delegate?.uploadProgress?(progress, totalBytes: totalBytes, totalBytesExpected: totalBytesExpected, fileName: fileName, serverUrl: serverUrl, session: session, task: task)
var metadata: tableMetadata?
@@ -614,35 +614,6 @@ import Queuer
}
}
- func createChunk(metadata: tableMetadata, account: tableAccount) -> tableMetadata? {
-
- if metadata.chunk {
-
- // https://server/remote.php/dav/uploads/roeland/myapp-e1663913-4423-4efe-a9cd-26e7beeca3c0
-
- let folder = NSUUID().uuidString
- let serverUrlFileName = metadata.urlBase + "/" + NCUtilityFileSystem.shared.getDAV() + "/upload/" + account.userId + "/" + folder
-
- NCCommunication.shared.createFolder(serverUrlFileName) { (account, ocId, date, errorCode, errorDescription) in
-
- if errorCode == 0 {
-
- let path = CCUtility.getDirectoryProviderStorageOcId(metadata.ocId)!
- let filesNameOut = self.fileChunks(path: path, fileName: metadata.fileName, pathChunks: path, size: 10)
-
- } else {
-
- }
- }
-
- } else {
-
- return metadata
- }
-
- return nil
- }
-
@objc func verifyUploadZombie() {
var session: URLSession?
diff --git a/iOSClient/Networking/NCNetworkingProcessUpload.swift b/iOSClient/Networking/NCNetworkingProcessUpload.swift
index 94be4dc62..44856d85b 100644
--- a/iOSClient/Networking/NCNetworkingProcessUpload.swift
+++ b/iOSClient/Networking/NCNetworkingProcessUpload.swift
@@ -49,16 +49,11 @@ class NCNetworkingProcessUpload: NSObject {
if appDelegate.account == "" { return }
var counterUpload: Int = 0
- var sizeUpload = 0
var maxConcurrentOperationUpload = 5
let sessionSelectors = [NCGlobal.shared.selectorUploadFile, NCGlobal.shared.selectorUploadAutoUpload, NCGlobal.shared.selectorUploadAutoUploadAll]
let metadatasUpload = NCManageDatabase.shared.getMetadatas(predicate: NSPredicate(format: "status == %d OR status == %d", NCGlobal.shared.metadataStatusInUpload, NCGlobal.shared.metadataStatusUploading))
counterUpload = metadatasUpload.count
- for metadata in metadatasUpload {
- sizeUpload = sizeUpload + Int(metadata.size)
- }
- if sizeUpload > NCGlobal.shared.uploadMaxFileSize { return }
timerProcess?.invalidate()
@@ -107,11 +102,6 @@ class NCNetworkingProcessUpload: NSObject {
if let metadata = NCManageDatabase.shared.setMetadataStatus(ocId: metadata.ocId, status: NCGlobal.shared.metadataStatusInUpload) {
NCNetworking.shared.upload(metadata: metadata) { (_, _) in }
}
- sizeUpload = sizeUpload + Int(metadata.size)
- if sizeUpload > NCGlobal.shared.uploadMaxFileSize {
- self.startTimer()
- return
- }
}
}