Adds option to not cache downloaded app during installation

This commit is contained in:
Riley Testut
2020-05-15 14:55:15 -07:00
parent 7cbe921020
commit 7c9d8bd90d
2 changed files with 18 additions and 7 deletions

View File

@@ -23,14 +23,14 @@ class DownloadAppOperation: ResultOperation<ALTApplication>
private let session = URLSession(configuration: .default)
init(app: AppProtocol, context: AppOperationContext)
init(app: AppProtocol, destinationURL: URL, context: AppOperationContext)
{
self.app = app
self.context = context
self.bundleIdentifier = app.bundleIdentifier
self.sourceURL = app.url
self.destinationURL = InstalledApp.fileURL(for: app)
self.destinationURL = destinationURL
super.init()