Skip to content

Commit

Permalink
deps(react-native): Update bugsnag-cocoa to v6.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdowell committed Jun 30, 2021
1 parent 6fcc997 commit a24ec03
Show file tree
Hide file tree
Showing 28 changed files with 474 additions and 217 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

- (plugin-console-breadcrumbs): Ensure console breadcrumbs do not run in Expo's dev environment and obscure log line numbers [#1453](https://github.com/bugsnag/bugsnag-js/pull/1453)

### Changed

- (react-native): Update bugsnag-cocoa to v6.10.0
- Fix an issue that could cause C++ exceptions with very long descriptions to not be reported. [bugsnag-cocoa#1137](https://github.com/bugsnag/bugsnag-cocoa/pull/1137)
- Improve performance of adding metadata by using async file I/O. [bugsnag-cocoa#1133](https://github.com/bugsnag/bugsnag-cocoa/pull/1133)
- Improve performance of leaving breadcrumbs by using async file I/O. [bugsnag-cocoa#1124](https://github.com/bugsnag/bugsnag-cocoa/pull/1124)

## 7.10.4 (2021-06-28)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/ios/.bugsnag-cocoa-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b75032fbd1e77d5fadc30c339c3d78bec201ef04
18b712d9ecba80b24728d96db55d089ca8953028
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Bugsnag",
"version": "6.9.7",
"version": "6.10.0",
"summary": "The Bugsnag crash reporting framework for Apple platforms.",
"homepage": "https://bugsnag.com",
"license": "MIT",
Expand All @@ -9,7 +9,7 @@
},
"source": {
"git": "https://github.com/bugsnag/bugsnag-cocoa.git",
"tag": "v6.9.7"
"tag": "v6.10.0"
},
"frameworks": [
"Foundation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,13 @@
01B14C57251CE55F00118748 /* report-react-native-promise-rejection.json in Resources */ = {isa = PBXBuildFile; fileRef = 01B14C55251CE55F00118748 /* report-react-native-promise-rejection.json */; };
01B14C58251CE55F00118748 /* report-react-native-promise-rejection.json in Resources */ = {isa = PBXBuildFile; fileRef = 01B14C55251CE55F00118748 /* report-react-native-promise-rejection.json */; };
01B6BB7E25D5777F00FC4DE6 /* BugsnagSwiftPublicAPITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 008966B02486D43500DC48C2 /* BugsnagSwiftPublicAPITests.swift */; };
01B79DA9267CC4A000C8CC5E /* BSGGlobals.h in Headers */ = {isa = PBXBuildFile; fileRef = 01B79DA7267CC4A000C8CC5E /* BSGGlobals.h */; };
01B79DAA267CC4A000C8CC5E /* BSGGlobals.h in Headers */ = {isa = PBXBuildFile; fileRef = 01B79DA7267CC4A000C8CC5E /* BSGGlobals.h */; };
01B79DAB267CC4A000C8CC5E /* BSGGlobals.h in Headers */ = {isa = PBXBuildFile; fileRef = 01B79DA7267CC4A000C8CC5E /* BSGGlobals.h */; };
01B79DAC267CC4A000C8CC5E /* BSGGlobals.m in Sources */ = {isa = PBXBuildFile; fileRef = 01B79DA8267CC4A000C8CC5E /* BSGGlobals.m */; };
01B79DAD267CC4A000C8CC5E /* BSGGlobals.m in Sources */ = {isa = PBXBuildFile; fileRef = 01B79DA8267CC4A000C8CC5E /* BSGGlobals.m */; };
01B79DAE267CC4A000C8CC5E /* BSGGlobals.m in Sources */ = {isa = PBXBuildFile; fileRef = 01B79DA8267CC4A000C8CC5E /* BSGGlobals.m */; };
01B79DAF267CC4A000C8CC5E /* BSGGlobals.m in Sources */ = {isa = PBXBuildFile; fileRef = 01B79DA8267CC4A000C8CC5E /* BSGGlobals.m */; };
01BDB1F525DEBFB200A91FAF /* BSGEventUploadKSCrashReportOperationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 01BDB1CE25DEBF4600A91FAF /* BSGEventUploadKSCrashReportOperationTests.m */; };
01BDB1FD25DEBFB300A91FAF /* BSGEventUploadKSCrashReportOperationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 01BDB1CE25DEBF4600A91FAF /* BSGEventUploadKSCrashReportOperationTests.m */; };
01BDB20525DEBFB300A91FAF /* BSGEventUploadKSCrashReportOperationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 01BDB1CE25DEBF4600A91FAF /* BSGEventUploadKSCrashReportOperationTests.m */; };
Expand Down Expand Up @@ -1316,6 +1323,8 @@
0195FC3B256BC81400DE6646 /* BugsnagEvent+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BugsnagEvent+Private.h"; sourceTree = "<group>"; };
0198762E2567D5AB000A7AF3 /* BugsnagStackframe+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BugsnagStackframe+Private.h"; sourceTree = "<group>"; };
01B14C55251CE55F00118748 /* report-react-native-promise-rejection.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "report-react-native-promise-rejection.json"; sourceTree = "<group>"; };
01B79DA7267CC4A000C8CC5E /* BSGGlobals.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BSGGlobals.h; sourceTree = "<group>"; };
01B79DA8267CC4A000C8CC5E /* BSGGlobals.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BSGGlobals.m; sourceTree = "<group>"; };
01BDB1CE25DEBF4600A91FAF /* BSGEventUploadKSCrashReportOperationTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BSGEventUploadKSCrashReportOperationTests.m; sourceTree = "<group>"; };
01BDB21425DEC02900A91FAF /* Data */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Data; sourceTree = "<group>"; };
01C17AE62542ED7F00C102C9 /* KSCrashReportWriterTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KSCrashReportWriterTests.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1820,6 +1829,8 @@
010FF28225ED2A8D00E4F2B0 /* BSGAppHangDetector.h */,
010FF28325ED2A8D00E4F2B0 /* BSGAppHangDetector.m */,
019480C42625EE9800E833ED /* BSGAppKit.h */,
01B79DA7267CC4A000C8CC5E /* BSGGlobals.h */,
01B79DA8267CC4A000C8CC5E /* BSGGlobals.m */,
01847D942644140F00ADA4C7 /* BSGInternalErrorReporter.h */,
01847D952644140F00ADA4C7 /* BSGInternalErrorReporter.m */,
CBCF77A125010648004AF22A /* BSGJSONSerialization.h */,
Expand Down Expand Up @@ -2031,6 +2042,7 @@
008969F02486DAD100DC48C2 /* BSG_KSCrashReportFields.h in Headers */,
00896A2F2486DAD100DC48C2 /* BSG_KSCrashIdentifier.h in Headers */,
008969FC2486DAD100DC48C2 /* BSG_KSCrashAdvanced.h in Headers */,
01B79DA9267CC4A000C8CC5E /* BSGGlobals.h in Headers */,
008967B82486D9D800DC48C2 /* BugsnagBreadcrumbs.h in Headers */,
008969DE2486DAD100DC48C2 /* BSG_KSCrashC.h in Headers */,
0089699F2486DAD100DC48C2 /* BSG_KSJSONCodecObjC.h in Headers */,
Expand Down Expand Up @@ -2133,6 +2145,7 @@
008969F12486DAD100DC48C2 /* BSG_KSCrashReportFields.h in Headers */,
00896A302486DAD100DC48C2 /* BSG_KSCrashIdentifier.h in Headers */,
008969FD2486DAD100DC48C2 /* BSG_KSCrashAdvanced.h in Headers */,
01B79DAA267CC4A000C8CC5E /* BSGGlobals.h in Headers */,
008967B92486D9D800DC48C2 /* BugsnagBreadcrumbs.h in Headers */,
008969DF2486DAD100DC48C2 /* BSG_KSCrashC.h in Headers */,
008969A02486DAD100DC48C2 /* BSG_KSJSONCodecObjC.h in Headers */,
Expand Down Expand Up @@ -2235,6 +2248,7 @@
008969F22486DAD100DC48C2 /* BSG_KSCrashReportFields.h in Headers */,
00896A312486DAD100DC48C2 /* BSG_KSCrashIdentifier.h in Headers */,
008969FE2486DAD100DC48C2 /* BSG_KSCrashAdvanced.h in Headers */,
01B79DAB267CC4A000C8CC5E /* BSGGlobals.h in Headers */,
008967BA2486D9D800DC48C2 /* BugsnagBreadcrumbs.h in Headers */,
008969E02486DAD100DC48C2 /* BSG_KSCrashC.h in Headers */,
008969A12486DAD100DC48C2 /* BSG_KSJSONCodecObjC.h in Headers */,
Expand Down Expand Up @@ -2622,6 +2636,7 @@
CBE9062D25A34DAB0045B965 /* BSGStorageMigratorV0V1.m in Sources */,
010FF28725ED2A8D00E4F2B0 /* BSGAppHangDetector.m in Sources */,
00896A352486DAD100DC48C2 /* BSG_KSSystemInfo.m in Sources */,
01B79DAC267CC4A000C8CC5E /* BSGGlobals.m in Sources */,
008969E42486DAD100DC48C2 /* BSG_KSCrashIdentifier.m in Sources */,
008967DA2486DA2D00DC48C2 /* BugsnagConfiguration.m in Sources */,
008969A52486DAD100DC48C2 /* BSG_KSBacktrace.c in Sources */,
Expand Down Expand Up @@ -2790,6 +2805,7 @@
CBE9062E25A34DAB0045B965 /* BSGStorageMigratorV0V1.m in Sources */,
010FF28825ED2A8D00E4F2B0 /* BSGAppHangDetector.m in Sources */,
00896A362486DAD100DC48C2 /* BSG_KSSystemInfo.m in Sources */,
01B79DAD267CC4A000C8CC5E /* BSGGlobals.m in Sources */,
008969E52486DAD100DC48C2 /* BSG_KSCrashIdentifier.m in Sources */,
008967DB2486DA2D00DC48C2 /* BugsnagConfiguration.m in Sources */,
008969A62486DAD100DC48C2 /* BSG_KSBacktrace.c in Sources */,
Expand Down Expand Up @@ -2957,6 +2973,7 @@
CBE9062F25A34DAB0045B965 /* BSGStorageMigratorV0V1.m in Sources */,
010FF28925ED2A8D00E4F2B0 /* BSGAppHangDetector.m in Sources */,
00896A372486DAD100DC48C2 /* BSG_KSSystemInfo.m in Sources */,
01B79DAE267CC4A000C8CC5E /* BSGGlobals.m in Sources */,
008969E62486DAD100DC48C2 /* BSG_KSCrashIdentifier.m in Sources */,
008967DC2486DA2D00DC48C2 /* BugsnagConfiguration.m in Sources */,
008969A72486DAD100DC48C2 /* BSG_KSBacktrace.c in Sources */,
Expand Down Expand Up @@ -3123,6 +3140,7 @@
00AD1F262486A17900A27979 /* Bugsnag.m in Sources */,
008968CE2486DA9600DC48C2 /* BugsnagThread.m in Sources */,
00AD1F312486A17900A27979 /* BugsnagSessionTracker.m in Sources */,
01B79DAF267CC4A000C8CC5E /* BSGGlobals.m in Sources */,
008968C62486DA9600DC48C2 /* BugsnagUser.m in Sources */,
CBB0928F2519F891007698BC /* BugsnagSystemState.m in Sources */,
008968AE2486DA9600DC48C2 /* BugsnagStateEvent.m in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>classNames</key>
<dict>
<key>BugsnagBreadcrumbsTest</key>
<dict>
<key>testPerformance</key>
<dict>
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
<dict>
<key>baselineAverage</key>
<real>0.00675</real>
<key>baselineIntegrationDisplayName</key>
<string>Local Baseline</string>
</dict>
</dict>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>runDestinationsByUUID</key>
<dict>
<key>7E1A1286-DD8C-4E45-9E88-4335CD976176</key>
<dict>
<key>localComputer</key>
<dict>
<key>busSpeedInMHz</key>
<integer>400</integer>
<key>cpuCount</key>
<integer>1</integer>
<key>cpuKind</key>
<string>8-Core Intel Core i9</string>
<key>cpuSpeedInMHz</key>
<integer>2300</integer>
<key>logicalCPUCoresPerPackage</key>
<integer>16</integer>
<key>modelCode</key>
<string>MacBookPro16,1</string>
<key>physicalCPUCoresPerPackage</key>
<integer>8</integer>
<key>platformIdentifier</key>
<string>com.apple.platform.macosx</string>
</dict>
<key>targetArchitecture</key>
<string>x86_64</string>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithConfiguration:(BugsnagConfiguration *)config;

/**
* The current breadcrumbs, loaded from disk.
* The breadcrumbs stored in memory.
*/
@property (readonly, nonatomic) NSArray<BugsnagBreadcrumb *> *breadcrumbs;

Expand All @@ -39,12 +39,19 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)addBreadcrumbWithBlock:(BSGBreadcrumbConfiguration)block;

/**
* Store a new serialized breadcrumb.
*
* This method is not intended to be used from other classes, it is exposed to facilitate unit testing.
*/
- (void)addBreadcrumbWithData:(NSData *)data writeToDisk:(BOOL)writeToDisk;

- (NSArray<BugsnagBreadcrumb *> *)breadcrumbsBeforeDate:(NSDate *)date;

/**
* Returns the breadcrumb JSON dictionaries stored on disk.
* The breadcrumb stored on disk.
*/
- (nullable NSArray<NSDictionary *> *)cachedBreadcrumbs;
- (NSArray<BugsnagBreadcrumb *> *)cachedBreadcrumbs;

/**
* Removes breadcrumbs from disk.
Expand All @@ -60,6 +67,7 @@ NS_ASSUME_NONNULL_END
/**
* Inserts the current breadcrumbs into a crash report.
*
* This function is async-signal-safe.
* This function is async-signal-safe, but requires that any threads that could be adding
* breadcrumbs are suspended.
*/
void BugsnagBreadcrumbsWriteCrashReport(const BSG_KSCrashReportWriter * _Nonnull writer);
Loading

0 comments on commit a24ec03

Please sign in to comment.