Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0108b42

Browse files
committed
fix: linting
1 parent bcba6ee commit 0108b42

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,16 +1279,16 @@ public Map<String, Object> getConstants() {
12791279
* @param autoMaskingTypes The masking type to be applied.
12801280
*/
12811281
@ReactMethod
1282-
public void enableAutoMasking(@NonNull ReadableArray autoMaskingTypes) {
1283-
int[] autoMassingTypesArray = new int[autoMaskingTypes.size()];
1284-
for (int i=0;i< autoMaskingTypes.size();i++)
1285-
{
1286-
String key = autoMaskingTypes.getString(i);
1287-
1288-
autoMassingTypesArray[i]= ArgsRegistry.autoMaskingTypes.get(key);
1289-
1282+
public void enableAutoMasking(@NonNull ReadableArray autoMaskingTypes) {
1283+
int[] autoMassingTypesArray = new int[autoMaskingTypes.size()];
1284+
for (int i=0;i< autoMaskingTypes.size();i++)
1285+
{
1286+
String key = autoMaskingTypes.getString(i);
1287+
1288+
autoMassingTypesArray[i]= ArgsRegistry.autoMaskingTypes.get(key);
1289+
1290+
}
1291+
1292+
Instabug.setAutoMaskScreenshotsTypes(autoMassingTypesArray);
12901293
}
1291-
1292-
Instabug.setAutoMaskScreenshotsTypes(autoMassingTypesArray);
1293-
}
12941294
}

android/src/test/java/com/instabug/reactlibrary/RNInstabugReactnativeModuleTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ public void testEnableAutoMasking(){
672672
String maskMedia = "media";
673673
String maskNone = "none";
674674

675-
676675
rnModule.enableAutoMasking(JavaOnlyArray.of(maskLabel, maskMedia, maskTextInputs,maskNone));
677676

678677
mockInstabug.verify(() -> Instabug.setAutoMaskScreenshotsTypes(MaskingType.LABELS,MaskingType.MEDIA,MaskingType.TEXT_INPUTS,MaskingType.MASK_NOTHING));

examples/default/ios/InstabugTests/InstabugSampleTests.m

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -610,19 +610,19 @@ - (void) testIsW3CaughtHeaderEnabled {
610610

611611
- (void)testEnableAutoMasking {
612612
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]);
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]);
626626
}
627627

628628
@end

examples/default/ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ target 'InstabugExample' do
1515
config = use_native_modules!
1616
rn_maps_path = '../node_modules/react-native-maps'
1717
pod 'react-native-google-maps', :path => rn_maps_path
18+
# to be removed in release activities
1819
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/feature-add-rct-text-view-to-automasked-views/14.2.0/Instabug.podspec' # Flags change depending on the env values.
1920
flags = get_default_flags()
2021

0 commit comments

Comments
 (0)