Skip to content

Commit 48e11f8

Browse files
committed
fix: linting
1 parent 406a025 commit 48e11f8

File tree

4 files changed

+29
-26
lines changed

4 files changed

+29
-26
lines changed

.lh/examples/default/ios/Podfile.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
"activeCommit": 0,
44
"commits": [
55
{
6-
"activePatchIndex": 0,
6+
"activePatchIndex": 1,
77
"patches": [
88
{
99
"date": 1742910753663,
1010
"content": "Index: \n===================================================================\n--- \n+++ \n"
11+
},
12+
{
13+
"date": 1742910852149,
14+
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,45 @@\n+require_relative '../node_modules/react-native/scripts/react_native_pods'\n+\n+require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'\n+\n+platform :ios, '13.4'\n+prepare_react_native_project!\n+\n+linkage = ENV['USE_FRAMEWORKS']\n+if linkage != nil\n+ Pod::UI.puts \"Configuring Pod with #{linkage}ally linked Frameworks\".green\n+ use_frameworks! :linkage => linkage.to_sym\n+end\n+\n+target 'InstabugExample' do\n+ config = use_native_modules!\n+ rn_maps_path = '../node_modules/react-native-maps'\n+ pod 'react-native-google-maps', :path => rn_maps_path\n+ # Flags change depending on the env values.\n+ flags = get_default_flags()\n+\n+ use_react_native!(\n+ :path => config[:reactNativePath],\n+ # Hermes is now enabled by default. Disable by setting this flag to false.\n+ # Upcoming versions of React Native may rely on get_default_flags(), but\n+ # we make it explicit here to aid in the React Native upgrade process.\n+ :hermes_enabled => flags[:hermes_enabled],\n+ :fabric_enabled => flags[:fabric_enabled],\n+ # An absolute path to your application root.\n+ :app_path => \"#{Pod::Config.instance.installation_root}/..\"\n+ )\n+\n+ target 'InstabugTests' do\n+ inherit! :complete\n+ pod 'OCMock'\n+ end\n+\n+ post_install do |installer|\n+ react_native_post_install(\n+ installer,\n+ # Set `mac_catalyst_enabled` to `true` in order to apply patches\n+ # necessary for Mac Catalyst builds\n+ :mac_catalyst_enabled => false\n+ )\n+ end\n+end\n"
1115
}
1216
],
1317
"date": 1742910753663,

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

0 commit comments

Comments
 (0)