This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
packages/firebase_crashlytics Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1+ ## 0.1.0+2
2+
3+ * [ iOS] Fixes crash when trying to report a crash without any context
4+
15## 0.1.0+1
26
37* Added additional exception information from the Flutter framework to the reports.
Original file line number Diff line number Diff line change @@ -76,9 +76,16 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
7676 for (NSDictionary *errorElement in errorElements) {
7777 [frames addObject: [self generateFrame: errorElement]];
7878 }
79+
80+ NSString *context = call.arguments [@" context" ];
81+ NSString *reason;
82+ if (context != nil ) {
83+ reason = [NSString stringWithFormat: @" thrown %@ " , context];
84+ }
85+
7986 [[Crashlytics sharedInstance ]
8087 recordCustomExceptionName: call.arguments[@" exception" ]
81- reason: [ NSString
88+ reason: reason
8289 stringWithFormat: @" thrown %s " , call.arguments[@" context" ]]
8390 frameArray:frames];
8491 result (@" Error reported to Crashlytics." );
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: firebase_crashlytics
22description :
33 Flutter plugin for Firebase Crashlytics. It reports uncaught errors to the
44 Firebase console.
5- version : 0.1.0+1
5+ version : 0.1.0+2
66author :
Flutter Team <[email protected] > 77homepage : https://github.com/flutter/plugins/tree/master/packages/firebase_crashlytics
88
You can’t perform that action at this time.
0 commit comments