mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 05:02:54 +00:00
Merge branch 'develop' into feature/iOS9-Updates
This commit is contained in:
@@ -103,6 +103,8 @@
|
||||
|
||||
- (void)setLastCrashFilename:(NSString *)lastCrashFilename;
|
||||
|
||||
- (void)leavingAppSafely;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@@ -42,6 +42,10 @@
|
||||
#import "BITUpdateViewControllerPrivate.h"
|
||||
#import "BITAppVersionMetaInfo.h"
|
||||
|
||||
#if HOCKEYSDK_FEATURE_CRASH_REPORTER
|
||||
#import "BITCrashManagerPrivate.h"
|
||||
#endif
|
||||
|
||||
typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
||||
BITUpdateAlertViewTagDefaultUpdate = 0,
|
||||
BITUpdateAlertViewTagNeverEndingAlertView = 1,
|
||||
@@ -138,6 +142,10 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
||||
[self.delegate updateManagerWillExitApp:self];
|
||||
}
|
||||
|
||||
#if HOCKEYSDK_FEATURE_CRASH_REPORTER
|
||||
[[BITHockeyManager sharedHockeyManager].crashManager leavingAppSafely];
|
||||
#endif
|
||||
|
||||
// for now we simply exit the app, later SDK versions might optionally show an alert with localized text
|
||||
// describing the user to press the home button to start the update process
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user