idwise-nfc-react-native-sdk 5.4.4 → 5.5.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.
Files changed (43) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/gradle.properties +1 -1
  3. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +2 -2
  4. package/idwise-react-native-sdk.podspec +7 -6
  5. package/index.d.ts +125 -0
  6. package/ios/IDWiseNFC.xcframework/Info.plist +5 -5
  7. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Assets.car +0 -0
  8. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentTypeTableViewCell.nib +0 -0
  9. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  10. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/IDWiseNFC +0 -0
  11. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Info.plist +0 -0
  12. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.abi.json +2601 -2260
  13. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface +32 -12
  14. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  15. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface +32 -12
  16. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
  17. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  18. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +64 -61
  19. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/metadata.json +21 -18
  20. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Assets.car +0 -0
  21. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentTypeTableViewCell.nib +0 -0
  22. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  23. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/IDWiseNFC +0 -0
  24. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Info.plist +0 -0
  25. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.abi.json +2601 -2260
  26. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +32 -12
  27. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  28. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +32 -12
  29. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.abi.json +2601 -2260
  30. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +32 -12
  31. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  32. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +32 -12
  33. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
  34. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  35. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/_CodeSignature/CodeResources +35 -35
  36. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +64 -61
  37. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/metadata.json +21 -18
  38. package/ios/IdwiseMobileSdk.mm +0 -3
  39. package/ios/IdwiseMobileSdk.swift +2 -2
  40. package/package.json +8 -4
  41. package/src/IDWiseConstants.js +7 -0
  42. package/src/index.js +5 -3
  43. package/tsconfig.json +31 -0
@@ -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
  }
@@ -28,9 +28,6 @@ RCT_EXTERN_METHOD(unloadSDK)
28
28
  RCT_EXTERN_METHOD(finishDynamicJourney)
29
29
  RCT_EXTERN_METHOD(skipStep:(NSString *)stepId)
30
30
  RCT_EXTERN_METHOD(startStep:(NSString *)stepId)
31
- RCT_EXTERN_METHOD(startStepFromFileUpload:(NSString *)stepId
32
- :(NSData *)data
33
- )
34
31
  RCT_EXTERN_METHOD(supportedEvents)
35
32
 
36
33
  + (BOOL)requiresMainQueueSetup
@@ -130,14 +130,14 @@ class IdwiseMobileSdk: RCTEventEmitter {
130
130
  }
131
131
  }
132
132
 
133
- @objc func startStepFromFileUpload(
133
+ /*@objc func startStepFromFileUpload(
134
134
  _ stepId: String,
135
135
  _ data: Data
136
136
  ) {
137
137
  DispatchQueue.main.async {
138
138
  IDWiseDynamic.startStepFromFileUpload(stepId: stepId, data: data)
139
139
  }
140
- }
140
+ }*/
141
141
 
142
142
  @objc func getJourneySummary() {
143
143
  IDWiseDynamic.getJourneySummary(
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "idwise-nfc-react-native-sdk",
3
- "version": "5.4.4",
3
+ "version": "5.5.2",
4
4
  "description": "IDWise React Native Bridge",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
7
- "types": "lib/typescript/src/index.d.ts",
7
+ "types": "index.d.ts",
8
8
  "react-native": "src/index",
9
9
  "source": "src/index",
10
10
  "files": [
11
11
  "src",
12
12
  "lib",
13
+ "index.d.ts",
14
+ "tsconfig.json",
13
15
  "android",
14
16
  "ios",
15
17
  "cpp",
@@ -35,8 +37,10 @@
35
37
  "test": "jest",
36
38
  "typecheck": "tsc --noEmit",
37
39
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
38
- "prepare": "bob build",
39
- "release": "release-it"
40
+ "prepare": "tsc",
41
+ "build": "tsc",
42
+ "release": "release-it",
43
+ "prepublishOnly": "npm run build"
40
44
  },
41
45
  "keywords": [
42
46
  "react-native",
@@ -22,3 +22,10 @@ export const IDWiseTheme = {
22
22
  DARK: 'DARK',
23
23
  SYSTEM_DEFAULT: 'SYSTEM_DEFAULT',
24
24
  };
25
+
26
+ export const ApplicantDetailsKeys = {
27
+ FULL_NAME: 'full_name',
28
+ BIRTH_DATE: 'birth_date',
29
+ SEX: 'sex',
30
+ ADDRESS: 'address',
31
+ };
package/src/index.js CHANGED
@@ -1,5 +1,7 @@
1
- import * as IDWise from './IDWise';
2
- import { IDWiseTheme } from './IDWiseConstants';
3
- import * as IDWiseDynamic from './IDWiseDynamic';
1
+ import { IDWise } from './IDWise';
2
+ import { IDWiseTheme, ApplicantDetailsKeys } from './IDWiseConstants';
3
+ import { IDWiseDynamic } from './IDWiseDynamic';
4
+
5
+ export { IDWise, IDWiseTheme, IDWiseDynamic, ApplicantDetailsKeys };
4
6
 
5
7
  export default { IDWise, IDWiseTheme, IDWiseDynamic };
package/tsconfig.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "compilerOptions": {
3
+ "rootDir": ".",
4
+ "paths": {
5
+ "idwise-mobile-sdk": ["./src/index"]
6
+ },
7
+ "allowUnreachableCode": false,
8
+ "allowUnusedLabels": false,
9
+ "esModuleInterop": true,
10
+ "forceConsistentCasingInFileNames": true,
11
+ "jsx": "react",
12
+ "lib": ["esnext"],
13
+ "moduleResolution": "node",
14
+ "noFallthroughCasesInSwitch": true,
15
+ "noImplicitReturns": true,
16
+ "noImplicitUseStrict": false,
17
+ "noStrictGenericChecks": false,
18
+ "noUncheckedIndexedAccess": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "resolveJsonModule": true,
22
+ "skipLibCheck": true,
23
+ "verbatimModuleSyntax": true,
24
+ "allowJs": true,
25
+ "checkJs": true,
26
+ "strict": true,
27
+ "target": "ES6",
28
+ "module": "CommonJS"
29
+ },
30
+ "include": ["index.js", "index.d.ts"]
31
+ }