Skip to content

Commit f880e94

Browse files
abdelhamid-f-nasserHeshamMegid
authored andcommitted
fix(ios): enable screenshots for crashes & sessions (#1055)
Jira ID: [IBGCRASH-20555](https://instabug.atlassian.net/browse/IBGCRASH-20555)
1 parent c8b5f46 commit f880e94

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
- Fix an issue with Android Gradle Plugin namespace support required for React Native 0.73 and backward compatibility with previous versions ([#1044](https://github.com/Instabug/Instabug-React-Native/pull/1044)).
1313
- Fix an issue with unhandled JavaScript crashes being reported as native iOS crashes ([#1054](https://github.com/Instabug/Instabug-React-Native/pull/1054))
14+
- Re-enable screenshot capturing for Crash Reporting and Session Replay by removing redundant mapping ([#1055](https://github.com/Instabug/Instabug-React-Native/pull/1055)).
1415

1516
## [12.1.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.1.0...v11.14.0)
1617

src/modules/Instabug.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,15 +328,6 @@ export const setReproStepsConfig = (config: ReproConfig) => {
328328
sessionReplay = config.all;
329329
}
330330

331-
// There's an issue with crashes repro steps with screenshots in the iOS SDK
332-
// at the moment, so we'll map enabled with screenshots to enabled with no
333-
// screenshots to avoid storing the images on disk if it's not needed until
334-
// this issue is fixed in a future version.
335-
if (Platform.OS === 'ios' && crash === ReproStepsMode.enabled) {
336-
/* istanbul ignore next */
337-
crash = ReproStepsMode.enabledWithNoScreenshots;
338-
}
339-
340331
NativeInstabug.setReproStepsConfig(bug, crash, sessionReplay);
341332
};
342333

0 commit comments

Comments
 (0)