diff --git a/Classes/BITStoreUpdateManager.h b/Classes/BITStoreUpdateManager.h index c38d45f239..e4443a7bd9 100644 --- a/Classes/BITStoreUpdateManager.h +++ b/Classes/BITStoreUpdateManager.h @@ -54,7 +54,6 @@ typedef enum { @interface BITStoreUpdateManager : BITHockeyBaseManager - ///----------------------------------------------------------------------------- /// @name Delegate ///----------------------------------------------------------------------------- @@ -158,29 +157,6 @@ typedef enum { */ @property (nonatomic, assign, getter=isUpdateUIEnabled) BOOL updateUIEnabled; - -///----------------------------------------------------------------------------- -/// @name Tests -///----------------------------------------------------------------------------- - -/** - Define the simulated new version avaialble from the App Store - - Set the version string that should be used for a simulated new version being available - in the App Store. - - `BITStoreUpdateManager` must be enabled in `BITHockeyManager` for this to work! - - *Default*: _NIL_ - - @warning This property is autoamtically disabled if accidentally being invoked in an - App Store build. - @see updateSetting - @see BITHockeyManager - */ -@property (nonatomic, strong) NSString *simulatedNewStoreVersion; - - ///----------------------------------------------------------------------------- /// @name Manual update checking ///----------------------------------------------------------------------------- diff --git a/Classes/BITStoreUpdateManager.m b/Classes/BITStoreUpdateManager.m index 6a994a4b0f..b88d9911db 100644 --- a/Classes/BITStoreUpdateManager.m +++ b/Classes/BITStoreUpdateManager.m @@ -92,7 +92,6 @@ _appStoreURL = nil; _currentUUID = [[self executableUUID] copy]; _countryCode = nil; - _simulatedNewStoreVersion = nil; _mainBundle = [NSBundle mainBundle]; _currentLocale = [NSLocale currentLocale]; @@ -238,7 +237,6 @@ #pragma mark - Private - (BOOL)shouldCancelProcessing { - if (self.simulatedNewStoreVersion) return NO; if (![self isAppStoreEnvironment]) return YES; if (![self isStoreUpdateManagerEnabled]) return YES; return NO; @@ -263,12 +261,6 @@ self.updateAvailable = [self hasNewVersion:json]; - if (self.simulatedNewStoreVersion) { - self.updateAvailable = YES; - _lastCheckFailed = NO; - _newStoreVersion = self.simulatedNewStoreVersion; - } - BITHockeyLog(@"INFO: Update available: %i", self.updateAvailable); if (_lastCheckFailed) { @@ -414,15 +406,6 @@ } } -- (void)setSimulatedNewStoreVersion:(NSString *)aSimulatedNewStoreVersion { - if ([self isAppStoreEnvironment]) return; - - if (_simulatedNewStoreVersion != aSimulatedNewStoreVersion) { - _simulatedNewStoreVersion = [aSimulatedNewStoreVersion copy]; - } -} - - #pragma mark - UIAlertViewDelegate // invoke the selected action from the action sheet for a location element