mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Added Quincy properties and methods to CNSHockeyManager.
This commit is contained in:
parent
6aeb205063
commit
1446d31588
@ -61,7 +61,7 @@
|
|||||||
// Maximum length: 255 chars
|
// Maximum length: 255 chars
|
||||||
//
|
//
|
||||||
// Default: empty
|
// Default: empty
|
||||||
-(NSString *) crashReportContact;
|
-(NSString *)crashReportContact;
|
||||||
|
|
||||||
// Invoked before a crash report will be sent
|
// Invoked before a crash report will be sent
|
||||||
//
|
//
|
||||||
@ -70,7 +70,7 @@
|
|||||||
// that in your string.
|
// that in your string.
|
||||||
//
|
//
|
||||||
// Default: empty
|
// Default: empty
|
||||||
-(NSString *) crashReportDescription;
|
-(NSString *)crashReportDescription;
|
||||||
|
|
||||||
// Invoked before the user is asked to send a crash report
|
// Invoked before the user is asked to send a crash report
|
||||||
//
|
//
|
||||||
@ -80,13 +80,44 @@
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
@interface CNSHockeyManager : NSObject {
|
@interface CNSHockeyManager : NSObject {
|
||||||
@private
|
@private
|
||||||
id delegate;
|
id delegate;
|
||||||
NSString *appIdentifier;
|
NSString *appIdentifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Custom language style; set to a string which will be appended to
|
||||||
|
// to the localization file name; the Hockey SDK includes an alternative
|
||||||
|
// file, to use this, set to @"Alternate"
|
||||||
|
//
|
||||||
|
// Default: nil
|
||||||
|
@property (nonatomic, retain) NSString *languageStyle;
|
||||||
|
|
||||||
|
// Show button "Always" in crash alert; this will cause the dialog not to
|
||||||
|
// show the alert description text landscape mode! (default)
|
||||||
|
//
|
||||||
|
// Default: NO
|
||||||
|
@property (nonatomic, assign, getter=isShowingAlwaysButton) BOOL showAlwaysButton;
|
||||||
|
|
||||||
|
// Show feedback from server with status of the crash; if you set a crash
|
||||||
|
// to resolved on HockeyApp and assign a fixed version, this version will
|
||||||
|
// be reported to the user
|
||||||
|
//
|
||||||
|
// Default: NO
|
||||||
|
@property (nonatomic, assign, getter=isFeedbackActivated) BOOL feedbackActivated;
|
||||||
|
|
||||||
|
// Submit crash report without asking the user
|
||||||
|
//
|
||||||
|
// Default: NO
|
||||||
|
@property (nonatomic, assign, getter=isAutoSubmitCrashReport) BOOL autoSubmitCrashReport;
|
||||||
|
|
||||||
|
// Submit the device's UDID in the field UserID if crashReportUserID is not
|
||||||
|
// implemented (see CNSHockeyManagerDelegate); DO NOT USE THIS FOR LIVE
|
||||||
|
// VERSION OF YOUR APP AS THIS VIOLATES THE USERS PRIVACY!
|
||||||
|
//
|
||||||
|
// Default: NO
|
||||||
|
@property (nonatomic, assign, getter=isAutoSubmitDeviceUDID) BOOL autoSubmitDeviceUDID;
|
||||||
|
|
||||||
// Returns the shared manager object
|
// Returns the shared manager object
|
||||||
+ (CNSHockeyManager *)sharedHockeyManager;
|
+ (CNSHockeyManager *)sharedHockeyManager;
|
||||||
|
|
||||||
@ -98,4 +129,7 @@
|
|||||||
// of the app; the update alert will only be shown for the beta identifier
|
// of the app; the update alert will only be shown for the beta identifier
|
||||||
- (void)configureWithBetaIdentifier:(NSString *)betaIdentifier liveIdentifier:(NSString *)liveIdentifier delegate:(id)delegate;
|
- (void)configureWithBetaIdentifier:(NSString *)betaIdentifier liveIdentifier:(NSString *)liveIdentifier delegate:(id)delegate;
|
||||||
|
|
||||||
|
// Returns true if the app crashes in the last session
|
||||||
|
- (BOOL)didCrashInLastSession;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -119,7 +119,7 @@
|
|||||||
[invocation invoke];
|
[invocation invoke];
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - Public Instance Methods
|
#pragma mark - Public Instance Methods (Configuration)
|
||||||
|
|
||||||
- (void)configureWithIdentifier:(NSString *)newAppIdentifier delegate:(id)newDelegate {
|
- (void)configureWithIdentifier:(NSString *)newAppIdentifier delegate:(id)newDelegate {
|
||||||
delegate = newDelegate;
|
delegate = newDelegate;
|
||||||
@ -147,6 +147,52 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma mark - Public Instance Methods (Crash Reporting)
|
||||||
|
|
||||||
|
- (NSString *)languageStyle {
|
||||||
|
return [[BWQuincyManager sharedQuincyManager] languageStyle];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setLanguageStyle:(NSString *)languageStyle {
|
||||||
|
[[BWQuincyManager sharedQuincyManager] setLanguageStyle:languageStyle];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)isShowingAlwaysButton {
|
||||||
|
return [[BWQuincyManager sharedQuincyManager] isShowingAlwaysButton];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setShowAlwaysButton:(BOOL)showAlwaysButton {
|
||||||
|
[[BWQuincyManager sharedQuincyManager] setShowAlwaysButton:showAlwaysButton];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)isFeedbackActivated {
|
||||||
|
return [[BWQuincyManager sharedQuincyManager] isFeedbackActivated];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setFeedbackActivated:(BOOL)setFeedbackActivated {
|
||||||
|
[[BWQuincyManager sharedQuincyManager] setFeedbackActivated:setFeedbackActivated];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)isAutoSubmitCrashReport {
|
||||||
|
return [[BWQuincyManager sharedQuincyManager] isAutoSubmitCrashReport];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setAutoSubmitCrashReport:(BOOL)autoSubmitCrashReport {
|
||||||
|
[[BWQuincyManager sharedQuincyManager] setAutoSubmitCrashReport:autoSubmitCrashReport];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)isAutoSubmitDeviceUDID {
|
||||||
|
return [[BWQuincyManager sharedQuincyManager] isAutoSubmitDeviceUDID];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setAutoSubmitDeviceUDID:(BOOL)autoSubmitDeviceUDID {
|
||||||
|
[[BWQuincyManager sharedQuincyManager] setAutoSubmitDeviceUDID:autoSubmitDeviceUDID];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)didCrashInLastSession {
|
||||||
|
return [[BWQuincyManager sharedQuincyManager] didCrashInLastSession];
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark - Private Instance Methods
|
#pragma mark - Private Instance Methods
|
||||||
|
|
||||||
- (BOOL)shouldUseLiveIdenfitier {
|
- (BOOL)shouldUseLiveIdenfitier {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user