mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
remove unused simulated new version
it's not needed in the tests and currently just adds overhead
This commit is contained in:
@@ -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
|
||||
///-----------------------------------------------------------------------------
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user