idwise-nfc-react-native-sdk 5.4.0 → 5.4.5

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 (53) hide show
  1. package/android/gradle.properties +1 -1
  2. package/ios/IDWiseNFC.xcframework/Info.plist +5 -5
  3. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Assets.car +0 -0
  4. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentTypeTableViewCell.nib +0 -0
  5. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  6. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/IDWiseNFC +0 -0
  7. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Info.plist +0 -0
  8. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.abi.json +6820 -6565
  9. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface +32 -11
  10. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  11. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface +32 -11
  12. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
  13. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  14. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
  15. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
  16. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  17. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ar.lproj/CustomLocalized.strings +0 -0
  18. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ckb.lproj/CustomLocalized.strings +0 -0
  19. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  20. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +64 -61
  21. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  22. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/metadata.json +21 -18
  23. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/en.lproj/CustomLocalized.strings +0 -0
  24. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/en.lproj/Localizable.strings +0 -0
  25. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Assets.car +0 -0
  26. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentTypeTableViewCell.nib +0 -0
  27. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  28. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/IDWiseNFC +0 -0
  29. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Info.plist +0 -0
  30. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.abi.json +6820 -6565
  31. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +32 -11
  32. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  33. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +32 -11
  34. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.abi.json +6820 -6565
  35. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +32 -11
  36. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  37. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +32 -11
  38. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
  39. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  40. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
  41. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
  42. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  43. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/_CodeSignature/CodeResources +126 -39
  44. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ar.lproj/CustomLocalized.strings +0 -0
  45. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ckb.lproj/CustomLocalized.strings +0 -0
  46. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  47. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +64 -61
  48. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/metadata.json +21 -18
  49. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/en.lproj/CustomLocalized.strings +0 -0
  50. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/en.lproj/Localizable.strings +0 -0
  51. package/ios/IdwiseMobileSdk.mm +1 -1
  52. package/ios/IdwiseMobileSdk.swift +3 -2
  53. package/package.json +1 -1
@@ -1,43 +1,14 @@
1
1
  [
2
2
  {
3
- "shortDescription" : "https:\/\/github.com\/ultralytics\/yolov5",
4
3
  "metadataOutputVersion" : "3.0",
5
- "outputSchema" : [
6
- {
7
- "dataType" : "Double",
8
- "hasShapeFlexibility" : "1",
9
- "isOptional" : "0",
10
- "shapeFlexibility" : "0... × 1",
11
- "shapeRange" : "[[0, -1], [1, 1]]",
12
- "formattedType" : "MultiArray (Double 0 × 1)",
13
- "type" : "MultiArray",
14
- "shape" : "[0, 1]",
15
- "name" : "confidence",
16
- "shortDescription" : "Boxes × Class confidence (see user-defined metadata \"classes\")"
17
- },
18
- {
19
- "dataType" : "Double",
20
- "hasShapeFlexibility" : "1",
21
- "isOptional" : "0",
22
- "shapeFlexibility" : "0... × 4",
23
- "shapeRange" : "[[0, -1], [4, 4]]",
24
- "formattedType" : "MultiArray (Double 0 × 4)",
25
- "type" : "MultiArray",
26
- "shape" : "[0, 4]",
27
- "name" : "coordinates",
28
- "shortDescription" : "Boxes × [x, y, width, height] (relative to image size)"
29
- }
30
- ],
31
- "version" : "https:\/\/github.com\/ultralytics\/yolov5",
32
- "modelParameters" : [
33
-
4
+ "userDefinedMetadata" : {
5
+ "confidence_threshold" : "0.25",
6
+ "iou_threshold" : "0.45",
7
+ "classes" : "Doc"
8
+ },
9
+ "classLabels" : [
10
+ "Doc"
34
11
  ],
35
- "author" : "glenn.jocher@ultralytics.com",
36
- "specificationVersion" : 4,
37
- "storagePrecision" : "Mixed (Float32, Int8)",
38
- "license" : "https:\/\/github.com\/ultralytics\/yolov5\/blob\/master\/LICENSE",
39
- "computePrecision" : "Float16",
40
- "isUpdatable" : "0",
41
12
  "availability" : {
42
13
  "macOS" : "10.15",
43
14
  "tvOS" : "13.0",
@@ -46,17 +17,6 @@
46
17
  "iOS" : "13.0",
47
18
  "macCatalyst" : "13.0"
48
19
  },
49
- "modelType" : {
50
- "name" : "MLModelType_pipeline",
51
- "structure" : [
52
- {
53
- "name" : "MLModelType_neuralNetwork"
54
- },
55
- {
56
- "name" : "MLModelType_nonMaximumSuppression"
57
- }
58
- ]
59
- },
60
20
  "inputSchema" : [
61
21
  {
62
22
  "height" : "640",
@@ -85,31 +45,74 @@
85
45
  "shortDescription" : "(optional) Confidence Threshold override (default: 0.25)"
86
46
  }
87
47
  ],
88
- "classLabels" : [
89
- "Doc"
48
+ "outputSchema" : [
49
+ {
50
+ "dataType" : "Double",
51
+ "hasShapeFlexibility" : "1",
52
+ "isOptional" : "0",
53
+ "shapeFlexibility" : "0... × 1",
54
+ "shapeRange" : "[[0, -1], [1, 1]]",
55
+ "formattedType" : "MultiArray (Double 0 × 1)",
56
+ "type" : "MultiArray",
57
+ "shape" : "[0, 1]",
58
+ "name" : "confidence",
59
+ "shortDescription" : "Boxes × Class confidence (see user-defined metadata \"classes\")"
60
+ },
61
+ {
62
+ "dataType" : "Double",
63
+ "hasShapeFlexibility" : "1",
64
+ "isOptional" : "0",
65
+ "shapeFlexibility" : "0... × 4",
66
+ "shapeRange" : "[[0, -1], [4, 4]]",
67
+ "formattedType" : "MultiArray (Double 0 × 4)",
68
+ "type" : "MultiArray",
69
+ "shape" : "[0, 4]",
70
+ "name" : "coordinates",
71
+ "shortDescription" : "Boxes × [x, y, width, height] (relative to image size)"
72
+ }
90
73
  ],
91
- "generatedClassName" : "document_detector",
92
- "userDefinedMetadata" : {
93
- "confidence_threshold" : "0.25",
94
- "iou_threshold" : "0.45",
95
- "classes" : "Doc"
96
- },
74
+ "modelParameters" : [
75
+
76
+ ],
77
+ "storagePrecision" : "Mixed (Float32, Int8)",
97
78
  "neuralNetworkLayerTypeHistogram" : {
98
79
  "Concat" : 13,
99
80
  "UnaryPower" : 3,
100
81
  "Convolution" : 60,
101
- "ActivationSigmoid" : 60,
82
+ "PoolingINVALID" : 3,
83
+ "Transpose" : 3,
102
84
  "ReshapeStatic" : 6,
85
+ "UpsampleINVALID" : 2,
103
86
  "LoadConstantND" : 6,
104
- "Transpose" : 3,
105
- "UpsampleNearestNeighbor" : 2,
106
- "PoolingMax" : 3,
87
+ "ActivationSigmoid" : 60,
107
88
  "SplitND" : 4,
108
89
  "Squeeze" : 1,
109
- "Add" : 10,
110
90
  "Multiply" : 71,
91
+ "Add" : 10,
111
92
  "ConcatND" : 4
112
93
  },
113
- "method" : "predict"
94
+ "method" : "predict",
95
+ "version" : "https:\/\/github.com\/ultralytics\/yolov5",
96
+ "isUpdatable" : "0",
97
+ "specificationVersion" : 4,
98
+ "stateSchema" : [
99
+
100
+ ],
101
+ "computePrecision" : "Float16",
102
+ "shortDescription" : "https:\/\/github.com\/ultralytics\/yolov5",
103
+ "license" : "https:\/\/github.com\/ultralytics\/yolov5\/blob\/master\/LICENSE",
104
+ "generatedClassName" : "document_detector",
105
+ "author" : "glenn.jocher@ultralytics.com",
106
+ "modelType" : {
107
+ "name" : "MLModelType_pipeline",
108
+ "structure" : [
109
+ {
110
+ "name" : "MLModelType_neuralNetwork"
111
+ },
112
+ {
113
+ "name" : "MLModelType_nonMaximumSuppression"
114
+ }
115
+ ]
116
+ }
114
117
  }
115
118
  ]
@@ -25,6 +25,9 @@
25
25
  "specificationVersion" : 4,
26
26
  "computePrecision" : "Float16",
27
27
  "isUpdatable" : "0",
28
+ "stateSchema" : [
29
+
30
+ ],
28
31
  "availability" : {
29
32
  "macOS" : "10.15",
30
33
  "tvOS" : "13.0",
@@ -36,21 +39,6 @@
36
39
  "modelType" : {
37
40
  "name" : "MLModelType_neuralNetworkClassifier"
38
41
  },
39
- "userDefinedMetadata" : {
40
- "com.github.apple.coremltools.version" : "6.2",
41
- "com.github.apple.coremltools.source" : "torch==1.12.1"
42
- },
43
- "classLabels" : [
44
- "good_quality_score",
45
- "blur_quality_score",
46
- "compression_quality_score",
47
- "glare_quality_score",
48
- "grainy_noise_quality_score",
49
- "low_brightness_quality_score",
50
- "over_exposure_quality_score",
51
- "none_id_score"
52
- ],
53
- "generatedClassName" : "document_quality_model",
54
42
  "inputSchema" : [
55
43
  {
56
44
  "height" : "512",
@@ -65,14 +53,29 @@
65
53
  "name" : "input_1"
66
54
  }
67
55
  ],
56
+ "classLabels" : [
57
+ "good_quality_score",
58
+ "blur_quality_score",
59
+ "compression_quality_score",
60
+ "glare_quality_score",
61
+ "grainy_noise_quality_score",
62
+ "low_brightness_quality_score",
63
+ "over_exposure_quality_score",
64
+ "none_id_score"
65
+ ],
66
+ "generatedClassName" : "document_quality_model",
67
+ "userDefinedMetadata" : {
68
+ "com.github.apple.coremltools.version" : "6.2",
69
+ "com.github.apple.coremltools.source" : "torch==1.12.1"
70
+ },
68
71
  "neuralNetworkLayerTypeHistogram" : {
69
72
  "ReshapeStatic" : 1,
70
- "Add" : 10,
71
73
  "PoolingAverage" : 1,
74
+ "Add" : 10,
72
75
  "Clip" : 35,
73
76
  "Convolution" : 52,
74
- "ActivationSigmoid" : 1,
75
- "InnerProduct" : 1
77
+ "InnerProduct" : 1,
78
+ "ActivationSigmoid" : 1
76
79
  },
77
80
  "method" : "predict"
78
81
  }
@@ -23,7 +23,7 @@ RCT_EXTERN_METHOD(resumeJourney:(NSString *)journeyDefinitionId
23
23
  :(NSString *)journeyId
24
24
  :(NSString *)locale)
25
25
  RCT_EXTERN_METHOD(getJourneySummary)
26
- RCT_EXTERN_METHOD(isDeviceBlocked)
26
+ RCT_EXTERN_METHOD(isDeviceBlocked:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject)
27
27
  RCT_EXTERN_METHOD(unloadSDK)
28
28
  RCT_EXTERN_METHOD(finishDynamicJourney)
29
29
  RCT_EXTERN_METHOD(skipStep:(NSString *)stepId)
@@ -168,8 +168,9 @@ class IdwiseMobileSdk: RCTEventEmitter {
168
168
  }
169
169
  }
170
170
 
171
- @objc func isDeviceBlocked() -> Bool {
172
- return IDWise.isDeviceBlocked()
171
+ @objc func isDeviceBlocked(_ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock){
172
+ let isBlocked = IDWise.isDeviceBlocked()
173
+ resolve(isBlocked)
173
174
  }
174
175
 
175
176
  // Delegate Methods bridging
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idwise-nfc-react-native-sdk",
3
- "version": "5.4.0",
3
+ "version": "5.4.5",
4
4
  "description": "IDWise React Native Bridge",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",