Moves minimum iOS version check to VerifyAppOperation

This commit is contained in:
Riley Testut
2021-02-26 13:46:49 -06:00
parent acc202031c
commit 77c085ef1a
3 changed files with 20 additions and 16 deletions

View File

@@ -80,8 +80,6 @@ class DownloadAppOperation: ResultOperation<ALTApplication>
guard let application = ALTApplication(fileURL: appBundleURL) else { throw OperationError.invalidApp }
guard ProcessInfo.processInfo.isOperatingSystemAtLeast(application.minimumiOSVersion) else { throw OperationError.iOSVersionNotSupported(application) }
try FileManager.default.copyItem(at: appBundleURL, to: self.destinationURL, shouldReplace: true)
if self.context.bundleIdentifier == StoreApp.dolphinAppID, self.context.bundleIdentifier != application.bundleIdentifier