Make sure update checks are never don from the AppStore environment also if the Update UI wasn't removed from the release build

This commit is contained in:
Andreas Linde 2013-09-19 12:51:55 +02:00
parent dd0fab33f5
commit ff351edbf1

View File

@ -390,6 +390,10 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
#pragma mark - BetaUpdateUI
- (BITUpdateViewController *)hockeyViewController:(BOOL)modal {
if ([self isAppStoreEnvironment]) {
NSLog(@"[HockeySDK] This should not be called from an app store build!");
return nil;
}
return [[BITUpdateViewController alloc] initWithModalStyle:modal];
}
@ -542,6 +546,7 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
}
- (void)checkForUpdateShowFeedback:(BOOL)feedback {
if ([self isAppStoreEnvironment]) return;
if (self.isCheckInProgress) return;
_showFeedback = feedback;