The API for reporting JavaScript crashes on iOS has been changed from Instabug.reportCrashWithStackTrace to CrashReporting.cp_reportFatalCrashWithStackTrace in the native iOS SDK as part of v13.1.0 but the React Native SDK wasn't updated to use the new API. This led to fatal JavaScript crashes being reported by the iOS SDK as native crashes rather than JavaScript crashes breaking symbolication for these crashes.
This PR updates the API to be the new one to fix this bug.
Type of change
[x] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Related issues
Jira ID: MOB-16163
Checklists
Development
[x] Lint rules pass locally
[x] The code changed/added as part of this pull request has been covered with tests
Code review
[x] This pull request has a descriptive title and information useful to a reviewer
[x] Issue from task tracker has a link to this pull request
Description of the change
The API for reporting JavaScript crashes on iOS has been changed from
Instabug.reportCrashWithStackTrace
toCrashReporting.cp_reportFatalCrashWithStackTrace
in the native iOS SDK as part of v13.1.0 but the React Native SDK wasn't updated to use the new API. This led to fatal JavaScript crashes being reported by the iOS SDK as native crashes rather than JavaScript crashes breaking symbolication for these crashes.This PR updates the API to be the new one to fix this bug.
Type of change
Related issues
Jira ID: MOB-16163
Checklists
Development
Code review