From 0939e6133c0027ae1542eadf77d9696eabb5f3a1 Mon Sep 17 00:00:00 2001 From: Jamie Lynch Date: Wed, 14 Mar 2018 09:33:47 +0000 Subject: [PATCH] Update BugsnagSink.m Adds device info to correct dictionary for minimal reports --- Source/BugsnagSink.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/BugsnagSink.m b/Source/BugsnagSink.m index 8d271acbf..0fc2517a1 100644 --- a/Source/BugsnagSink.m +++ b/Source/BugsnagSink.m @@ -82,13 +82,13 @@ - (void)filterReports:(NSArray *)reports BSGDictInsertIfNotNil(appDict, sysInfo[@BSG_KSSystemField_BundleShortVersion], @"version"); NSMutableDictionary *deviceDict = [NSMutableDictionary new]; - BSGDictInsertIfNotNil(appDict, sysInfo[@BSG_KSSystemField_Jailbroken], @"jailbroken"); - BSGDictInsertIfNotNil(appDict, [[NSLocale currentLocale] localeIdentifier], @"locale"); - BSGDictInsertIfNotNil(appDict, sysInfo[@"Apple"], @"manufacturer"); - BSGDictInsertIfNotNil(appDict, sysInfo[@BSG_KSSystemField_Machine], @"model"); - BSGDictInsertIfNotNil(appDict, sysInfo[@BSG_KSSystemField_Model], @"modelNumber"); - BSGDictInsertIfNotNil(appDict, sysInfo[@BSG_KSSystemField_SystemName], @"osName"); - BSGDictInsertIfNotNil(appDict, sysInfo[@BSG_KSSystemField_SystemVersion], @"osVersion"); + BSGDictInsertIfNotNil(deviceDict, sysInfo[@BSG_KSSystemField_Jailbroken], @"jailbroken"); + BSGDictInsertIfNotNil(deviceDict, [[NSLocale currentLocale] localeIdentifier], @"locale"); + BSGDictInsertIfNotNil(deviceDict, sysInfo[@"Apple"], @"manufacturer"); + BSGDictInsertIfNotNil(deviceDict, sysInfo[@BSG_KSSystemField_Machine], @"model"); + BSGDictInsertIfNotNil(deviceDict, sysInfo[@BSG_KSSystemField_Model], @"modelNumber"); + BSGDictInsertIfNotNil(deviceDict, sysInfo[@BSG_KSSystemField_SystemName], @"osName"); + BSGDictInsertIfNotNil(deviceDict, sysInfo[@BSG_KSSystemField_SystemVersion], @"osVersion"); bugsnagReport.app = appDict; bugsnagReport.device = deviceDict;