mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Add generateTestCrash method
This commit is contained in:
@@ -227,4 +227,20 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerStatus) {
|
||||
*/
|
||||
- (BOOL)isDebuggerAttached;
|
||||
|
||||
|
||||
/**
|
||||
* Lets the app crash for easy testing of the SDK
|
||||
*
|
||||
* The best way to use this is to trigger the crash with a button action.
|
||||
*
|
||||
* Make sure not to let the app crash in `applicationDidFinishLaunching` or any other
|
||||
* startup method! Since otherwise the app would crash before the SDK could process it.
|
||||
*
|
||||
* Note that our SDK provides support for handling crashes that happen early on startup.
|
||||
* Check the documentation for more information on how to use this.
|
||||
*
|
||||
* If the SDK detects an App Store environment, it will _NOT_ cause the app to crash!
|
||||
*/
|
||||
- (void)generateTestCrash;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user