File tree 1 file changed +6
-8
lines changed
packages/firebase_crashlytics/darwin/Classes 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -81,16 +81,14 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
81
81
if (context != nil ) {
82
82
reason = [NSString stringWithFormat: @" thrown %@ " , context];
83
83
}
84
- NSDictionary *stack = @{
85
- @" stackTrace" : frames
86
- };
87
84
88
- NSException *exception = [NSException
89
- exceptionWithName: call.arguments[@" exception" ]
90
- reason: reason
91
- userInfo: stack];
85
+ FIRExceptionModel *exception = [FIRExceptionModel
86
+ exceptionModelWithName: call.arguments[@" exception" ]
87
+ reason: reason];
88
+
89
+ exception .stackTrace = frames;
92
90
93
- [[FIRCrashlytics crashlytics ] recordError :exception ];
91
+ [[FIRCrashlytics crashlytics ] recordExceptionModel :exception ];
94
92
result (@" Error reported to Crashlytics." );
95
93
} else if ([@" Crashlytics#setUserIdentifier" isEqualToString: call.method]) {
96
94
[[FIRCrashlytics crashlytics ] setUserID: call.arguments[@" identifier" ]];
You can’t perform that action at this time.
0 commit comments