diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m index a07c7013..75645bdc 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SUAutomaticUpdateDriver.m @@ -53,10 +53,10 @@ [self.coreDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:NO requiresSilentInstall:YES completion:completionBlock]; } -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)__unused completionBlock __attribute__((noreturn)) +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)__unused completionBlock __attribute__((noreturn)) { // Nothing really to do here.. this shouldn't be called. - SULog(@"Error: resumeUpdateWithCompletion: called on SUAutomaticUpdateDriver"); + SULog(@"Error: resumeInstallingUpdateWithCompletion: called on SUAutomaticUpdateDriver"); abort(); } diff --git a/Sparkle/SUBasicUpdateDriver.h b/Sparkle/SUBasicUpdateDriver.h index 7ae89b28..b17db957 100644 --- a/Sparkle/SUBasicUpdateDriver.h +++ b/Sparkle/SUBasicUpdateDriver.h @@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary *)httpHeaders includesSkippedUpdates:(BOOL)includesSkippedUpdates completion:(SUUpdateDriverCompletion)completionBlock; -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock; diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 0daca9f4..e60816f4 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -78,7 +78,7 @@ } } -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock { self.completionBlock = completionBlock; diff --git a/Sparkle/SUCoreBasedUpdateDriver.h b/Sparkle/SUCoreBasedUpdateDriver.h index bf4d7e0a..143b8e06 100644 --- a/Sparkle/SUCoreBasedUpdateDriver.h +++ b/Sparkle/SUCoreBasedUpdateDriver.h @@ -53,7 +53,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary *)httpHeaders includesSkippedUpdates:(BOOL)includesSkippedUpdates requiresSilentInstall:(BOOL)silentInstall completion:(SUUpdateDriverCompletion)completionBlock; -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock; diff --git a/Sparkle/SUCoreBasedUpdateDriver.m b/Sparkle/SUCoreBasedUpdateDriver.m index 04f4d9f7..371e923f 100644 --- a/Sparkle/SUCoreBasedUpdateDriver.m +++ b/Sparkle/SUCoreBasedUpdateDriver.m @@ -31,7 +31,7 @@ @property (nonatomic) SUDownloadedUpdate *downloadedUpdate; @property (nonatomic, readonly) SUHost *host; -@property (nonatomic) BOOL resumingUpdate; +@property (nonatomic) BOOL resumingInstallingUpdate; @property (nonatomic) BOOL silentInstall; @property (nonatomic, readonly, weak) id updater; // if we didn't have legacy support, I'd remove this.. @property (nullable, nonatomic, readonly, weak) id updaterDelegate; @@ -47,7 +47,7 @@ @synthesize delegate = _delegate; @synthesize updateItem = _updateItem; @synthesize host = _host; -@synthesize resumingUpdate = _resumingUpdate; +@synthesize resumingInstallingUpdate = _resumingInstallingUpdate; @synthesize silentInstall = _silentInstall; @synthesize updater = _updater; @synthesize updaterDelegate = _updaterDelegate; @@ -82,12 +82,12 @@ [self.basicDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:includesSkippedUpdates completion:completionBlock]; } -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock { - self.resumingUpdate = YES; + self.resumingInstallingUpdate = YES; self.silentInstall = NO; - [self.basicDriver resumeUpdateWithCompletion:completionBlock]; + [self.basicDriver resumeInstallingUpdateWithCompletion:completionBlock]; } - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock @@ -109,8 +109,8 @@ { self.updateItem = updateItem; - if (self.resumingUpdate) { - [self.installerDriver resumeUpdateWithUpdateItem:updateItem]; + if (self.resumingInstallingUpdate) { + [self.installerDriver resumeInstallingUpdateWithUpdateItem:updateItem]; } [self.delegate basicDriverDidFindUpdateWithAppcastItem:updateItem]; diff --git a/Sparkle/SUInstallerDriver.h b/Sparkle/SUInstallerDriver.h index 6fc40490..8b1d1583 100644 --- a/Sparkle/SUInstallerDriver.h +++ b/Sparkle/SUInstallerDriver.h @@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)initWithHost:(SUHost *)host cachePath:(NSString *)cachePath sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater updaterDelegate:(nullable id)updaterDelegate delegate:(nullable id)delegate; -- (void)resumeUpdateWithUpdateItem:(SUAppcastItem *)updateItem; +- (void)resumeInstallingUpdateWithUpdateItem:(SUAppcastItem *)updateItem; - (void)extractDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate silently:(BOOL)silently completion:(void (^)(NSError * _Nullable))completionHandler; diff --git a/Sparkle/SUInstallerDriver.m b/Sparkle/SUInstallerDriver.m index 3d31944a..3d1e89cc 100644 --- a/Sparkle/SUInstallerDriver.m +++ b/Sparkle/SUInstallerDriver.m @@ -147,7 +147,7 @@ } } -- (void)resumeUpdateWithUpdateItem:(SUAppcastItem *)updateItem +- (void)resumeInstallingUpdateWithUpdateItem:(SUAppcastItem *)updateItem { self.updateItem = updateItem; } diff --git a/Sparkle/SUProbingUpdateDriver.m b/Sparkle/SUProbingUpdateDriver.m index c61f7fd6..f1c891ea 100644 --- a/Sparkle/SUProbingUpdateDriver.m +++ b/Sparkle/SUProbingUpdateDriver.m @@ -39,9 +39,9 @@ [self.basicDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:NO completion:completionBlock]; } -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock { - [self.basicDriver resumeUpdateWithCompletion:completionBlock]; + [self.basicDriver resumeInstallingUpdateWithCompletion:completionBlock]; } - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock diff --git a/Sparkle/SUScheduledUpdateDriver.m b/Sparkle/SUScheduledUpdateDriver.m index dd31f8e7..92f83908 100644 --- a/Sparkle/SUScheduledUpdateDriver.m +++ b/Sparkle/SUScheduledUpdateDriver.m @@ -40,9 +40,9 @@ [self.uiDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:NO completion:completionBlock]; } -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock { - [self.uiDriver resumeUpdateWithCompletion:completionBlock]; + [self.uiDriver resumeInstallingUpdateWithCompletion:completionBlock]; } - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock diff --git a/Sparkle/SUUIBasedUpdateDriver.h b/Sparkle/SUUIBasedUpdateDriver.h index 37161ac7..a4a3bca0 100644 --- a/Sparkle/SUUIBasedUpdateDriver.h +++ b/Sparkle/SUUIBasedUpdateDriver.h @@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary *)httpHeaders includesSkippedUpdates:(BOOL)includesSkippedUpdates completion:(SUUpdateDriverCompletion)completionBlock; -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock; diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m index 0c5d99f5..3d3dc468 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SUUIBasedUpdateDriver.m @@ -28,7 +28,7 @@ @property (weak, nonatomic, readonly) id updaterDelegate; @property (nonatomic, weak, readonly) id delegate; @property (nonatomic, readonly) id userDriver; -@property (nonatomic) BOOL resumingUpdate; +@property (nonatomic) BOOL resumingInstallingUpdate; @property (nonatomic) BOOL resumingDownloadedUpdate; @end @@ -41,7 +41,7 @@ @synthesize updaterDelegate = _updaterDelegate; @synthesize userDriver = _userDriver; @synthesize delegate = _delegate; -@synthesize resumingUpdate = _resumingUpdate; +@synthesize resumingInstallingUpdate = _resumingInstallingUpdate; @synthesize resumingDownloadedUpdate = _resumingDownloadedUpdate; - (instancetype)initWithHost:(SUHost *)host sparkleBundle:(NSBundle *)sparkleBundle updater:(id)updater userDriver:(id )userDriver updaterDelegate:(nullable id )updaterDelegate delegate:(id)delegate @@ -64,10 +64,10 @@ [self.coreDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:includesSkippedUpdates requiresSilentInstall:NO completion:completionBlock]; } -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock { - self.resumingUpdate = YES; - [self.coreDriver resumeUpdateWithCompletion:completionBlock]; + self.resumingInstallingUpdate = YES; + [self.coreDriver resumeInstallingUpdateWithCompletion:completionBlock]; } - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock @@ -103,7 +103,7 @@ } }); }]; - } else if (!self.resumingUpdate) { + } else if (!self.resumingInstallingUpdate) { [self.userDriver showUpdateFoundWithAppcastItem:updateItem reply:^(SUUpdateAlertChoice choice) { dispatch_async(dispatch_get_main_queue(), ^{ [self.host setObject:nil forUserDefaultsKey:SUSkippedVersionKey]; diff --git a/Sparkle/SUUpdateDriver.h b/Sparkle/SUUpdateDriver.h index 08d8a633..aadce8b9 100644 --- a/Sparkle/SUUpdateDriver.h +++ b/Sparkle/SUUpdateDriver.h @@ -16,7 +16,7 @@ typedef void (^SUUpdateDriverCompletion)(BOOL shouldShowUpdateImmediately, SUDow - (void)checkForUpdatesAtAppcastURL:(NSURL *)appcastURL withUserAgent:(NSString *)userAgent httpHeaders:(NSDictionary *)httpHeaders completion:(SUUpdateDriverCompletion)completionBlock; -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock; - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock; diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 8deeb9ac..645a98b3 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -495,7 +495,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification [self.userDriver showCanCheckForUpdates:NO]; if (installerInProgress) { - [self.driver resumeUpdateWithCompletion:completionBlock]; + [self.driver resumeInstallingUpdateWithCompletion:completionBlock]; } else if (self.resumableUpdate != nil) { [self.driver resumeDownloadedUpdate:(SUDownloadedUpdate * _Nonnull)self.resumableUpdate completion:completionBlock]; } else { diff --git a/Sparkle/SUUserInitiatedUpdateDriver.m b/Sparkle/SUUserInitiatedUpdateDriver.m index c6e62fa3..d42dd219 100644 --- a/Sparkle/SUUserInitiatedUpdateDriver.m +++ b/Sparkle/SUUserInitiatedUpdateDriver.m @@ -60,9 +60,9 @@ [self.uiDriver checkForUpdatesAtAppcastURL:appcastURL withUserAgent:userAgent httpHeaders:httpHeaders includesSkippedUpdates:YES completion:completionBlock]; } -- (void)resumeUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock +- (void)resumeInstallingUpdateWithCompletion:(SUUpdateDriverCompletion)completionBlock { - [self.uiDriver resumeUpdateWithCompletion:completionBlock]; + [self.uiDriver resumeInstallingUpdateWithCompletion:completionBlock]; } - (void)resumeDownloadedUpdate:(SUDownloadedUpdate *)downloadedUpdate completion:(SUUpdateDriverCompletion)completionBlock