idwise-nfc-react-native-sdk 5.4.5 → 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.
- package/android/build.gradle +2 -2
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +2 -2
- package/idwise-react-native-sdk.podspec +7 -6
- package/index.d.ts +125 -0
- package/ios/IDWiseNFC.xcframework/Info.plist +5 -5
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Assets.car +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/IDWiseNFC +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.abi.json +1292 -1022
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -1
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface +2 -1
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +2 -2
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/IDWiseNFC +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.abi.json +1292 -1022
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -1
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -1
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.abi.json +1292 -1022
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -1
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -1
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/_CodeSignature/CodeResources +19 -19
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IdwiseMobileSdk.mm +0 -3
- package/ios/IdwiseMobileSdk.swift +2 -2
- package/package.json +8 -4
- package/src/IDWiseConstants.js +7 -0
- package/src/index.js +5 -3
- package/tsconfig.json +31 -0
package/android/build.gradle
CHANGED
|
@@ -120,10 +120,10 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
|
|
|
120
120
|
currentActivity?.let { activity -> IDWiseDynamic.startStep(activity, stepId) }
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
/*@ReactMethod
|
|
124
124
|
fun startStepFromFileUpload(stepId: String, data: ByteArray) {
|
|
125
125
|
currentActivity?.let { activity -> IDWiseDynamic.startStepFromFileUpload(activity, stepId, data) }
|
|
126
|
-
}
|
|
126
|
+
}*/
|
|
127
127
|
|
|
128
128
|
@ReactMethod
|
|
129
129
|
fun finishDynamicJourney() {
|
|
@@ -18,6 +18,7 @@ Pod::Spec.new do |s|
|
|
|
18
18
|
s.static_framework = true
|
|
19
19
|
|
|
20
20
|
s.dependency 'FingerprintPro','2.7.0'
|
|
21
|
+
s.dependency 'Shield-Ptr','1.5.49'
|
|
21
22
|
s.dependency 'DocumentReader', '7.4.3900'
|
|
22
23
|
s.dependency 'DocumentReaderMRZRFID', '7.4.9825'
|
|
23
24
|
|
|
@@ -25,14 +26,14 @@ Pod::Spec.new do |s|
|
|
|
25
26
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
26
27
|
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
27
28
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
|
28
|
-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
|
|
29
|
+
#"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
|
|
29
30
|
"CODE_SIGNING_ALLOWED" => 'NO'
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
s.preserve_paths = 'ios/IDWiseNFC.xcframework/**/*'
|
|
33
|
-
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework IDWiseNFC' }
|
|
34
|
-
s.vendored_frameworks = 'ios/IDWiseNFC.xcframework'
|
|
35
|
-
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
|
33
|
+
s.preserve_paths = 'ios/IDWiseNFC.xcframework/**/*'
|
|
34
|
+
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework IDWiseNFC' }
|
|
35
|
+
s.vendored_frameworks = 'ios/IDWiseNFC.xcframework'
|
|
36
|
+
#s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
|
36
37
|
|
|
37
38
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
38
39
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
@@ -49,7 +50,7 @@ s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
|
|
49
50
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
50
51
|
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
51
52
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
|
52
|
-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
|
|
53
|
+
#"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
|
|
53
54
|
"CODE_SIGNING_ALLOWED" => 'NO'
|
|
54
55
|
}
|
|
55
56
|
s.dependency "React-Codegen"
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// index.d.ts
|
|
2
|
+
|
|
3
|
+
// ===== Common Types =====
|
|
4
|
+
|
|
5
|
+
export interface IDWiseError {
|
|
6
|
+
code: string;
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface InitializeCallback {
|
|
11
|
+
onError?: (error: IDWiseError) => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IDWiseJourneyCallbacks {
|
|
15
|
+
onJourneyStarted:(journeyStartedInfo:JSON) => void;
|
|
16
|
+
onJourneyResumed:(journeyResumedInfo:JSON) => void;
|
|
17
|
+
onJourneyCompleted:(journeyCompletedInfo:JSON) => void;
|
|
18
|
+
onJourneyCancelled:(journeyCancelledInfo:JSON) => void;
|
|
19
|
+
onJourneyBlocked:(journeyBlockedInfo:JSON) => void;
|
|
20
|
+
onError:(idwiseError:IDWiseError) => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IDWiseStepCallbacks {
|
|
24
|
+
onStepCaptured:(stepCapturedInfo:JSON) => void;
|
|
25
|
+
onStepResult:(stepResultInfo:JSON) => void;
|
|
26
|
+
onStepCancelled:(stepCancelledInfo:JSON) => void;
|
|
27
|
+
onStepSkipped:(stepSkippedInfo:JSON) => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export interface JourneySummaryCallback {
|
|
32
|
+
onJourneySummary:(journeySummary:JSON) => void;
|
|
33
|
+
onError:(error:JSON) => void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
// ===== IDWise Module =====
|
|
38
|
+
export namespace IDWise {
|
|
39
|
+
function initialize(
|
|
40
|
+
clientKey: string,
|
|
41
|
+
theme:string,
|
|
42
|
+
callback: InitializeCallback
|
|
43
|
+
): void;
|
|
44
|
+
|
|
45
|
+
function isDeviceBlocked(): Promise<boolean>;
|
|
46
|
+
|
|
47
|
+
function startJourney(
|
|
48
|
+
journeyDefinitionId: string,
|
|
49
|
+
referenceNo: string,
|
|
50
|
+
locale: string,
|
|
51
|
+
applicantDetails: { [key: string]: string }|undefined,
|
|
52
|
+
journeyCallback: IDWiseJourneyCallbacks
|
|
53
|
+
): void;
|
|
54
|
+
|
|
55
|
+
function resumeJourney(
|
|
56
|
+
journeyDefinitionId: string,
|
|
57
|
+
journeyId: string,
|
|
58
|
+
locale: string,
|
|
59
|
+
journeyCallback: IDWiseJourneyCallbacks
|
|
60
|
+
): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// ===== IDWiseDynamic Module =====
|
|
64
|
+
export namespace IDWiseDynamic {
|
|
65
|
+
function initialize(
|
|
66
|
+
clientKey: string,
|
|
67
|
+
theme: string,
|
|
68
|
+
callback: InitializeCallback
|
|
69
|
+
): void;
|
|
70
|
+
|
|
71
|
+
function isDeviceBlocked(): Promise<boolean>;
|
|
72
|
+
|
|
73
|
+
function startJourney(
|
|
74
|
+
journeyDefinitionId: string,
|
|
75
|
+
referenceNo: string,
|
|
76
|
+
locale: string,
|
|
77
|
+
applicantDetails: { [key: string]: string }|undefined,
|
|
78
|
+
journeyCallback: IDWiseJourneyCallbacks,
|
|
79
|
+
stepCallback: IDWiseStepCallbacks
|
|
80
|
+
): void;
|
|
81
|
+
|
|
82
|
+
function resumeJourney(
|
|
83
|
+
journeyDefinitionId: string,
|
|
84
|
+
journeyId: string,
|
|
85
|
+
locale: string,
|
|
86
|
+
journeyCallback: IDWiseJourneyCallbacks,
|
|
87
|
+
stepCallback: IDWiseStepCallbacks
|
|
88
|
+
): void;
|
|
89
|
+
|
|
90
|
+
function startStep(stepId: string): void;
|
|
91
|
+
|
|
92
|
+
function skipStep(stepId: string): void;
|
|
93
|
+
|
|
94
|
+
function getJourneySummary(callback: JourneySummaryCallback): void;
|
|
95
|
+
|
|
96
|
+
function finishJourney(): void;
|
|
97
|
+
|
|
98
|
+
function unloadSDK(): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// ===== IDWiseTheme =====
|
|
102
|
+
declare const IDWiseTheme: {
|
|
103
|
+
LIGHT: 'LIGHT';
|
|
104
|
+
DARK: 'DARK';
|
|
105
|
+
SYSTEM_DEFAULT: 'SYSTEM_DEFAULT';
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
declare const ApplicantDetailsKeys: {
|
|
109
|
+
FULL_NAME: 'full_name',
|
|
110
|
+
BIRTH_DATE: 'birth_date',
|
|
111
|
+
SEX: 'sex',
|
|
112
|
+
ADDRESS: 'address'
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export {IDWiseTheme}
|
|
116
|
+
export {ApplicantDetailsKeys}
|
|
117
|
+
// ===== Default Export =====
|
|
118
|
+
declare const IDWiseSDK: {
|
|
119
|
+
IDWise: typeof IDWise;
|
|
120
|
+
IDWiseTheme: typeof IDWiseTheme;
|
|
121
|
+
ApplicantDetailsKeys: typeof ApplicantDetailsKeys;
|
|
122
|
+
IDWiseDynamic: typeof IDWiseDynamic;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export default IDWiseSDK;
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>IDWiseNFC.framework/IDWiseNFC</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>IDWiseNFC.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>BinaryPath</key>
|
|
23
26
|
<string>IDWiseNFC.framework/IDWiseNFC</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>IDWiseNFC.framework</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|