assentify-sdk-react-native 1.0.0-Beta → 1.0.0-Beta.10
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/README.md +36 -2
- package/android/build.gradle +4 -2
- package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +19 -14
- package/android/src/main/java/com/assentifysdk/FlowActivity.kt +28 -4
- package/assentify-sdk.podspec +1 -1
- package/ios/NativeAssentifySdk.mm +6 -3
- package/ios/NativeAssentifySdk.swift +78 -38
- package/lib/commonjs/AssentifyProvider.js +9 -0
- package/lib/commonjs/AssentifyProvider.js.map +1 -1
- package/lib/commonjs/AssentifyWrapper.js +4 -4
- package/lib/commonjs/AssentifyWrapper.js.map +1 -1
- package/lib/commonjs/FlowStepperType.js +11 -0
- package/lib/commonjs/FlowStepperType.js.map +1 -0
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/AssentifyProvider.js +9 -0
- package/lib/module/AssentifyProvider.js.map +1 -1
- package/lib/module/AssentifyWrapper.js +4 -4
- package/lib/module/AssentifyWrapper.js.map +1 -1
- package/lib/module/FlowStepperType.js +5 -0
- package/lib/module/FlowStepperType.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/example/src/Home.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +2 -2
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/FlowStepperType.d.ts +6 -0
- package/lib/typescript/lib/commonjs/FlowStepperType.d.ts.map +1 -0
- package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts +2 -2
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/module/FlowStepperType.d.ts +5 -0
- package/lib/typescript/lib/module/FlowStepperType.d.ts.map +1 -0
- package/lib/typescript/lib/module/index.d.ts +3 -2
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/src/AssentifyWrapper.d.ts +3 -2
- package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/src/FlowStepperType.d.ts +6 -0
- package/lib/typescript/src/FlowStepperType.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AssentifyProvider.tsx +11 -0
- package/src/AssentifyWrapper.ts +13 -6
- package/src/FlowStepperType.ts +7 -0
- package/src/index.ts +1 -0
- package/src/types.ts +1 -0
package/src/AssentifyWrapper.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { NativeModules, Platform, Alert, Linking } from 'react-native';
|
|
|
2
2
|
import { type LanguageCode } from './Language';
|
|
3
3
|
import { type TemplatesByCountry } from './types';
|
|
4
4
|
import { type BackgroundTypeCode } from './BackgroundType';
|
|
5
|
+
import { type FlowStepperTypeCode } from './FlowStepperType';
|
|
5
6
|
|
|
6
7
|
const LINKING_ERROR =
|
|
7
8
|
`The package 'assentify-sdk-react-native-react-native' doesn't seem to be linked. Make sure: \n\n` +
|
|
@@ -26,8 +27,7 @@ const AssentifyWrapper = {
|
|
|
26
27
|
/// Initialize
|
|
27
28
|
initialize: function (
|
|
28
29
|
apiKey: string,
|
|
29
|
-
|
|
30
|
-
instanceHash: string,
|
|
30
|
+
configFileName: string,
|
|
31
31
|
performLivenessFace?: boolean,
|
|
32
32
|
ENV_CustomColor?: string,
|
|
33
33
|
enableDetect?: boolean,
|
|
@@ -50,8 +50,7 @@ const AssentifyWrapper = {
|
|
|
50
50
|
) {
|
|
51
51
|
AssentifySdk.initialize(
|
|
52
52
|
apiKey,
|
|
53
|
-
|
|
54
|
-
instanceHash,
|
|
53
|
+
configFileName,
|
|
55
54
|
performLivenessFace ?? false,
|
|
56
55
|
ENV_CustomColor ?? '#f5a103',
|
|
57
56
|
enableDetect ?? true,
|
|
@@ -128,7 +127,11 @@ const AssentifyWrapper = {
|
|
|
128
127
|
language?: LanguageCode,
|
|
129
128
|
enableNfc?: boolean,
|
|
130
129
|
enableQr?: boolean,
|
|
131
|
-
blockLoaderCustomProperties?:Record<string, string
|
|
130
|
+
blockLoaderCustomProperties?:Record<string, string>,
|
|
131
|
+
flowStepperType?:FlowStepperTypeCode,
|
|
132
|
+
rangeStart?: number,
|
|
133
|
+
rangeEnd?: number,
|
|
134
|
+
stepperTitle?: string,
|
|
132
135
|
) {
|
|
133
136
|
AssentifySdk.startFlow(
|
|
134
137
|
logoUrl ?? "",
|
|
@@ -148,7 +151,11 @@ const AssentifyWrapper = {
|
|
|
148
151
|
language ?? "NON",
|
|
149
152
|
enableNfc ?? false,
|
|
150
153
|
enableQr ?? false,
|
|
151
|
-
JSON.stringify(blockLoaderCustomProperties ?? {})
|
|
154
|
+
JSON.stringify(blockLoaderCustomProperties ?? {}),
|
|
155
|
+
flowStepperType ?? "Normal",
|
|
156
|
+
rangeStart ?? 25,
|
|
157
|
+
rangeEnd ?? 50,
|
|
158
|
+
stepperTitle ?? "Identification",
|
|
152
159
|
);
|
|
153
160
|
},
|
|
154
161
|
|
package/src/index.ts
CHANGED