Skip to content

Commit 5db91cf

Browse files
committed
fix: add change log
1 parent ead57d5 commit 5db91cf

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
- Add support for tracing network requests from Instabug to services like Datadog and New Relic ([#1288](https://github.com/Instabug/Instabug-React-Native/pull/1288))
1414

15+
Add support enable/disable screenshot auto masking. ([#1353](https://github.com/Instabug/Instabug-React-Native/pull/1353))
16+
1517
### Changed
1618

1719
- Bump Instabug iOS SDK to v14.1.0 ([#1335](https://github.com/Instabug/Instabug-React-Native/pull/1335)). [See release notes](https://github.com/Instabug/Instabug-iOS/releases/tag/14.1.0).

examples/default/ios/InstabugTests/InstabugSampleTests.m

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,5 +608,21 @@ - (void) testIsW3CaughtHeaderEnabled {
608608
OCMVerify([mock w3CaughtHeaderEnabled]);
609609
}
610610

611+
- (void)testEnableAutoMasking {
612+
id mock = OCMClassMock([Instabug class]);
613+
614+
NSArray *autoMaskingTypes = [NSArray arrayWithObjects:
615+
[NSNumber numberWithInteger:IBGAutoMaskScreenshotOptionLabels],
616+
[NSNumber numberWithInteger:IBGAutoMaskScreenshotOptionTextInputs],
617+
[NSNumber numberWithInteger:IBGAutoMaskScreenshotOptionMedia],
618+
[NSNumber numberWithInteger:IBGAutoMaskScreenshotOptionMaskNothing],
619+
nil];
620+
621+
OCMStub([mock setAutoMaskScreenshots:IBGAutoMaskScreenshotOptionLabels | IBGAutoMaskScreenshotOptionTextInputs | IBGAutoMaskScreenshotOptionMedia | IBGAutoMaskScreenshotOptionMaskNothing]);
622+
623+
[self.instabugBridge enableAutoMasking:autoMaskingTypes];
624+
625+
OCMVerify([mock setAutoMaskScreenshots:IBGAutoMaskScreenshotOptionLabels | IBGAutoMaskScreenshotOptionTextInputs | IBGAutoMaskScreenshotOptionMedia | IBGAutoMaskScreenshotOptionMaskNothing]);
626+
}
611627

612628
@end

0 commit comments

Comments
 (0)