Rename majorUpdate to majorUpgrade

This commit is contained in:
Zorg committed 2021-05-09 22:45:40 -07:00
1 parent d193f2e28b
commit 25b3d01efa
5 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -180,7 +180,7 @@
stage = SPUUserUpdateStageNotDownloaded;
}
SPUUserUpdateState *state = [[SPUUserUpdateState alloc] initWithStage:stage userInitiated:self.userInitiated majorUpdate:preventsAutoupdate];
SPUUserUpdateState *state = [[SPUUserUpdateState alloc] initWithStage:stage userInitiated:self.userInitiated majorUpgrade:preventsAutoupdate];
[self.userDriver showUpdateFoundWithAppcastItem:updateItem state:state reply:^(SPUUserUpdateChoice userChoice) {
dispatch_async(dispatch_get_main_queue(), ^{
+2 -2
View File
@@ -68,7 +68,7 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
* SPUUserUpdateStateInformational - Update is only informational and has no download. You can direct the user to the infoURL property of the appcastItem in their web browser. Use this to check if an update is informational, instead of using the informationOnlyUpdate property of the appcast item.
*
* state.userInitiated indicates if the update was initiated by the user or if it was automatically scheduled in the background.
* state.majorUpdate indicates if the update is a major or paid upgrade.
* state.majorUpgrade indicates if the update is a major or paid upgrade.
*
* Additionally, you may want to check the criticalUpdate property of the appcastItem to let the user know if the update is critical.
*
@@ -81,7 +81,7 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
* If the state.stage is SPUUserUpdateStateInstalling, the installing update is also preserved after dismissing. In this state however, the update will also still be installed after the application is terminated.
*
* A reply of SPUUserUpdateChoiceSkip skips this particular version and won't notify the user again, unless they initiate an update check themselves.
* If state.majorUpdate is YES, the major update and any minor updates to that major release are skipped.
* If state.majorUpgrade is YES, the major update and any minor updates to that major release are skipped.
* If the state.stage is SPUUserUpdateStateInstalling, the installation is also canceled when the update is skipped.
*/
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem state:(SPUUserUpdateState *)state reply:(void (^)(SPUUserUpdateChoice))reply;
+1 -1
View File
@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface SPUUserUpdateState (Private)
- (instancetype)initWithStage:(SPUUserUpdateStage)stage userInitiated:(BOOL)userInitiated majorUpdate:(BOOL)majorUpdate;
- (instancetype)initWithStage:(SPUUserUpdateStage)stage userInitiated:(BOOL)userInitiated majorUpgrade:(BOOL)majorUpgrade;
@end
+1 -1
View File
@@ -39,7 +39,7 @@ SU_EXPORT @interface SPUUserUpdateState : NSObject
@property (nonatomic, readonly) SPUUserUpdateStage stage;
@property (nonatomic, readonly) BOOL userInitiated;
@property (nonatomic, readonly) BOOL majorUpdate;
@property (nonatomic, readonly) BOOL majorUpgrade;
@end
+3 -3
View File
@@ -16,15 +16,15 @@
@synthesize stage = _stage;
@synthesize userInitiated = _userInitiated;
@synthesize majorUpdate = _majorUpdate;
@synthesize majorUpgrade = _majorUpgrade;
- (instancetype)initWithStage:(SPUUserUpdateStage)stage userInitiated:(BOOL)userInitiated majorUpdate:(BOOL)majorUpdate
- (instancetype)initWithStage:(SPUUserUpdateStage)stage userInitiated:(BOOL)userInitiated majorUpgrade:(BOOL)majorUpgrade
{
self = [super init];
if (self != nil) {
_stage = stage;
_userInitiated = userInitiated;
_majorUpdate = majorUpdate;
_majorUpgrade = majorUpgrade;
}
return self;
}