mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-06 16:30:55 +00:00
Merge pull request #153 from alloy/develop
Add process ID to BITCrashDetails.
This commit is contained in:
@@ -85,6 +85,11 @@
|
||||
*/
|
||||
@property (nonatomic, readonly, strong) NSString *appBuild;
|
||||
|
||||
/**
|
||||
* Identifier of the app process that crashed
|
||||
*/
|
||||
@property (nonatomic, readonly, assign) NSUInteger appProcessIdentifier;
|
||||
|
||||
/**
|
||||
Indicates if the app was killed while being in foreground from the iOS
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ NSString *const kBITCrashKillSignal = @"SIGKILL";
|
||||
osVersion:(NSString *)osVersion
|
||||
osBuild:(NSString *)osBuild
|
||||
appBuild:(NSString *)appBuild
|
||||
appProcessIdentifier:(NSUInteger)appProcessIdentifier
|
||||
{
|
||||
if ((self = [super init])) {
|
||||
_incidentIdentifier = incidentIdentifier;
|
||||
@@ -55,6 +56,7 @@ NSString *const kBITCrashKillSignal = @"SIGKILL";
|
||||
_osVersion = osVersion;
|
||||
_osBuild = osBuild;
|
||||
_appBuild = appBuild;
|
||||
_appProcessIdentifier = appProcessIdentifier;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ extern NSString *const __attribute__((unused)) kBITCrashKillSignal;
|
||||
crashTime:(NSDate *)crashTime
|
||||
osVersion:(NSString *)osVersion
|
||||
osBuild:(NSString *)osBuild
|
||||
appBuild:(NSString *)appBuild;
|
||||
appBuild:(NSString *)appBuild
|
||||
appProcessIdentifier:(NSUInteger)appProcessIdentifier;
|
||||
|
||||
@end
|
||||
|
||||
@@ -820,6 +820,7 @@ static PLCrashReporterCallbacks plCrashCallbacks = {
|
||||
osVersion:report.systemInfo.operatingSystemVersion
|
||||
osBuild:report.systemInfo.operatingSystemBuild
|
||||
appBuild:report.applicationInfo.applicationVersion
|
||||
appProcessIdentifier:report.processInfo.processID
|
||||
];
|
||||
|
||||
// fetch and store the meta data after setting _lastSessionCrashDetails, so the property can be used in the protocol methods
|
||||
@@ -1199,6 +1200,7 @@ static PLCrashReporterCallbacks plCrashCallbacks = {
|
||||
osVersion:fakeReportOSVersion
|
||||
osBuild:fakeReportOSBuild
|
||||
appBuild:fakeReportAppVersion
|
||||
appProcessIdentifier:[[NSProcessInfo processInfo] processIdentifier]
|
||||
];
|
||||
|
||||
NSData *plist = [NSPropertyListSerialization dataWithPropertyList:(id)rootObj
|
||||
|
||||
Reference in New Issue
Block a user