WeTransfer-Swift-SDK icon indicating copy to clipboard operation
WeTransfer-Swift-SDK copied to clipboard

Move URLSession uploading logic from UploadFilesOperation to APIClient

Open PimCoumans opened this issue 7 years ago • 0 comments

UploadFilesOperation should have little to do with creating a new URLSession and its delegate method. Ideally APIClient should have a method to create a new APIClient and accept a closure in which the delegate call can be passed through. These created URLSession instances and linked closures need to be removed when UploadFilesOperation finishes.

PimCoumans avatar Jul 11 '18 16:07 PimCoumans