Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for channels #1879

Merged
merged 12 commits into from
Jun 29, 2021
Prev Previous commit
Next Next commit
Merge branch '2.x' into channels
  • Loading branch information
zorgiepoo committed Jun 27, 2021
commit c329319b0ceb9d688eb959620af9402233453ac4
14 changes: 14 additions & 0 deletions Sparkle/SPUBasicUpdateDriver.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,20 @@ - (void)didNotFindUpdateWithLatestAppcastItem:(nullable SUAppcastItem *)latestAp
// There could be update items on channels the updater is not subscribed to for example. But we can't tell the user about them.
localizedDescription = SULocalizedString(@"You're up-to-date!", "Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates.");
recoverySuggestion = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is currently the newest version available.", nil), [self.host name], [self.host displayVersion]];

reason = SPUNoUpdateFoundReasonUnknown;
}

NSMutableDictionary *userInfo =
[NSMutableDictionary dictionaryWithDictionary:@{
NSLocalizedDescriptionKey: localizedDescription,
NSLocalizedRecoverySuggestionErrorKey: recoverySuggestion,
NSLocalizedRecoveryOptionsErrorKey: @[recoveryOption],
SPUNoUpdateFoundReasonKey: @(reason),
}];

if (latestAppcastItem != nil) {
userInfo[SPULatestAppcastItemFoundKey] = latestAppcastItem;
}

recoveryOption = SULocalizedString(@"OK", nil);
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.