Add Network service and default sessions

Signed-off-by: Joseph Mattello <mail@joemattiello.com>
This commit is contained in:
Joseph Mattello
2022-11-06 17:49:06 -05:00
committed by Spidy123222
parent 79d677cf3c
commit d6ea725329
8 changed files with 125 additions and 37 deletions

View File

@@ -754,7 +754,7 @@ private extension MyAppsViewController
{
let downloadProgress = Progress.discreteProgress(totalUnitCount: 100)
downloadOperation = RSTAsyncBlockOperation { (operation) in
let downloadTask = URLSession.shared.downloadTask(with: url) { (fileURL, response, error) in
let downloadTask = AppServices.network.session.downloadTask(with: url) { (fileURL, response, error) in
do
{
let (fileURL, _) = try Result((fileURL, response), error).get()