react-native-shield-fraud-plugin 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,7 +72,6 @@ public class ShieldFraudPluginModule extends ReactContextBaseJavaModule implemen
72
72
 
73
73
  Shield shield = builder.build();
74
74
  Shield.setSingletonInstance(shield);
75
- System.out.println("SHIELD:: Init Done");
76
75
  }
77
76
  }
78
77
 
@@ -134,7 +133,6 @@ public class ShieldFraudPluginModule extends ReactContextBaseJavaModule implemen
134
133
 
135
134
  @ReactMethod(isBlockingSynchronousMethod = true)
136
135
  public String getSessionId() {
137
- System.out.println("SHIELD:: GetSession Id");
138
136
  return Shield.getInstance().getSessionId();
139
137
  }
140
138
 
@@ -168,7 +166,6 @@ public class ShieldFraudPluginModule extends ReactContextBaseJavaModule implemen
168
166
  @Override
169
167
  public void isReady() {
170
168
  Shield.getInstance().sendAttributes(screenName, data);
171
- System.out.println("the attribteus are sent to the server");
172
169
  }
173
170
  });
174
171
  }
@@ -9,7 +9,6 @@ RCT_EXPORT_MODULE();
9
9
  RCT_EXPORT_METHOD(initShield:(NSString *)siteID secretKey:(NSString *)secretKey isOptimizedListener:(BOOL)isOptimizedListener blockedDialog:(NSDictionary *)blockedDialog logLevel:(NSInteger)logLevel environmentInfo:(NSInteger)environmentInfo)
10
10
  {
11
11
  if (!isShieldInitialized) {
12
- NSLog(@"siteId : %@ and secret key: %@", siteID, secretKey);
13
12
  Configuration *config = [[Configuration alloc] initWithSiteId:siteID secretKey:secretKey];
14
13
 
15
14
  if (isOptimizedListener) {
@@ -33,7 +32,6 @@ RCT_EXPORT_METHOD(initShield:(NSString *)siteID secretKey:(NSString *)secretKey
33
32
 
34
33
  // get session id from shield sdk
35
34
  RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getSessionId) {
36
- NSLog(@"SHIELD:: get sessionID");
37
35
  return [[Shield shared]sessionId];
38
36
  }
39
37
 
@@ -58,7 +56,6 @@ RCT_EXPORT_METHOD(setDeviceResultStateListener:(RCTResponseSenderBlock)callback)
58
56
  dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
59
57
  dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
60
58
  [[Shield shared] setDeviceResultStateListener:^{
61
- NSLog(@"SHIELD_INIT_DONE:: SDK READY");
62
59
  callback(@[]);
63
60
  }];
64
61
  });
@@ -70,8 +67,7 @@ RCT_EXPORT_METHOD(setDeviceResultStateListener:(RCTResponseSenderBlock)callback)
70
67
 
71
68
  - (void)didErrorWithError:(NSError *)error
72
69
  {
73
- NSDictionary *errorInfo = @{@"error": [error localizedDescription]};
74
- [self sendEventWithName:@"error" body:errorInfo];
70
+ [self sendEventWithName:@"error" body:[error localizedDescription]];
75
71
  }
76
72
 
77
73
  - (void)didSuccessWithResult:(NSDictionary<NSString *,id> *)result
@@ -83,8 +79,6 @@ RCT_EXPORT_METHOD(sendAttributes: (NSString *)screenName data: (NSDictionary *)d
83
79
  {
84
80
  [[Shield shared] sendAttributesWithScreenName:screenName data:data];
85
81
  }
86
-
87
-
88
82
  @end
89
83
 
90
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-shield-fraud-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "React Native Shield Fraud Plugin helps developers to assess malicious activities performed on mobile devices and return risk intelligence based on user's behaviour. It collects device's fingerprint, social metrics and network information.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",