Add user driver docs & handling for showing informational updates

Perhaps I should add another method to the user driver for showing informational updates in the near future.
This commit is contained in:
Zorg committed 2017-01-01 22:22:07 -05:00
1 parent 9d354e5606
commit 2001328032
2 files changed
+8 -3

No files matched your search

+5 -1
View File
@@ -131,7 +131,11 @@
[self.host setObject:nil forUserDefaultsKey:SUSkippedVersionKey];
switch (choice) {
case SPUInstallUpdateChoice:
[self.coreDriver downloadUpdateFromAppcastItem:updateItem];
if (!updateItem.isInformationOnlyUpdate) {
[self.coreDriver downloadUpdateFromAppcastItem:updateItem];
} else {
[self.delegate uiDriverIsRequestingAbortUpdateWithError:nil];
}
break;
case SPUSkipThisVersionChoice:
[self.host setObject:[updateItem versionString] forUserDefaultsKey:SUSkippedVersionKey];
+3 -2
View File
@@ -84,9 +84,9 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
- (void)dismissUserInitiatedUpdateCheck;
/*!
* Show the user a new update is found and can be downloaded & installed
* Show the user a new update is found
*
* Let the user know a new downloadable update is found and ask them what they want to do.
* Let the user know a new update is found and ask them what they want to do.
*
* @param appcastItem The Appcast Item containing information that reflects the new update
*
@@ -94,6 +94,7 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
*
* @param reply
* A reply of SPUInstallUpdateChoice begins downloading and installing the new update.
* Note if the update is only informational (appcastItem.isInformationOnlyUpdate), this response shouldn't be made.
*
* A reply of SPUInstallLaterChoice reminds the user later of the update, which can act as a "do nothing" option.
*