diff --git a/Source/BugsnagKSCrashSysInfoParser.m b/Source/BugsnagKSCrashSysInfoParser.m index 154ca1ce9..819102aa1 100644 --- a/Source/BugsnagKSCrashSysInfoParser.m +++ b/Source/BugsnagKSCrashSysInfoParser.m @@ -119,6 +119,7 @@ BSGDictSetSafeObject(deviceState, report[@"machine"], @"model"); BSGDictSetSafeObject(deviceState, report[@"system_name"], @"osName"); BSGDictSetSafeObject(deviceState, report[@"system_version"], @"osVersion"); + BSGDictSetSafeObject(deviceState, report[@"os_version"], @"osBuild"); BSGDictSetSafeObject(deviceState, @(PLATFORM_WORD_SIZE), @"wordSize"); BSGDictSetSafeObject(deviceState, @"Apple", @"manufacturer"); BSGDictSetSafeObject(deviceState, report[@"jailbroken"], @"jailbroken"); diff --git a/Tests/BugsnagSessionTrackingPayloadTest.m b/Tests/BugsnagSessionTrackingPayloadTest.m index b67885cc1..f7197ee60 100644 --- a/Tests/BugsnagSessionTrackingPayloadTest.m +++ b/Tests/BugsnagSessionTrackingPayloadTest.m @@ -41,7 +41,7 @@ - (void)testPayloadSerialisation { - (void)testDeviceSerialisation { NSDictionary *device = self.payload[@"device"]; XCTAssertNotNil(device); - XCTAssertEqual(7, device.count); + XCTAssertEqual(8, device.count); XCTAssertEqualObjects(device[@"manufacturer"], @"Apple"); XCTAssertNotNil(device[@"model"]); diff --git a/Tests/BugsnagSinkTests.m b/Tests/BugsnagSinkTests.m index b00a67053..55ee64075 100644 --- a/Tests/BugsnagSinkTests.m +++ b/Tests/BugsnagSinkTests.m @@ -259,9 +259,9 @@ - (void)testEventDevice { NSDictionary *device = event[@"device"]; XCTAssertNotNil(device); #if TARGET_OS_IPHONE || TARGET_OS_TV || TARGET_IPHONE_SIMULATOR - XCTAssertEqual(17, device.count); + XCTAssertEqual(18, device.count); #else - XCTAssertEqual(16, device.count); + XCTAssertEqual(17, device.count); #endif XCTAssertEqualObjects(device[@"id"], @"f6d519a74213a57f8d052c53febfeee6f856d062"); @@ -270,6 +270,7 @@ - (void)testEventDevice { XCTAssertEqualObjects(device[@"modelNumber"], @"MacBookPro11,3"); XCTAssertEqualObjects(device[@"osName"], @"iPhone OS"); XCTAssertEqualObjects(device[@"osVersion"], @"8.1"); + XCTAssertEqualObjects(device[@"osBuild"], @"14B25"); XCTAssertEqualObjects(device[@"totalMemory"], @15065522176); XCTAssertNotNil(device[@"freeDisk"]); XCTAssertEqualObjects(device[@"timezone"], @"PST");