diff --git a/Sparkle/SUAppcastItem.m b/Sparkle/SUAppcastItem.m index 4a6bf263..a214f7b7 100644 --- a/Sparkle/SUAppcastItem.m +++ b/Sparkle/SUAppcastItem.m @@ -191,7 +191,7 @@ self.displayVersionString = self.versionString; } - NSString* enclosureRolloutIntervalString = [enclosure objectForKey:SUAppcastAttributePhasedRolloutInterval]; + NSString* enclosureRolloutIntervalString = [dict objectForKey:SUAppcastElementPhasedRolloutInterval]; if(enclosureRolloutIntervalString) { self.phasedRolloutInterval = @(enclosureRolloutIntervalString.integerValue); } diff --git a/Sparkle/SUConstants.h b/Sparkle/SUConstants.h index 825e0c96..43e557b5 100644 --- a/Sparkle/SUConstants.h +++ b/Sparkle/SUConstants.h @@ -71,7 +71,6 @@ extern NSString *const SUAppcastAttributeEDSignature; extern NSString *const SUAppcastAttributeShortVersionString; extern NSString *const SUAppcastAttributeVersion; extern NSString *const SUAppcastAttributeOsType; -extern NSString *const SUAppcastAttributePhasedRolloutInterval; extern NSString *const SUAppcastElementCriticalUpdate; extern NSString *const SUAppcastElementDeltas; @@ -80,6 +79,7 @@ extern NSString *const SUAppcastElementMinimumSystemVersion; extern NSString *const SUAppcastElementMaximumSystemVersion; extern NSString *const SUAppcastElementReleaseNotesLink; extern NSString *const SUAppcastElementTags; +extern NSString *const SUAppcastElementPhasedRolloutInterval; extern NSString *const SURSSAttributeURL; extern NSString *const SURSSAttributeLength; diff --git a/Sparkle/SUConstants.m b/Sparkle/SUConstants.m index 0a6eb451..48398965 100644 --- a/Sparkle/SUConstants.m +++ b/Sparkle/SUConstants.m @@ -61,7 +61,6 @@ NSString *const SUAppcastAttributeEDSignature = @"sparkle:edSignature"; NSString *const SUAppcastAttributeShortVersionString = @"sparkle:shortVersionString"; NSString *const SUAppcastAttributeVersion = @"sparkle:version"; NSString *const SUAppcastAttributeOsType = @"sparkle:os"; -NSString *const SUAppcastAttributePhasedRolloutInterval = @"sparkle:phasedRolloutInterval"; NSString *const SUAppcastElementCriticalUpdate = @"sparkle:criticalUpdate"; NSString *const SUAppcastElementDeltas = @"sparkle:deltas"; @@ -70,6 +69,7 @@ NSString *const SUAppcastElementMinimumSystemVersion = @"sparkle:minimumSystemVe NSString *const SUAppcastElementMaximumSystemVersion = @"sparkle:maximumSystemVersion"; NSString *const SUAppcastElementReleaseNotesLink = @"sparkle:releaseNotesLink"; NSString *const SUAppcastElementTags = @"sparkle:tags"; +NSString *const SUAppcastElementPhasedRolloutInterval = @"sparkle:phasedRolloutInterval"; NSString *const SURSSAttributeURL = @"url"; NSString *const SURSSAttributeLength = @"length"; diff --git a/Sparkle/SUSystemUpdateInfo.m b/Sparkle/SUSystemUpdateInfo.m index aefb35a4..2d8296df 100644 --- a/Sparkle/SUSystemUpdateInfo.m +++ b/Sparkle/SUSystemUpdateInfo.m @@ -65,7 +65,7 @@ } + (NSNumber*)updateGroupIdentifierForHost:(SUHost*)host { - NSNumber* updateGroupIdentifier = [host objectForInfoDictionaryKey:SUUpdateGroupIdentifierKey]; + NSNumber* updateGroupIdentifier = [host objectForUserDefaultsKey:SUUpdateGroupIdentifierKey]; if(updateGroupIdentifier == nil) { updateGroupIdentifier = [self setNewUpdateGroupIdentifierForHost:host]; } diff --git a/Tests/Resources/testappcast.xml b/Tests/Resources/testappcast.xml index d5794351..01fd3f14 100644 --- a/Tests/Resources/testappcast.xml +++ b/Tests/Resources/testappcast.xml @@ -12,7 +12,8 @@ Version 3.0 - + 86400 +