mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 11:30:04 +00:00
Add apps binary UUID to the XML structure
Allows the server to optimize checking of required dSYMs
This commit is contained in:
parent
6e6b3ffdfd
commit
ec383ef569
@ -464,6 +464,24 @@ NSString *BWQuincyLocalize(NSString *stringToken) {
|
|||||||
#pragma mark Private
|
#pragma mark Private
|
||||||
|
|
||||||
|
|
||||||
|
- (NSString *) extractAppUUIDs:(PLCrashReport *)report {
|
||||||
|
NSMutableString *uuidString = [NSMutableString string];
|
||||||
|
NSArray *uuidArray = [CNSCrashReportTextFormatter arrayOfAppUUIDsForCrashReport:report];
|
||||||
|
|
||||||
|
for (NSDictionary *element in uuidArray) {
|
||||||
|
if ([element objectForKey:kCNSBinaryImageKeyUUID] && [element objectForKey:kCNSBinaryImageKeyArch] && [element objectForKey:kCNSBinaryImageKeyUUID]) {
|
||||||
|
[uuidString appendFormat:@"<uuid type=\"%@\" arch=\"%@\">%@</uuid>",
|
||||||
|
[element objectForKey:kCNSBinaryImageKeyType],
|
||||||
|
[element objectForKey:kCNSBinaryImageKeyArch],
|
||||||
|
[element objectForKey:kCNSBinaryImageKeyUUID]
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return uuidString;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
- (NSString *)_getDevicePlatform {
|
- (NSString *)_getDevicePlatform {
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
sysctlbyname("hw.machine", NULL, &size, NULL, 0);
|
sysctlbyname("hw.machine", NULL, &size, NULL, 0);
|
||||||
@ -522,8 +540,9 @@ NSString *BWQuincyLocalize(NSString *stringToken) {
|
|||||||
crashes = [NSMutableString string];
|
crashes = [NSMutableString string];
|
||||||
}
|
}
|
||||||
|
|
||||||
[crashes appendFormat:@"<crash><applicationname>%s</applicationname><bundleidentifier>%@</bundleidentifier><systemversion>%@</systemversion><platform>%@</platform><senderversion>%@</senderversion><version>%@</version><uuid>%@</uuid><log><![CDATA[%@]]></log><userid>%@</userid><contact>%@</contact><description><![CDATA[%@]]></description></crash>",
|
[crashes appendFormat:@"<crash><applicationname>%s</applicationname><uuids>%@</uuids><bundleidentifier>%@</bundleidentifier><systemversion>%@</systemversion><platform>%@</platform><senderversion>%@</senderversion><version>%@</version><uuid>%@</uuid><log><![CDATA[%@]]></log><userid>%@</userid><contact>%@</contact><description><![CDATA[%@]]></description></crash>",
|
||||||
[[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleExecutable"] UTF8String],
|
[[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleExecutable"] UTF8String],
|
||||||
|
[self extractAppUUIDs:report],
|
||||||
report.applicationInfo.applicationIdentifier,
|
report.applicationInfo.applicationIdentifier,
|
||||||
report.systemInfo.operatingSystemVersion,
|
report.systemInfo.operatingSystemVersion,
|
||||||
[self _getDevicePlatform],
|
[self _getDevicePlatform],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user