@oiti/rn-liveness3d 1.1.2 → 2.1.0
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 +33 -237
- package/android/build.gradle +4 -18
- package/android/settings.gradle +2 -2
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/br/com/oiti/rnliveness3d/RnLiveness3dModule.kt +198 -132
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DFonts.kt +44 -0
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DText.kt +68 -0
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DTheme.kt +147 -0
- package/ios/Podfile +2 -1
- package/ios/Pods/Manifest.lock +23 -19
- package/ios/RnLiveness3d.m +8 -3
- package/ios/RnLiveness3d.swift +198 -114
- package/lib/commonjs/@types/ArgsType.js +4 -0
- package/lib/commonjs/@types/FontsType.js +2 -0
- package/lib/commonjs/@types/FontsType.js.map +1 -0
- package/lib/commonjs/@types/ResultType.js +2 -0
- package/lib/commonjs/@types/ResultType.js.map +1 -0
- package/lib/commonjs/@types/ResultTypes.js +6 -0
- package/lib/commonjs/@types/ResultTypes.js.map +1 -0
- package/lib/commonjs/@types/TextsType.js +2 -0
- package/lib/commonjs/@types/TextsType.js.map +1 -0
- package/lib/commonjs/@types/ThemeType.js +2 -0
- package/lib/commonjs/@types/ThemeType.js.map +1 -0
- package/lib/commonjs/actions/BackButton.js +35 -0
- package/lib/commonjs/actions/BackButton.js.map +1 -0
- package/lib/commonjs/actions/ContinueButton.js +43 -0
- package/lib/commonjs/actions/ContinueButton.js.map +1 -0
- package/lib/commonjs/actions/PermissionButton.js +35 -0
- package/lib/commonjs/actions/PermissionButton.js.map +1 -0
- package/lib/commonjs/context/Liveness3DContext.js +104 -0
- package/lib/commonjs/context/Liveness3DContext.js.map +1 -0
- package/lib/commonjs/helpers/Liveness3DHelper.js +34 -0
- package/lib/commonjs/helpers/Liveness3DHelper.js.map +1 -0
- package/lib/commonjs/index.js +121 -78
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/Liveness3DHelper.js +6 -0
- package/lib/commonjs/interfaces/Liveness3DHelper.js.map +1 -0
- package/lib/commonjs/interfaces/OitiBackButtonInterface.js +6 -0
- package/lib/commonjs/interfaces/OitiBackButtonInterface.js.map +1 -0
- package/lib/commonjs/interfaces/OitiContinueButton.js +6 -0
- package/lib/commonjs/interfaces/OitiContinueButton.js.map +1 -0
- package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js +6 -0
- package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js.map +1 -0
- package/lib/commonjs/screens/Liveness3D/InstructionsView.js +4 -4
- package/lib/commonjs/screens/Liveness3D/InstructionsView.js.map +1 -1
- package/lib/commonjs/utils/continueButton.js +17 -0
- package/lib/commonjs/utils/continueButton.js.map +1 -0
- package/lib/commonjs/utils/permissions.js +30 -0
- package/lib/commonjs/utils/permissions.js.map +1 -0
- package/lib/commonjs/utils/screenStore.js +12 -0
- package/lib/commonjs/utils/screenStore.js.map +1 -0
- package/lib/module/@types/ArgsType.js +1 -1
- package/lib/module/@types/FontsType.js +2 -0
- package/lib/module/@types/FontsType.js.map +1 -0
- package/lib/module/@types/ResultType.js +2 -0
- package/lib/module/@types/ResultType.js.map +1 -0
- package/lib/module/@types/ResultTypes.js +2 -0
- package/lib/module/@types/ResultTypes.js.map +1 -0
- package/lib/module/@types/TextsType.js +2 -0
- package/lib/module/@types/TextsType.js.map +1 -0
- package/lib/module/@types/ThemeType.js +2 -0
- package/lib/module/@types/ThemeType.js.map +1 -0
- package/lib/module/actions/BackButton.js +26 -0
- package/lib/module/actions/BackButton.js.map +1 -0
- package/lib/module/actions/ContinueButton.js +34 -0
- package/lib/module/actions/ContinueButton.js.map +1 -0
- package/lib/module/actions/PermissionButton.js +26 -0
- package/lib/module/actions/PermissionButton.js.map +1 -0
- package/lib/module/context/Liveness3DContext.js +92 -0
- package/lib/module/context/Liveness3DContext.js.map +1 -0
- package/lib/module/helpers/Liveness3DHelper.js +25 -0
- package/lib/module/helpers/Liveness3DHelper.js.map +1 -0
- package/lib/module/index.js +97 -75
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/Liveness3DHelper.js +2 -0
- package/lib/module/interfaces/Liveness3DHelper.js.map +1 -0
- package/lib/module/interfaces/OitiBackButtonInterface.js +2 -0
- package/lib/module/interfaces/OitiBackButtonInterface.js.map +1 -0
- package/lib/module/interfaces/OitiContinueButton.js +2 -0
- package/lib/module/interfaces/OitiContinueButton.js.map +1 -0
- package/lib/module/interfaces/OitiPermissionButtonInterface.js +2 -0
- package/lib/module/interfaces/OitiPermissionButtonInterface.js.map +1 -0
- package/lib/module/screens/Liveness3D/InstructionsView.js +4 -4
- package/lib/module/screens/Liveness3D/InstructionsView.js.map +1 -1
- package/lib/module/utils/continueButton.js +10 -0
- package/lib/module/utils/continueButton.js.map +1 -0
- package/lib/module/utils/permissions.js +21 -0
- package/lib/module/utils/permissions.js.map +1 -0
- package/lib/module/utils/screenStore.js +5 -0
- package/lib/module/utils/screenStore.js.map +1 -0
- package/lib/typescript/@types/ArgsType.d.ts +9 -9
- package/lib/typescript/@types/ArgsType.d.ts.map +1 -1
- package/lib/typescript/@types/FontsType.d.ts +12 -0
- package/lib/typescript/@types/FontsType.d.ts.map +1 -0
- package/lib/typescript/@types/ResultType.d.ts +13 -0
- package/lib/typescript/@types/ResultType.d.ts.map +1 -0
- package/lib/typescript/@types/ResultTypes.d.ts +6 -0
- package/lib/typescript/@types/ResultTypes.d.ts.map +1 -0
- package/lib/typescript/@types/TextsType.d.ts +36 -0
- package/lib/typescript/@types/TextsType.d.ts.map +1 -0
- package/lib/typescript/@types/ThemeType.d.ts +48 -0
- package/lib/typescript/@types/ThemeType.d.ts.map +1 -0
- package/lib/typescript/actions/BackButton.d.ts +4 -0
- package/lib/typescript/actions/BackButton.d.ts.map +1 -0
- package/lib/typescript/actions/ContinueButton.d.ts +4 -0
- package/lib/typescript/actions/ContinueButton.d.ts.map +1 -0
- package/lib/typescript/actions/PermissionButton.d.ts +4 -0
- package/lib/typescript/actions/PermissionButton.d.ts.map +1 -0
- package/lib/typescript/context/Liveness3DContext.d.ts +28 -0
- package/lib/typescript/context/Liveness3DContext.d.ts.map +1 -0
- package/lib/typescript/helpers/Liveness3DHelper.d.ts +4 -0
- package/lib/typescript/helpers/Liveness3DHelper.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +21 -8
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/interfaces/Liveness3DHelper.d.ts +7 -0
- package/lib/typescript/interfaces/Liveness3DHelper.d.ts.map +1 -0
- package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts +6 -0
- package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts.map +1 -0
- package/lib/typescript/interfaces/OitiContinueButton.d.ts +6 -0
- package/lib/typescript/interfaces/OitiContinueButton.d.ts.map +1 -0
- package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts +6 -0
- package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts.map +1 -0
- package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts +1 -0
- package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts.map +1 -1
- package/lib/typescript/screens/PermissionView.d.ts +1 -0
- package/lib/typescript/screens/PermissionView.d.ts.map +1 -1
- package/lib/typescript/utils/continueButton.d.ts +2 -0
- package/lib/typescript/utils/continueButton.d.ts.map +1 -0
- package/lib/typescript/utils/permissions.d.ts +4 -0
- package/lib/typescript/utils/permissions.d.ts.map +1 -0
- package/lib/typescript/utils/screenStore.d.ts +5 -0
- package/lib/typescript/utils/screenStore.d.ts.map +1 -0
- package/oiti-rn-liveness3d.podspec +2 -1
- package/package.json +3 -6
- package/src/@types/ArgsType.ts +10 -10
- package/src/@types/FontsType.ts +22 -0
- package/src/@types/ResultType.ts +13 -0
- package/src/@types/ResultTypes.ts +6 -0
- package/src/@types/TextsType.ts +41 -0
- package/src/@types/ThemeType.ts +64 -0
- package/src/actions/BackButton.tsx +27 -0
- package/src/actions/ContinueButton.tsx +35 -0
- package/src/actions/PermissionButton.tsx +27 -0
- package/src/context/Liveness3DContext.tsx +122 -0
- package/src/helpers/Liveness3DHelper.tsx +24 -0
- package/src/index.tsx +120 -87
- package/src/interfaces/Liveness3DHelper.tsx +7 -0
- package/src/interfaces/OitiBackButtonInterface.tsx +6 -0
- package/src/interfaces/OitiContinueButton.tsx +6 -0
- package/src/interfaces/OitiPermissionButtonInterface.tsx +6 -0
- package/src/screens/Liveness3D/InstructionsView.tsx +8 -8
- package/src/utils/continueButton.tsx +12 -0
- package/src/utils/permissions.tsx +30 -0
- package/src/utils/screenStore.tsx +4 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type ThemeType = {
|
|
2
|
+
guidanceCustomizationBackgroundColors?: string;
|
|
3
|
+
guidanceCustomizationForegroundColor?: string;
|
|
4
|
+
guidanceCustomizationButtonTextNormalColor?: string;
|
|
5
|
+
guidanceCustomizationButtonBackgroundNormalColor?: string;
|
|
6
|
+
guidanceCustomizationButtonTextHighlightColor?: string;
|
|
7
|
+
guidanceCustomizationButtonBackgroundHighlightColor?: string;
|
|
8
|
+
guidanceCustomizationButtonTextDisabledColor?: string;
|
|
9
|
+
guidanceCustomizationButtonBackgroundDisabledColor?: string;
|
|
10
|
+
guidanceCustomizationButtonBorderColor?: string;
|
|
11
|
+
guidanceCustomizationButtonBorderWidth?: number;
|
|
12
|
+
guidanceCustomizationButtonCornerRadius?: number;
|
|
13
|
+
guidanceCustomizationReadyScreenHeaderTextColor?: string;
|
|
14
|
+
guidanceCustomizationReadyScreenSubtextTextColor?: string;
|
|
15
|
+
guidanceCustomizationRetryScreenHeaderTextColor?: string;
|
|
16
|
+
guidanceCustomizationRetryScreenSubtextTextColor?: string;
|
|
17
|
+
guidanceCustomizationRetryScreenImageBorderColor?: string;
|
|
18
|
+
guidanceCustomizationRetryScreenImageBorderWidth?: number;
|
|
19
|
+
guidanceCustomizationRetryScreenImageCornerRadius?: number;
|
|
20
|
+
guidanceCustomizationRetryScreenOvalStrokeColor?: string;
|
|
21
|
+
guidanceCustomizationReadyScreenOvalFillColor?: string;
|
|
22
|
+
guidanceCustomizationReadyScreenTextBackgroundColor?: string;
|
|
23
|
+
guidanceCustomizationReadyScreenTextBackgroundCornerRadius?: string;
|
|
24
|
+
resultScreenCustomizationForegroundColor?: string;
|
|
25
|
+
resultScreenCustomizationBackgroundColors?: string;
|
|
26
|
+
resultScreenCustomizationActivityIndicatorColor?: string;
|
|
27
|
+
resultScreenCustomizationCustomActivityIndicatorRotationInterval?: string;
|
|
28
|
+
resultScreenCustomizationUploadProgressFillColor?: string;
|
|
29
|
+
resultScreenCustomizationUploadProgressTrackColor?: string;
|
|
30
|
+
resultScreenCustomizationResultAnimationBackgroundColor?: string;
|
|
31
|
+
resultScreenCustomizationResultAnimationForegroundColor?: string;
|
|
32
|
+
ovalCustomizationStrokeWidth?: number;
|
|
33
|
+
ovalCustomizationStrokeColor?: string;
|
|
34
|
+
ovalCustomizationProgressStrokeWidth?: number;
|
|
35
|
+
ovalCustomizationProgressColor1?: string;
|
|
36
|
+
ovalCustomizationProgressColor2?: string;
|
|
37
|
+
ovalCustomizationProgressRadialOffset?: string;
|
|
38
|
+
frameCustomizationBorderWidth?: number;
|
|
39
|
+
frameCustomizationCornerRadius?: number;
|
|
40
|
+
frameCustomizationBorderColor?: string;
|
|
41
|
+
frameCustomizationBackgroundColor?: string;
|
|
42
|
+
frameCustomizationElevation?: string;
|
|
43
|
+
overlayCustomizationBackgroundColor?: string;
|
|
44
|
+
feedbackCustomizationCornerRadius?: number;
|
|
45
|
+
feedbackCustomizationBackgroundColors?: string;
|
|
46
|
+
feedbackCustomizationTextColor?: string;
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=ThemeType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeType.d.ts","sourceRo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EAAE,MAAM,CAAC;IAGjE,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,oCAAoC,CAAC,EAAE,MAAM,CAAC;IAC9C,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAG/C,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAGrC,mCAAmC,CAAC,EAAE,MAAM,CAAC;IAG7C,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAC/C,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackButton.d.ts","sourceRoot":"","sources":["../../../src/actions/BackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAqBxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContinueButton.d.ts","sourceRoot":"","sources":["../../../src/actions/ContinueButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAItC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA4BhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermissionButton.d.ts","sourceRoot":"","sources":["../../../src/actions/PermissionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAqBpE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { ArgsType } from '../@types/ArgsType';
|
|
3
|
+
import { onErrorType, onSuccessType } from '../@types/ResultType';
|
|
4
|
+
import { ResultType } from '../@types/ResultTypes';
|
|
5
|
+
export declare const SCREEN: Readonly<{
|
|
6
|
+
readonly INSTRUCTION_VIEW: 1;
|
|
7
|
+
readonly PERMISSION_VIEW: 2;
|
|
8
|
+
}>;
|
|
9
|
+
interface Liveness3DContextType {
|
|
10
|
+
screen: number;
|
|
11
|
+
setScreen: React.Dispatch<React.SetStateAction<number>>;
|
|
12
|
+
navigation: any;
|
|
13
|
+
setNavigation: React.Dispatch<React.SetStateAction<any>>;
|
|
14
|
+
options: ArgsType | undefined;
|
|
15
|
+
setOptions: React.Dispatch<React.SetStateAction<ArgsType | undefined>>;
|
|
16
|
+
onLiveness3DError: (error: onErrorType) => void;
|
|
17
|
+
onLiveness3DSuccess: (result: onSuccessType) => void;
|
|
18
|
+
onBack: () => any;
|
|
19
|
+
onAskPermission: () => any;
|
|
20
|
+
startLiveness: () => any;
|
|
21
|
+
callbackView: string;
|
|
22
|
+
setCallbackView: React.Dispatch<React.SetStateAction<string>>;
|
|
23
|
+
}
|
|
24
|
+
declare const Liveness3DContext: React.Context<Liveness3DContextType | undefined>;
|
|
25
|
+
export declare const Liveness3DProvider: FC<ResultType>;
|
|
26
|
+
export declare const useLiveness3DContext: () => Liveness3DContextType;
|
|
27
|
+
export default Liveness3DContext;
|
|
28
|
+
//# sourceMappingURL=Liveness3DContext.d.ts.map
|
|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AAE,CAAC,UAAU,CA4E7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,qBAQvC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Liveness3DHelper.d.ts","sourceRoot":"","sources":["../../../src/helpers/Liveness3DHelper.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAa,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,yBAAyB,CAmB1D,CAAC"}
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import type { ArgsType, LoadingType } from './@types/ArgsType';
|
|
3
|
-
|
|
4
|
-
export declare
|
|
3
|
+
import type { onErrorType, onSuccessType } from './@types/ResultType';
|
|
4
|
+
export declare const RnLiveness3d: any;
|
|
5
|
+
export declare function startLiveness3d(options: ArgsType, loading?: LoadingType): Promise<onErrorType | onSuccessType>;
|
|
5
6
|
export declare function checkIosPermission(): Promise<any>;
|
|
6
7
|
export declare function checkIosPermissionGranted(): Promise<any>;
|
|
7
|
-
export declare function
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
export declare function checkcamerapermissionAndroid(): Promise<any>;
|
|
9
|
+
export declare function askcamerapermissionAndroid(): Promise<any>;
|
|
10
|
+
export declare const requestCameraPermission: (options: ArgsType, onSuccess: (result: onSuccessType) => void, onError: (error: onErrorType) => void, loading?: LoadingType) => Promise<void>;
|
|
11
|
+
export declare function Liveness3dView({ CustomInstructionView, CustomPermissionView, options, loading, onSuccess, onError, onBack, }: {
|
|
12
|
+
CustomInstructionView?: FC;
|
|
13
|
+
CustomPermissionView?: FC;
|
|
10
14
|
options: ArgsType;
|
|
11
15
|
loading: LoadingType;
|
|
16
|
+
onSuccess: (result: onSuccessType) => void;
|
|
17
|
+
onError: (error: onErrorType) => void;
|
|
18
|
+
onBack: () => void;
|
|
12
19
|
}): JSX.Element;
|
|
13
|
-
export declare function GetIntructionView({ CustomInstructionView, CustomPermissionView, options, loading, }: {
|
|
14
|
-
CustomInstructionView
|
|
15
|
-
CustomPermissionView
|
|
20
|
+
export declare function GetIntructionView({ CustomInstructionView, CustomPermissionView, options, loading, onSuccess, onError, onBack, }: {
|
|
21
|
+
CustomInstructionView?: FC;
|
|
22
|
+
CustomPermissionView?: FC;
|
|
16
23
|
options: ArgsType;
|
|
17
24
|
loading: LoadingType;
|
|
25
|
+
onSuccess: (result: onSuccessType) => void;
|
|
26
|
+
onError: (error: onErrorType) => void;
|
|
27
|
+
onBack: () => void;
|
|
18
28
|
}): JSX.Element;
|
|
29
|
+
export { ContinueButton } from './actions/ContinueButton';
|
|
30
|
+
export { PermissionButton } from './actions/PermissionButton';
|
|
31
|
+
export { BackButton } from './actions/BackButton';
|
|
19
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG/D,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AActE,eAAO,MAAM,YAAY,KASpB,CAAC;AAEN,wBAAgB,eAAe,CAC7B,OAAO,EAAE,QAAQ,EACjB,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC,CA0BtC;AAED,wBAAgB,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC,CAEjD;AACD,wBAAgB,yBAA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BAA4B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Liveness3DHelper.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Liveness3DHelper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OitiBackButtonInterface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/OitiBackButtonInterface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OitiContinueButton.d.ts","sourceRoot":"","sources":["../../../src/interfaces/OitiContinueButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,WAAW,2BAA4B,SAAQ,qBAAqB;IACxE,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TouchableOpacityProps } from 'react-native';
|
|
3
|
+
export interface OitiPermissionButtonInterface extends TouchableOpacityProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=OitiPermissionButtonInterface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OitiPermissionButtonInterface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/OitiPermissionButtonInterface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IAC1E,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstructionsView.d.ts","sourceRoot":"","sources":["../../../../src/screens/Liveness3D/InstructionsView.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,IAAI,IAAI,CAAC;IACjB,MAAM,IAAI,IAAI,CAAC;CAChB,eAkDA"}
|
|
1
|
+
{"version":3,"file":"InstructionsView.d.ts","sourceRoot":"","sources":["../../../../src/screens/Liveness3D/InstructionsView.tsx"],"names":[],"mappings":";AAkBA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,IAAI,IAAI,CAAC;IACjB,MAAM,IAAI,IAAI,CAAC;CAChB,eAkDA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionView.d.ts","sourceRoot":"","sources":["../../../src/screens/PermissionView.tsx"],"names":[],"mappings":"AAWA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,IAAI,IAAI,CAAC;IACjB,MAAM,IAAI,IAAI,CAAC;CAChB,eA+BA"}
|
|
1
|
+
{"version":3,"file":"PermissionView.d.ts","sourceRoot":"","sources":["../../../src/screens/PermissionView.tsx"],"names":[],"mappings":";AAWA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,IAAI,IAAI,CAAC;IACjB,MAAM,IAAI,IAAI,CAAC;CAChB,eA+BA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continueButton.d.ts","sourceRoot":"","sources":["../../../src/utils/continueButton.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAAa,QAAQ,OAAO,CAStD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/utils/permissions.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,KASpB,CAAC;AAQN,wBAAgB,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAInD;AAED,wBAAgB,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAIhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screenStore.d.ts","sourceRoot":"","sources":["../../../src/utils/screenStore.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;EAGR,CAAC"}
|
|
@@ -13,12 +13,13 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
|
|
14
14
|
s.platforms = { :ios => "10.0" }
|
|
15
15
|
s.source = { :git => "https://github.com/oititec/rn-liveness3d.git", :tag => "#{s.version}" }
|
|
16
|
+
s.source = { :git => "https://github.com/oititec/ios-artifactory.git" }
|
|
16
17
|
|
|
17
18
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
19
|
|
|
19
20
|
s.dependency "React-Core"
|
|
20
21
|
|
|
21
|
-
s.ios.dependency 'OILiveness3D', '1.
|
|
22
|
+
s.ios.dependency 'OILiveness3D', '2.1.1'
|
|
22
23
|
|
|
23
24
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
24
25
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oiti/rn-liveness3d",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "test",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
57
57
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
58
58
|
"@types/jest": "^28.1.2",
|
|
59
|
-
"@types/react": "
|
|
59
|
+
"@types/react": "17.0.21",
|
|
60
60
|
"@types/react-native": "0.70.0",
|
|
61
61
|
"commitlint": "^17.0.2",
|
|
62
62
|
"eslint": "^8.4.1",
|
|
@@ -66,14 +66,11 @@
|
|
|
66
66
|
"pod-install": "^0.1.0",
|
|
67
67
|
"prettier": "^2.0.5",
|
|
68
68
|
"react": "18.2.0",
|
|
69
|
-
"react-native": "0.
|
|
69
|
+
"react-native": "0.70.0",
|
|
70
70
|
"react-native-builder-bob": "^0.20.0",
|
|
71
71
|
"release-it": "^15.0.0",
|
|
72
72
|
"typescript": "^4.5.2"
|
|
73
73
|
},
|
|
74
|
-
"resolutions": {
|
|
75
|
-
"@types/react": "17.0.21"
|
|
76
|
-
},
|
|
77
74
|
"peerDependencies": {
|
|
78
75
|
"react": "*",
|
|
79
76
|
"react-native": "*"
|
package/src/@types/ArgsType.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { FontsType } from './FontsType';
|
|
2
|
+
import { TextsType } from './TextsType';
|
|
3
|
+
import { ThemeType } from './ThemeType';
|
|
4
|
+
|
|
1
5
|
export type ArgsType = {
|
|
2
6
|
appkey: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type ApparenceType = {
|
|
11
|
-
backgroundColor: string | undefined;
|
|
12
|
-
loadingColor: string | undefined;
|
|
7
|
+
ticket?: string | null;
|
|
8
|
+
environment: 'HML' | 'PRD';
|
|
9
|
+
liveness3Dtext?: TextsType;
|
|
10
|
+
theme?: ThemeType;
|
|
11
|
+
fonts?: FontsType;
|
|
12
|
+
loading?: LoadingType;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export type LoadingType = {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type FontsType = {
|
|
2
|
+
/* Guidance */
|
|
3
|
+
guidanceCustomizationHeaderFont?: string;
|
|
4
|
+
guidanceCustomizationSubtextFont?: string;
|
|
5
|
+
|
|
6
|
+
/* Button */
|
|
7
|
+
guidanceCustomizationButtonFont?: string;
|
|
8
|
+
|
|
9
|
+
/* Ready Screen */
|
|
10
|
+
readyScreenCustomizationHeaderFont?: string;
|
|
11
|
+
readyScreenCustomizationSubtextFont?: string;
|
|
12
|
+
|
|
13
|
+
/* Retry Screen */
|
|
14
|
+
retryScreenCustomizationHeaderFont?: string;
|
|
15
|
+
retryScreenCustomizationSubtextFont?: string;
|
|
16
|
+
|
|
17
|
+
/* Result Screen */
|
|
18
|
+
resultScreenCustomizationMessageFont?: string;
|
|
19
|
+
|
|
20
|
+
/* Feedback */
|
|
21
|
+
feedbackCustomizationTextFont?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type TextsType = {
|
|
2
|
+
READY_HEADER_1?: string;
|
|
3
|
+
READY_HEADER_2?: string;
|
|
4
|
+
READY_MESSAGE_1?: string;
|
|
5
|
+
READY_MESSAGE_2?: string;
|
|
6
|
+
READY_BUTTON?: string;
|
|
7
|
+
|
|
8
|
+
/* Retry Screen */
|
|
9
|
+
RETRY_HEADER?: string;
|
|
10
|
+
RETRY_SUBHEADER?: string;
|
|
11
|
+
RETRY_YOUR_PICTURE?: string;
|
|
12
|
+
RETRY_IDEAL_PICTURE?: string;
|
|
13
|
+
RETRY_MESSAGE_SMILE?: string;
|
|
14
|
+
RETRY_MESSAGE_LIGHTING?: string;
|
|
15
|
+
RETRY_MESSAGE_CONTRAST?: string;
|
|
16
|
+
RETRY_BUTTON?: string;
|
|
17
|
+
|
|
18
|
+
/* Result Screen */
|
|
19
|
+
RESULT_UPLOAD_MESSAGE?: string;
|
|
20
|
+
RESULT_SUCCESS_MESSAGE?: string;
|
|
21
|
+
|
|
22
|
+
/* Feedback */
|
|
23
|
+
FEEDBACK_CENTER_FACE?: string;
|
|
24
|
+
FEEDBACK_FACE_NOT_FOUND?: string;
|
|
25
|
+
FEEDBACK_FACE_NOT_LOOKING_STRAIGHT_AHEAD?: string;
|
|
26
|
+
FEEDBACK_POSITION_FACE_STRAIGHT_IN_OVAL?: string;
|
|
27
|
+
FEEDBACK_FACE_NOT_UPRIGHT?: string;
|
|
28
|
+
FEEDBACK_HOLD_STEADY?: string;
|
|
29
|
+
FEEDBACK_MOVE_PHONE_AWAY?: string;
|
|
30
|
+
FEEDBACK_MOVE_PHONE_CLOSER?: string;
|
|
31
|
+
FEEDBACK_MOVE_PHONE_TO_EYE_LEVEL?: string;
|
|
32
|
+
FEEDBACK_USE_EVEN_LIGHTING?: string;
|
|
33
|
+
FEEDBACK_FRAME_YOUR_FACE?: string;
|
|
34
|
+
FEEDBACK_HOLD_STEADY_1?: string;
|
|
35
|
+
FEEDBACK_HOLD_STEADY_2?: string;
|
|
36
|
+
FEEDBACK_HOLD_STEADY_3?: string;
|
|
37
|
+
FEEDBACK_REMOVE_DARK_GLASSES?: string;
|
|
38
|
+
FEEDBACK_NEUTRAL_EXPRESSION?: string;
|
|
39
|
+
FEEDBACK_CONDITIONS_TOO_BRIGHT?: string;
|
|
40
|
+
FEEDBACK_BRIGHTEN_YOUR_ENVIRONMENT?: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type ThemeType = {
|
|
2
|
+
/* Guidance */
|
|
3
|
+
guidanceCustomizationBackgroundColors?: string;
|
|
4
|
+
guidanceCustomizationForegroundColor?: string;
|
|
5
|
+
|
|
6
|
+
/* Button */
|
|
7
|
+
guidanceCustomizationButtonTextNormalColor?: string;
|
|
8
|
+
guidanceCustomizationButtonBackgroundNormalColor?: string;
|
|
9
|
+
guidanceCustomizationButtonTextHighlightColor?: string;
|
|
10
|
+
guidanceCustomizationButtonBackgroundHighlightColor?: string;
|
|
11
|
+
guidanceCustomizationButtonTextDisabledColor?: string;
|
|
12
|
+
guidanceCustomizationButtonBackgroundDisabledColor?: string;
|
|
13
|
+
guidanceCustomizationButtonBorderColor?: string;
|
|
14
|
+
guidanceCustomizationButtonBorderWidth?: number;
|
|
15
|
+
guidanceCustomizationButtonCornerRadius?: number;
|
|
16
|
+
|
|
17
|
+
/* Ready Screen */
|
|
18
|
+
guidanceCustomizationReadyScreenHeaderTextColor?: string;
|
|
19
|
+
guidanceCustomizationReadyScreenSubtextTextColor?: string;
|
|
20
|
+
|
|
21
|
+
/* Retry Screen */
|
|
22
|
+
guidanceCustomizationRetryScreenHeaderTextColor?: string;
|
|
23
|
+
guidanceCustomizationRetryScreenSubtextTextColor?: string;
|
|
24
|
+
guidanceCustomizationRetryScreenImageBorderColor?: string;
|
|
25
|
+
guidanceCustomizationRetryScreenImageBorderWidth?: number;
|
|
26
|
+
guidanceCustomizationRetryScreenImageCornerRadius?: number;
|
|
27
|
+
guidanceCustomizationRetryScreenOvalStrokeColor?: string;
|
|
28
|
+
guidanceCustomizationReadyScreenOvalFillColor?: string;
|
|
29
|
+
guidanceCustomizationReadyScreenTextBackgroundColor?: string;
|
|
30
|
+
guidanceCustomizationReadyScreenTextBackgroundCornerRadius?: string;
|
|
31
|
+
|
|
32
|
+
/* Result Screen */
|
|
33
|
+
resultScreenCustomizationForegroundColor?: string;
|
|
34
|
+
resultScreenCustomizationBackgroundColors?: string;
|
|
35
|
+
resultScreenCustomizationActivityIndicatorColor?: string;
|
|
36
|
+
resultScreenCustomizationCustomActivityIndicatorRotationInterval?: string;
|
|
37
|
+
resultScreenCustomizationUploadProgressFillColor?: string;
|
|
38
|
+
resultScreenCustomizationUploadProgressTrackColor?: string;
|
|
39
|
+
resultScreenCustomizationResultAnimationBackgroundColor?: string;
|
|
40
|
+
resultScreenCustomizationResultAnimationForegroundColor?: string;
|
|
41
|
+
|
|
42
|
+
/* Oval */
|
|
43
|
+
ovalCustomizationStrokeWidth?: number;
|
|
44
|
+
ovalCustomizationStrokeColor?: string;
|
|
45
|
+
ovalCustomizationProgressStrokeWidth?: number;
|
|
46
|
+
ovalCustomizationProgressColor1?: string;
|
|
47
|
+
ovalCustomizationProgressColor2?: string;
|
|
48
|
+
ovalCustomizationProgressRadialOffset?: string;
|
|
49
|
+
|
|
50
|
+
/* Frame */
|
|
51
|
+
frameCustomizationBorderWidth?: number;
|
|
52
|
+
frameCustomizationCornerRadius?: number;
|
|
53
|
+
frameCustomizationBorderColor?: string;
|
|
54
|
+
frameCustomizationBackgroundColor?: string;
|
|
55
|
+
frameCustomizationElevation?: string;
|
|
56
|
+
|
|
57
|
+
/* Overlay */
|
|
58
|
+
overlayCustomizationBackgroundColor?: string;
|
|
59
|
+
|
|
60
|
+
/* Feedback */
|
|
61
|
+
feedbackCustomizationCornerRadius?: number;
|
|
62
|
+
feedbackCustomizationBackgroundColors?: string;
|
|
63
|
+
feedbackCustomizationTextColor?: string;
|
|
64
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useLiveness3DContext } from '../context/Liveness3DContext';
|
|
4
|
+
import { OitiBackButtonInterface } from '../interfaces/OitiBackButtonInterface';
|
|
5
|
+
|
|
6
|
+
export const BackButton: React.FC<OitiBackButtonInterface> = ({
|
|
7
|
+
children,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const touchableOpacityRef = useRef(null);
|
|
11
|
+
const { onBack } = useLiveness3DContext();
|
|
12
|
+
|
|
13
|
+
const handlePress = () => {
|
|
14
|
+
onBack();
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
//@ts-ignore
|
|
19
|
+
<TouchableOpacity
|
|
20
|
+
ref={touchableOpacityRef}
|
|
21
|
+
onPress={handlePress}
|
|
22
|
+
{...props}
|
|
23
|
+
>
|
|
24
|
+
{children}
|
|
25
|
+
</TouchableOpacity>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useLiveness3DContext } from '../context/Liveness3DContext';
|
|
4
|
+
import { continueButton } from '../utils/continueButton';
|
|
5
|
+
import { OitiContinueButtonInterface } from '../interfaces/OitiContinueButton';
|
|
6
|
+
|
|
7
|
+
export const ContinueButton: React.FC<OitiContinueButtonInterface> = ({
|
|
8
|
+
children,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
const touchableOpacityRef = useRef(null);
|
|
12
|
+
const { setScreen, startLiveness } = useLiveness3DContext();
|
|
13
|
+
|
|
14
|
+
function onContinue() {
|
|
15
|
+
continueButton().then((result) => {
|
|
16
|
+
result === true && startLiveness();
|
|
17
|
+
result === false && setScreen(2);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const handlePress = () => {
|
|
22
|
+
onContinue();
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
//@ts-ignore
|
|
27
|
+
<TouchableOpacity
|
|
28
|
+
ref={touchableOpacityRef}
|
|
29
|
+
onPress={handlePress}
|
|
30
|
+
{...props}
|
|
31
|
+
>
|
|
32
|
+
{children}
|
|
33
|
+
</TouchableOpacity>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useLiveness3DContext } from '../context/Liveness3DContext';
|
|
4
|
+
import { OitiPermissionButtonInterface } from '../interfaces/OitiPermissionButtonInterface';
|
|
5
|
+
|
|
6
|
+
export const PermissionButton: React.FC<OitiPermissionButtonInterface> = ({
|
|
7
|
+
children,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const touchableOpacityRef = useRef(null);
|
|
11
|
+
const { onAskPermission } = useLiveness3DContext();
|
|
12
|
+
|
|
13
|
+
const handlePress = () => {
|
|
14
|
+
onAskPermission();
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
//@ts-ignore
|
|
19
|
+
<TouchableOpacity
|
|
20
|
+
ref={touchableOpacityRef}
|
|
21
|
+
onPress={handlePress}
|
|
22
|
+
{...props}
|
|
23
|
+
>
|
|
24
|
+
{children}
|
|
25
|
+
</TouchableOpacity>
|
|
26
|
+
);
|
|
27
|
+
};
|