react-native-shield-fraud-plugin 1.0.1 → 1.0.2
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.
- package/ios/ShieldFraudPlugin.m +2 -5
- package/package.json +1 -1
package/ios/ShieldFraudPlugin.m
CHANGED
|
@@ -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) {
|
|
@@ -28,6 +27,7 @@ RCT_EXPORT_METHOD(initShield:(NSString *)siteID secretKey:(NSString *)secretKey
|
|
|
28
27
|
config.environment = environmentInfo;
|
|
29
28
|
[Shield setUpWith:config];
|
|
30
29
|
isShieldInitialized = YES;
|
|
30
|
+
NSLog(@"SHIELD:: Init Done");
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -70,8 +70,7 @@ RCT_EXPORT_METHOD(setDeviceResultStateListener:(RCTResponseSenderBlock)callback)
|
|
|
70
70
|
|
|
71
71
|
- (void)didErrorWithError:(NSError *)error
|
|
72
72
|
{
|
|
73
|
-
|
|
74
|
-
[self sendEventWithName:@"error" body:errorInfo];
|
|
73
|
+
[self sendEventWithName:@"error" body:[error localizedDescription]];
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
- (void)didSuccessWithResult:(NSDictionary<NSString *,id> *)result
|
|
@@ -83,8 +82,6 @@ RCT_EXPORT_METHOD(sendAttributes: (NSString *)screenName data: (NSDictionary *)d
|
|
|
83
82
|
{
|
|
84
83
|
[[Shield shared] sendAttributesWithScreenName:screenName data:data];
|
|
85
84
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
85
|
@end
|
|
89
86
|
|
|
90
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-shield-fraud-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
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",
|