react-native-shield-fraud-plugin 1.0.6 → 1.0.7

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.
Files changed (51) hide show
  1. package/README.md +18 -12
  2. package/ios/ShieldFraudPlugin.xcodeproj/project.pbxproj +0 -44
  3. package/ios/ShieldFraudPlugin.xcodeproj/project.xcworkspace/xcuserdata/deepakraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  4. package/package.json +1 -1
  5. package/ios/Podfile +0 -10
  6. package/ios/Podfile.lock +0 -16
  7. package/ios/Pods/Manifest.lock +0 -16
  8. package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -536
  9. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/Pods-ShieldFraudPlugin.xcscheme +0 -58
  10. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/ShieldFraud.xcscheme +0 -58
  11. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/xcschememanagement.plist +0 -21
  12. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/Info.plist +0 -40
  13. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Headers/ShieldFraud-Swift.h +0 -425
  14. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Headers/ShieldFraud.h +0 -20
  15. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Info.plist +0 -0
  16. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.abi.json +0 -20535
  17. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -207
  18. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  19. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.swiftinterface +0 -207
  20. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/module.modulemap +0 -11
  21. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/ShieldFraud +0 -0
  22. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/_CodeSignature/CodeResources +0 -222
  23. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Headers/ShieldFraud-Swift.h +0 -846
  24. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Headers/ShieldFraud.h +0 -20
  25. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Info.plist +0 -0
  26. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -20535
  27. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -207
  28. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  29. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -207
  30. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -19653
  31. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -207
  32. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  33. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -207
  34. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/module.modulemap +0 -11
  35. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/ShieldFraud +0 -0
  36. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/_CodeSignature/CodeResources +0 -297
  37. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-Info.plist +0 -26
  38. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-acknowledgements.markdown +0 -7
  39. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-acknowledgements.plist +0 -39
  40. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-dummy.m +0 -5
  41. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-umbrella.h +0 -16
  42. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.debug.xcconfig +0 -13
  43. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.modulemap +0 -6
  44. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.release.xcconfig +0 -13
  45. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud-xcframeworks.sh +0 -121
  46. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud.debug.xcconfig +0 -15
  47. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud.release.xcconfig +0 -15
  48. package/ios/ShieldFraudPlugin.xcworkspace/contents.xcworkspacedata +0 -10
  49. package/ios/ShieldFraudPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  50. package/ios/ShieldFraudPlugin.xcworkspace/xcuserdata/deepakraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  51. package/ios/ShieldFraudPlugin.xcworkspace/xcuserdata/deepakraj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -6
package/README.md CHANGED
@@ -41,13 +41,9 @@ You can refer to the Changelog to see more details about our updates.
41
41
 
42
42
  ### Initialize the SDK
43
43
 
44
- The SDK initialization should be configured at the earliest of the App Lifecycle to ensure successful generation and processing of the device fingerprint. SDK is to be initialised only once and will throw an exception if it is initialised more than once.
45
-
46
-
47
- You need both the SHIELD_SITE_ID and SHIELD_SECRET_KEY to initialize the SDK. You can locate them at the top of the page.
48
-
49
- You can initialize the SDK by calling it inside UseEffect()
44
+ The SDK initialization should be configured on `useEffect` *(for **Functional Components**)* or `componentDidMount` *(for **Class Components**)* in your **App.tsx** or on **App launch** to ensure successful generation and processing of the device fingerprint. The SDK is to be initialized only once and will throw an exception if it is initialized more than once.
50
45
 
46
+ You need both the **SHIELD_SITE_ID** and **SHIELD_SECRET_KEY** to initialize the SDK. You can locate them at the top of the page.
51
47
  ```
52
48
  const config: Config = {
53
49
  siteID: 'SHIELD_SITE_ID',
@@ -55,14 +51,19 @@ const config: Config = {
55
51
  };
56
52
 
57
53
  useEffect(() => {
58
- ShieldFraud.initShield(config)
59
- }
54
+ const initializeShield = async () => {
55
+ await ShieldFraud.initShield(config);
56
+ };
57
+
58
+ initializeShield();
59
+ }, []);
60
60
  ```
61
+ **Note** - ```await ShieldFraud.initShield(config)``` - *The await keyword is used to wait for the promise returned by the initShield function to resolve. In React Native, It is best practice to use `await` when calling native modules from React Native, especially during `asynchronous` operations such as SDK Initialization. This is because using `await` ensures that the main thread is not blocked while the native module is initializing.*
61
62
 
62
63
  `Config` has these **optional** parameters:
63
64
 
64
- 1. `logLevel` Set your log level to debug, info or none. | Receives high-level information about how the SDK processes network requests, responses or error information during SDK integration. Default log level is none.
65
- 2. `environmentInfo` Set your environment info to prod, dev or staging. Default environment info is prod.
65
+ 1. `logLevel` Set your log level to `debug`, `info` or `none`. | Receives high-level information about how the SDK processes network requests, responses or error information during SDK integration. Default log level is `none`.
66
+ 2. `environmentInfo` Set your environment info to `prod`, `dev` or `staging`. Default environment info is `prod`.
66
67
  3. `blockedDialog` Set your dialog for the blocked dialog both title and body or you can send it as null as well
67
68
 
68
69
  Note: You can check whether Shield SDK is ready or not by using isSDKready function
@@ -107,7 +108,7 @@ You can register a callback if you would like to be notified in the event that t
107
108
 
108
109
  Add an additional parameter during intialization in order to register a callback.
109
110
 
110
- For example - ShieldFraud.initShield(config, **callbacks**);
111
+ **For example - `await ShieldFraud.initShield(config, callbacks);`**
111
112
  ```
112
113
  const callbacks: ShieldCallback = {
113
114
  onSuccess: (data) => {
@@ -125,7 +126,12 @@ const config: Config = {
125
126
  secretKey: 'SHIELD_SECRET_KEY'
126
127
  };
127
128
 
128
- ShieldFraud.initShield(config, callbacks);
129
+ useEffect(() => {
130
+ const initializeShield = async () => {
131
+ await ShieldFraud.initShield(config, callbacks);
132
+ };
133
+ initializeShield();
134
+ }, []);
129
135
  ```
130
136
 
131
137
  #### Retrieve device results via Customized Pull
@@ -8,7 +8,6 @@
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
10
  4DC15CAF29F27C9B002A8B6C /* ShieldFraudPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* ShieldFraudPlugin.m */; };
11
- F167571A67B6200098CBA80C /* Pods_ShieldFraudPlugin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F046944AE9395EF1AEB8DB39 /* Pods_ShieldFraudPlugin.framework */; };
12
11
  /* End PBXBuildFile section */
13
12
 
14
13
  /* Begin PBXCopyFilesBuildPhase section */
@@ -25,11 +24,8 @@
25
24
 
26
25
  /* Begin PBXFileReference section */
27
26
  134814201AA4EA6300B7C361 /* libShieldFraudPlugin.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libShieldFraudPlugin.a; sourceTree = BUILT_PRODUCTS_DIR; };
28
- 665385E0D17A9E1D0BC4BB56 /* Pods-ShieldFraudPlugin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ShieldFraudPlugin.release.xcconfig"; path = "Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.release.xcconfig"; sourceTree = "<group>"; };
29
27
  B3E7B5881CC2AC0600A0062D /* ShieldFraudPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShieldFraudPlugin.h; sourceTree = "<group>"; };
30
28
  B3E7B5891CC2AC0600A0062D /* ShieldFraudPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShieldFraudPlugin.m; sourceTree = "<group>"; };
31
- C1AD94D3D1982FF842092419 /* Pods-ShieldFraudPlugin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ShieldFraudPlugin.debug.xcconfig"; path = "Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.debug.xcconfig"; sourceTree = "<group>"; };
32
- F046944AE9395EF1AEB8DB39 /* Pods_ShieldFraudPlugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ShieldFraudPlugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
33
29
  /* End PBXFileReference section */
34
30
 
35
31
  /* Begin PBXFrameworksBuildPhase section */
@@ -37,7 +33,6 @@
37
33
  isa = PBXFrameworksBuildPhase;
38
34
  buildActionMask = 2147483647;
39
35
  files = (
40
- F167571A67B6200098CBA80C /* Pods_ShieldFraudPlugin.framework in Frameworks */,
41
36
  );
42
37
  runOnlyForDeploymentPostprocessing = 0;
43
38
  };
@@ -55,8 +50,6 @@
55
50
  31EC8772E7BF66C38E51DB38 /* Pods */ = {
56
51
  isa = PBXGroup;
57
52
  children = (
58
- C1AD94D3D1982FF842092419 /* Pods-ShieldFraudPlugin.debug.xcconfig */,
59
- 665385E0D17A9E1D0BC4BB56 /* Pods-ShieldFraudPlugin.release.xcconfig */,
60
53
  );
61
54
  path = Pods;
62
55
  sourceTree = "<group>";
@@ -68,18 +61,9 @@
68
61
  B3E7B5891CC2AC0600A0062D /* ShieldFraudPlugin.m */,
69
62
  134814211AA4EA7D00B7C361 /* Products */,
70
63
  31EC8772E7BF66C38E51DB38 /* Pods */,
71
- DB1BDC55CCE65888ED19A665 /* Frameworks */,
72
64
  );
73
65
  sourceTree = "<group>";
74
66
  };
75
- DB1BDC55CCE65888ED19A665 /* Frameworks */ = {
76
- isa = PBXGroup;
77
- children = (
78
- F046944AE9395EF1AEB8DB39 /* Pods_ShieldFraudPlugin.framework */,
79
- );
80
- name = Frameworks;
81
- sourceTree = "<group>";
82
- };
83
67
  /* End PBXGroup section */
84
68
 
85
69
  /* Begin PBXNativeTarget section */
@@ -87,7 +71,6 @@
87
71
  isa = PBXNativeTarget;
88
72
  buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ShieldFraudPlugin" */;
89
73
  buildPhases = (
90
- D6EA6B2BCE68BAE66D6746A6 /* [CP] Check Pods Manifest.lock */,
91
74
  58B511D71A9E6C8500147676 /* Sources */,
92
75
  58B511D81A9E6C8500147676 /* Frameworks */,
93
76
  58B511D91A9E6C8500147676 /* CopyFiles */,
@@ -133,31 +116,6 @@
133
116
  };
134
117
  /* End PBXProject section */
135
118
 
136
- /* Begin PBXShellScriptBuildPhase section */
137
- D6EA6B2BCE68BAE66D6746A6 /* [CP] Check Pods Manifest.lock */ = {
138
- isa = PBXShellScriptBuildPhase;
139
- buildActionMask = 2147483647;
140
- files = (
141
- );
142
- inputFileListPaths = (
143
- );
144
- inputPaths = (
145
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
146
- "${PODS_ROOT}/Manifest.lock",
147
- );
148
- name = "[CP] Check Pods Manifest.lock";
149
- outputFileListPaths = (
150
- );
151
- outputPaths = (
152
- "$(DERIVED_FILE_DIR)/Pods-ShieldFraudPlugin-checkManifestLockResult.txt",
153
- );
154
- runOnlyForDeploymentPostprocessing = 0;
155
- shellPath = /bin/sh;
156
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
157
- showEnvVarsInLog = 0;
158
- };
159
- /* End PBXShellScriptBuildPhase section */
160
-
161
119
  /* Begin PBXSourcesBuildPhase section */
162
120
  58B511D71A9E6C8500147676 /* Sources */ = {
163
121
  isa = PBXSourcesBuildPhase;
@@ -267,7 +225,6 @@
267
225
  };
268
226
  58B511F01A9E6C8500147676 /* Debug */ = {
269
227
  isa = XCBuildConfiguration;
270
- baseConfigurationReference = C1AD94D3D1982FF842092419 /* Pods-ShieldFraudPlugin.debug.xcconfig */;
271
228
  buildSettings = {
272
229
  HEADER_SEARCH_PATHS = (
273
230
  "$(inherited)",
@@ -284,7 +241,6 @@
284
241
  };
285
242
  58B511F11A9E6C8500147676 /* Release */ = {
286
243
  isa = XCBuildConfiguration;
287
- baseConfigurationReference = 665385E0D17A9E1D0BC4BB56 /* Pods-ShieldFraudPlugin.release.xcconfig */;
288
244
  buildSettings = {
289
245
  HEADER_SEARCH_PATHS = (
290
246
  "$(inherited)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-shield-fraud-plugin",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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",
package/ios/Podfile DELETED
@@ -1,10 +0,0 @@
1
- # Uncomment the next line to define a global platform for your project
2
- platform :ios, '11.0'
3
-
4
- target 'ShieldFraudPlugin' do
5
- # Comment the next line if you don't want to use dynamic frameworks
6
- use_frameworks!
7
-
8
- # Pods for ShieldFraudPlugin
9
- pod 'ShieldFraud'
10
- end
package/ios/Podfile.lock DELETED
@@ -1,16 +0,0 @@
1
- PODS:
2
- - ShieldFraud (1.5.28)
3
-
4
- DEPENDENCIES:
5
- - ShieldFraud
6
-
7
- SPEC REPOS:
8
- trunk:
9
- - ShieldFraud
10
-
11
- SPEC CHECKSUMS:
12
- ShieldFraud: d79af5280f65ba8b99188bffec32c33df18931ff
13
-
14
- PODFILE CHECKSUM: bb1ff44dc7cfd449bde1bb035f6a1eb25a54d48c
15
-
16
- COCOAPODS: 1.12.1
@@ -1,16 +0,0 @@
1
- PODS:
2
- - ShieldFraud (1.5.28)
3
-
4
- DEPENDENCIES:
5
- - ShieldFraud
6
-
7
- SPEC REPOS:
8
- trunk:
9
- - ShieldFraud
10
-
11
- SPEC CHECKSUMS:
12
- ShieldFraud: d79af5280f65ba8b99188bffec32c33df18931ff
13
-
14
- PODFILE CHECKSUM: bb1ff44dc7cfd449bde1bb035f6a1eb25a54d48c
15
-
16
- COCOAPODS: 1.12.1