@oiti/rn-liveness3d 5.0.0 → 5.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/android/build.gradle +107 -39
- package/ios/Podfile +13 -0
- package/ios/Pods/Manifest.lock +50 -0
- package/lib/commonjs/@types/ArgsType.js +6 -0
- package/lib/commonjs/@types/ArgsType.js.map +1 -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/NativeRnLiveness3d.js +9 -0
- package/lib/commonjs/NativeRnLiveness3d.js.map +1 -0
- package/lib/commonjs/actions/BackButton.js +33 -0
- package/lib/commonjs/actions/BackButton.js.map +1 -0
- package/lib/commonjs/actions/ContinueButton.js +42 -0
- package/lib/commonjs/actions/ContinueButton.js.map +1 -0
- package/lib/commonjs/actions/PermissionButton.js +33 -0
- package/lib/commonjs/actions/PermissionButton.js.map +1 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-BoldItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Italic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-LightItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-MediumItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Regular.ttf +0 -0
- package/lib/commonjs/assets/images/acessories.png +0 -0
- package/lib/commonjs/assets/images/camera.png +0 -0
- package/lib/commonjs/assets/images/camera_alt.png +0 -0
- package/lib/commonjs/assets/images/face.png +0 -0
- package/lib/commonjs/assets/images/illumination.png +0 -0
- package/lib/commonjs/assets/images/imgOp.png +0 -0
- package/lib/commonjs/assets/images/img_face.png +0 -0
- package/lib/commonjs/assets/images/left-arrow-b.png +0 -0
- package/lib/commonjs/assets/images/left-arrow.png +0 -0
- package/lib/commonjs/assets/images/lightbulb_outline.png +0 -0
- package/lib/commonjs/assets/images/padlock.png +0 -0
- package/lib/commonjs/assets/images/rigth-arrow.png +0 -0
- package/lib/commonjs/assets/images/scan-facial.png +0 -0
- package/lib/commonjs/assets/images/wave_bg.png +0 -0
- package/lib/commonjs/assets/images/wave_bg2.png +0 -0
- package/lib/commonjs/context/Liveness3DContext.js +88 -0
- package/lib/commonjs/context/Liveness3DContext.js.map +1 -0
- package/lib/commonjs/helpers/Liveness3DHelper.js +31 -0
- package/lib/commonjs/helpers/Liveness3DHelper.js.map +1 -0
- package/lib/commonjs/index.js +128 -0
- package/lib/commonjs/index.js.map +1 -0
- 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 +205 -0
- package/lib/commonjs/screens/Liveness3D/InstructionsView.js.map +1 -0
- package/lib/commonjs/screens/PermissionView.js +173 -0
- package/lib/commonjs/screens/PermissionView.js.map +1 -0
- package/lib/commonjs/utils/continueButton.js +12 -0
- package/lib/commonjs/utils/continueButton.js.map +1 -0
- package/lib/commonjs/utils/normalize.js +16 -0
- package/lib/commonjs/utils/normalize.js.map +1 -0
- package/lib/commonjs/utils/permissions.js +20 -0
- package/lib/commonjs/utils/permissions.js.map +1 -0
- package/lib/commonjs/utils/screenStore.js +11 -0
- package/lib/commonjs/utils/screenStore.js.map +1 -0
- package/oiti-rn-liveness3d.podspec +22 -6
- package/package.json +49 -58
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Liveness3DHelper = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _Liveness3DContext = require("../context/Liveness3DContext");
|
|
9
|
+
const Liveness3DHelper = ({
|
|
10
|
+
children,
|
|
11
|
+
options,
|
|
12
|
+
onError
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
setNavigation,
|
|
16
|
+
setOptions,
|
|
17
|
+
setCallbackView
|
|
18
|
+
} = (0, _Liveness3DContext.useLiveness3DContext)();
|
|
19
|
+
(0, _react.useEffect)(() => {
|
|
20
|
+
if (options.appkey === null || options.appkey === undefined || options.appkey === '') {
|
|
21
|
+
onError({
|
|
22
|
+
code: '0',
|
|
23
|
+
message: 'invalidAppKey'
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
setOptions(options);
|
|
27
|
+
}, [options, onError, setNavigation, setOptions, setCallbackView]);
|
|
28
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
29
|
+
};
|
|
30
|
+
exports.Liveness3DHelper = Liveness3DHelper;
|
|
31
|
+
//# sourceMappingURL=Liveness3DHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_Liveness3DContext","Liveness3DHelper","children","options","onError","setNavigation","setOptions","setCallbackView","useLiveness3DContext","useEffect","appkey","undefined","code","message","React","createElement","Fragment","exports"],"sourceRoot":"../../../src","sources":["helpers/Liveness3DHelper.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAGO,MAAME,gBAA+C,GAAGA,CAAC;EAC9DC,QAAQ;EACRC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC,aAAa;IAAEC,UAAU;IAAEC;EAAgB,CAAC,GAAG,IAAAC,uCAAoB,EAAC,CAAC;EAE7E,IAAAC,gBAAS,EAAC,MAAM;IACd,IACEN,OAAO,CAACO,MAAM,KAAK,IAAI,IACvBP,OAAO,CAACO,MAAM,KAAKC,SAAS,IAC5BR,OAAO,CAACO,MAAM,KAAK,EAAE,EACrB;MACAN,OAAO,CAAC;QAAEQ,IAAI,EAAE,GAAG;QAAEC,OAAO,EAAE;MAAgB,CAAC,CAAC;IAClD;IACAP,UAAU,CAACH,OAAO,CAAC;EACrB,CAAC,EAAE,CAACA,OAAO,EAAEC,OAAO,EAAEC,aAAa,EAAEC,UAAU,EAAEC,eAAe,CAAC,CAAC;EAElE,oBAAOO,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,QAAGd,QAAW,CAAC;AACxB,CAAC;AAACe,OAAA,CAAAhB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "BackButton", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _BackButton.BackButton;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ContinueButton", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _ContinueButton.ContinueButton;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.GetIntructionView = GetIntructionView;
|
|
19
|
+
exports.Liveness3dView = Liveness3dView;
|
|
20
|
+
Object.defineProperty(exports, "PermissionButton", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return _PermissionButton.PermissionButton;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
exports.startLiveness3d = startLiveness3d;
|
|
27
|
+
var _reactNative = require("react-native");
|
|
28
|
+
var _InstructionsView = _interopRequireDefault(require("./screens/Liveness3D/InstructionsView"));
|
|
29
|
+
var _PermissionView = _interopRequireDefault(require("./screens/PermissionView"));
|
|
30
|
+
var _Liveness3DContext = require("./context/Liveness3DContext");
|
|
31
|
+
var _Liveness3DHelper = require("./helpers/Liveness3DHelper");
|
|
32
|
+
var _permissions = require("./utils/permissions");
|
|
33
|
+
var _NativeRnLiveness3d = _interopRequireDefault(require("./NativeRnLiveness3d"));
|
|
34
|
+
var _ContinueButton = require("./actions/ContinueButton");
|
|
35
|
+
var _PermissionButton = require("./actions/PermissionButton");
|
|
36
|
+
var _BackButton = require("./actions/BackButton");
|
|
37
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
38
|
+
function startLiveness3d(options, onSuccess, onError, loading) {
|
|
39
|
+
let args = {
|
|
40
|
+
appkey: (options === null || options === void 0 ? void 0 : options.appkey) === undefined ? '' : options === null || options === void 0 ? void 0 : options.appkey,
|
|
41
|
+
environment: (options === null || options === void 0 ? void 0 : options.environment) === undefined ? 'HML' : options === null || options === void 0 ? void 0 : options.environment,
|
|
42
|
+
liveness3Dtext: (options === null || options === void 0 ? void 0 : options.liveness3Dtext) || {},
|
|
43
|
+
theme: (options === null || options === void 0 ? void 0 : options.theme) || {},
|
|
44
|
+
fonts: (options === null || options === void 0 ? void 0 : options.fonts) || {},
|
|
45
|
+
loading: loading
|
|
46
|
+
};
|
|
47
|
+
_NativeRnLiveness3d.default.startLiveness3d(args).then(result => {
|
|
48
|
+
if (_reactNative.Platform.OS === 'android') {
|
|
49
|
+
onSuccess(JSON.parse(result));
|
|
50
|
+
} else {
|
|
51
|
+
onSuccess(result);
|
|
52
|
+
}
|
|
53
|
+
}).catch(error => onError(error));
|
|
54
|
+
}
|
|
55
|
+
function Liveness3dView({
|
|
56
|
+
CustomInstructionView,
|
|
57
|
+
CustomPermissionView,
|
|
58
|
+
options,
|
|
59
|
+
loading,
|
|
60
|
+
onSuccess,
|
|
61
|
+
onError,
|
|
62
|
+
onBack
|
|
63
|
+
}) {
|
|
64
|
+
return (
|
|
65
|
+
/*#__PURE__*/
|
|
66
|
+
//@ts-ignore
|
|
67
|
+
React.createElement(_Liveness3DContext.Liveness3DProvider, {
|
|
68
|
+
onError: onError,
|
|
69
|
+
onSuccess: onSuccess
|
|
70
|
+
}, /*#__PURE__*/React.createElement(_Liveness3DHelper.Liveness3DHelper, {
|
|
71
|
+
options: options,
|
|
72
|
+
onError: onError
|
|
73
|
+
}, /*#__PURE__*/React.createElement(GetIntructionView, {
|
|
74
|
+
CustomInstructionView: CustomInstructionView,
|
|
75
|
+
CustomPermissionView: CustomPermissionView,
|
|
76
|
+
options: options,
|
|
77
|
+
loading: loading,
|
|
78
|
+
onSuccess: onSuccess,
|
|
79
|
+
onError: onError,
|
|
80
|
+
onBack: onBack
|
|
81
|
+
})))
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
function GetIntructionView({
|
|
85
|
+
CustomInstructionView,
|
|
86
|
+
CustomPermissionView,
|
|
87
|
+
options,
|
|
88
|
+
loading,
|
|
89
|
+
onSuccess,
|
|
90
|
+
onError,
|
|
91
|
+
onBack
|
|
92
|
+
}) {
|
|
93
|
+
const {
|
|
94
|
+
setScreen,
|
|
95
|
+
screen
|
|
96
|
+
} = (0, _Liveness3DContext.useLiveness3DContext)();
|
|
97
|
+
function onBackScreen() {
|
|
98
|
+
switch (screen) {
|
|
99
|
+
case _Liveness3DContext.SCREEN.INSTRUCTION_VIEW:
|
|
100
|
+
onBack();
|
|
101
|
+
break;
|
|
102
|
+
case _Liveness3DContext.SCREEN.PERMISSION_VIEW:
|
|
103
|
+
setScreen(1);
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
async function verifyPermission() {
|
|
108
|
+
if (screen === 1) {
|
|
109
|
+
if ((0, _permissions.checkCameraPermissionGranted)() === true) {
|
|
110
|
+
startLiveness3d(options, onSuccess, onError, loading);
|
|
111
|
+
} else {
|
|
112
|
+
setScreen(2);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (screen === 2) {
|
|
116
|
+
await (0, _permissions.requestCameraPermission)();
|
|
117
|
+
setScreen(1);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, screen === 1 && (!CustomInstructionView ? /*#__PURE__*/React.createElement(_InstructionsView.default, {
|
|
121
|
+
onVerify: verifyPermission,
|
|
122
|
+
onBack: onBackScreen
|
|
123
|
+
}) : /*#__PURE__*/React.createElement(CustomInstructionView, null)), screen === 2 && (!CustomPermissionView ? /*#__PURE__*/React.createElement(_PermissionView.default, {
|
|
124
|
+
onVerify: verifyPermission,
|
|
125
|
+
onBack: onBackScreen
|
|
126
|
+
}) : /*#__PURE__*/React.createElement(CustomPermissionView, null)));
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_InstructionsView","_interopRequireDefault","_PermissionView","_Liveness3DContext","_Liveness3DHelper","_permissions","_NativeRnLiveness3d","_ContinueButton","_PermissionButton","_BackButton","e","__esModule","default","startLiveness3d","options","onSuccess","onError","loading","args","appkey","undefined","environment","liveness3Dtext","theme","fonts","RnLiveness3d","then","result","Platform","OS","JSON","parse","catch","error","Liveness3dView","CustomInstructionView","CustomPermissionView","onBack","React","createElement","Liveness3DProvider","Liveness3DHelper","GetIntructionView","setScreen","screen","useLiveness3DContext","onBackScreen","SCREEN","INSTRUCTION_VIEW","PERMISSION_VIEW","verifyPermission","checkCameraPermissionGranted","requestCameraPermission","Fragment","onVerify"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,kBAAA,GAAAJ,OAAA;AAKA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAIA,IAAAO,mBAAA,GAAAL,sBAAA,CAAAF,OAAA;AA8HA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAAkD,SAAAE,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA9H3C,SAASG,eAAeA,CAC7BC,OAAiB,EACjBC,SAA0C,EAC1CC,OAAqC,EACrCC,OAAqB,EACrB;EACA,IAAIC,IAAc,GAAG;IACnBC,MAAM,EAAE,CAAAL,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEK,MAAM,MAAKC,SAAS,GAAG,EAAE,GAAGN,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEK,MAAM;IAC5DE,WAAW,EACT,CAAAP,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEO,WAAW,MAAKD,SAAS,GAAG,KAAK,GAAGN,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEO,WAAW;IACnEC,cAAc,EAAE,CAAAR,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEQ,cAAc,KAAI,CAAC,CAAC;IAC7CC,KAAK,EAAE,CAAAT,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAES,KAAK,K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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/Liveness3DHelper.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/OitiBackButtonInterface.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/OitiContinueButton.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/OitiPermissionButtonInterface.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = InstructionsView;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _normalize = require("../../utils/normalize");
|
|
9
|
+
const {
|
|
10
|
+
width: SCREEN_WIDTH,
|
|
11
|
+
height: SCREEN_HEIGHT
|
|
12
|
+
} = _reactNative.Dimensions.get('window');
|
|
13
|
+
const scaleW = SCREEN_WIDTH / 320;
|
|
14
|
+
const scaleH = SCREEN_HEIGHT / 920;
|
|
15
|
+
function InstructionsView({
|
|
16
|
+
onVerify,
|
|
17
|
+
onBack
|
|
18
|
+
}) {
|
|
19
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
20
|
+
style: styles.container
|
|
21
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
22
|
+
onPress: () => onBack(),
|
|
23
|
+
style: styles.navigationBar
|
|
24
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
25
|
+
source: require('../../assets/images/left-arrow.png'),
|
|
26
|
+
style: styles.leftArrow
|
|
27
|
+
})), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
28
|
+
style: styles.boxImg
|
|
29
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
30
|
+
style: styles.imgContainer
|
|
31
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
32
|
+
source: require('../../assets/images/img_face.png'),
|
|
33
|
+
style: styles.imgFace
|
|
34
|
+
}))), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
35
|
+
style: styles.boxBtn
|
|
36
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
37
|
+
style: styles.title
|
|
38
|
+
}, "Reconhecimento Facial"), /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
39
|
+
style: styles.subtitle
|
|
40
|
+
}, "Isso garante que voc\xEA \xE9 voc\xEA mesmo."), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
41
|
+
style: styles.intructions
|
|
42
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
43
|
+
style: styles.rowInstructions
|
|
44
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
45
|
+
style: styles.boxIcon
|
|
46
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
47
|
+
source: require('../../assets/images/lightbulb_outline.png')
|
|
48
|
+
})), /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
49
|
+
style: styles.boxText
|
|
50
|
+
}, "Escolha um ambiente bem iluminado.")), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
51
|
+
style: styles.rowInstructions
|
|
52
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
53
|
+
style: styles.boxIcon
|
|
54
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
55
|
+
source: require('../../assets/images/face.png')
|
|
56
|
+
})), /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
57
|
+
style: styles.boxText
|
|
58
|
+
}, "N\xE3o use acess\xF3rios como bon\xE9s, m\xE1scaras e afins."))), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
59
|
+
style: styles.viewBtn
|
|
60
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
61
|
+
onPress: () => onVerify(),
|
|
62
|
+
style: styles.nextBtn
|
|
63
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
64
|
+
style: styles.nextText
|
|
65
|
+
}, "Continuar")))));
|
|
66
|
+
}
|
|
67
|
+
const styles = _reactNative.StyleSheet.create({
|
|
68
|
+
container: {
|
|
69
|
+
flex: 1,
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
backgroundColor: '#1648CD',
|
|
72
|
+
width: '100%',
|
|
73
|
+
justifyContent: 'center'
|
|
74
|
+
},
|
|
75
|
+
rowInstructions: {
|
|
76
|
+
width: '100%',
|
|
77
|
+
flex: 2,
|
|
78
|
+
alignItems: 'center',
|
|
79
|
+
flexDirection: 'row'
|
|
80
|
+
},
|
|
81
|
+
viewBtn: {
|
|
82
|
+
width: '90%',
|
|
83
|
+
flex: 1,
|
|
84
|
+
justifyContent: 'center',
|
|
85
|
+
alignItems: 'center'
|
|
86
|
+
},
|
|
87
|
+
navigationBar: {
|
|
88
|
+
width: '100%'
|
|
89
|
+
},
|
|
90
|
+
intructions: {
|
|
91
|
+
width: '90%',
|
|
92
|
+
flex: 1.5
|
|
93
|
+
},
|
|
94
|
+
boxIcon: {
|
|
95
|
+
width: 64,
|
|
96
|
+
height: 64,
|
|
97
|
+
alignItems: 'center',
|
|
98
|
+
justifyContent: 'center',
|
|
99
|
+
borderColor: '#E0E0E0',
|
|
100
|
+
borderWidth: 1,
|
|
101
|
+
backgroundColor: '#F5f5f5',
|
|
102
|
+
borderRadius: 100
|
|
103
|
+
},
|
|
104
|
+
boxText: {
|
|
105
|
+
paddingLeft: 20,
|
|
106
|
+
width: '75%',
|
|
107
|
+
color: '#000000',
|
|
108
|
+
fontSize: (0, _normalize.normalize)(25, scaleW)
|
|
109
|
+
},
|
|
110
|
+
imgContainer: {
|
|
111
|
+
flex: 1,
|
|
112
|
+
width: '90%',
|
|
113
|
+
alignItems: 'center',
|
|
114
|
+
justifyContent: 'flex-end'
|
|
115
|
+
},
|
|
116
|
+
title: {
|
|
117
|
+
marginTop: 30,
|
|
118
|
+
marginLeft: 20,
|
|
119
|
+
width: '90%',
|
|
120
|
+
fontSize: (0, _normalize.normalize)(29, scaleW),
|
|
121
|
+
fontWeight: 'bold',
|
|
122
|
+
/* fontFamily: 'Ubuntu-Bold', */
|
|
123
|
+
color: '#1E1E1E'
|
|
124
|
+
},
|
|
125
|
+
nextBtn: {
|
|
126
|
+
width: 300,
|
|
127
|
+
backgroundColor: '#05D758',
|
|
128
|
+
alignItems: 'center',
|
|
129
|
+
fontWeight: 900,
|
|
130
|
+
borderRadius: 50,
|
|
131
|
+
marginTop: 0
|
|
132
|
+
},
|
|
133
|
+
nextText: {
|
|
134
|
+
/* fontFamily: 'Ubuntu-Medium', */
|
|
135
|
+
fontSize: (0, _normalize.normalize)(25, scaleW),
|
|
136
|
+
margin: 13,
|
|
137
|
+
color: '#000000'
|
|
138
|
+
},
|
|
139
|
+
description_one: {
|
|
140
|
+
textAlign: 'center',
|
|
141
|
+
color: '#FFFFFF',
|
|
142
|
+
/* fontFamily: 'Ubuntu-Bold', */
|
|
143
|
+
fontSize: 30,
|
|
144
|
+
marginLeft: 60,
|
|
145
|
+
marginRight: 60,
|
|
146
|
+
marginTop: 10
|
|
147
|
+
},
|
|
148
|
+
boxInfo: {
|
|
149
|
+
width: '100%',
|
|
150
|
+
paddingTop: 15,
|
|
151
|
+
alignItems: 'center',
|
|
152
|
+
backgroundColor: '#037eee'
|
|
153
|
+
},
|
|
154
|
+
boxBtn: {
|
|
155
|
+
width: '100%',
|
|
156
|
+
flex: _reactNative.Platform.OS === 'ios' ? 1 : 1.3,
|
|
157
|
+
borderTopLeftRadius: 35,
|
|
158
|
+
borderTopRightRadius: 35,
|
|
159
|
+
height: '100%',
|
|
160
|
+
alignItems: 'center',
|
|
161
|
+
backgroundColor: '#FFFFFF'
|
|
162
|
+
},
|
|
163
|
+
boxImg: {
|
|
164
|
+
width: '100%',
|
|
165
|
+
flex: 1,
|
|
166
|
+
height: '100%',
|
|
167
|
+
alignItems: 'center'
|
|
168
|
+
},
|
|
169
|
+
subtitle: {
|
|
170
|
+
/* fontFamily: 'Ubuntu-Regular', */
|
|
171
|
+
fontSize: (0, _normalize.normalize)(20, scaleW),
|
|
172
|
+
marginLeft: 20,
|
|
173
|
+
width: '90%',
|
|
174
|
+
color: '#666666',
|
|
175
|
+
paddingBottom: 25
|
|
176
|
+
},
|
|
177
|
+
iconTop: {
|
|
178
|
+
marginTop: 60,
|
|
179
|
+
marginLeft: 20,
|
|
180
|
+
width: 55,
|
|
181
|
+
height: 55
|
|
182
|
+
},
|
|
183
|
+
leftArrow: {
|
|
184
|
+
marginTop: (0, _normalize.normalize)(70, scaleH),
|
|
185
|
+
marginLeft: 20,
|
|
186
|
+
width: (0, _normalize.normalize)(25, scaleW),
|
|
187
|
+
height: (0, _normalize.normalize)(35, scaleH)
|
|
188
|
+
},
|
|
189
|
+
imgFace: {
|
|
190
|
+
height: '100%',
|
|
191
|
+
flex: 1,
|
|
192
|
+
aspectRatio: 4 / 4.4
|
|
193
|
+
},
|
|
194
|
+
waveTop: {
|
|
195
|
+
flex: 1,
|
|
196
|
+
width: '100%',
|
|
197
|
+
height: 400
|
|
198
|
+
},
|
|
199
|
+
box: {
|
|
200
|
+
width: 60,
|
|
201
|
+
height: 60,
|
|
202
|
+
marginVertical: 20
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
//# sourceMappingURL=InstructionsView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_normalize","width","SCREEN_WIDTH","height","SCREEN_HEIGHT","Dimensions","get","scaleW","scaleH","InstructionsView","onVerify","onBack","React","createElement","View","style","styles","container","TouchableOpacity","onPress","navigationBar","Image","source","leftArrow","boxImg","imgContainer","imgFace","boxBtn","Text","title","subtitle","intructions","rowInstructions","boxIcon","boxText","viewBtn","nextBtn","nextText","StyleSheet","create","flex","alignItems","backgroundColor","justifyContent","flexDirection","borderColor","borderWidth","borderRadius","paddingLeft","color","fontSize","normalize","marginTop","marginLeft","fontWeight","margin","description_one","textAlign","marginRight","boxInfo","paddingTop","Platform","OS","borderTopLeftRadius","borderTopRightRadius","paddingBottom","iconTop","aspectRatio","waveTop","box","marginVertical"],"sourceRoot":"../../../../src","sources":["screens/Liveness3D/InstructionsView.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AASA,IAAAC,UAAA,GAAAD,OAAA;AAEA,MAAM;EAAEE,KAAK,EAAEC,YAAY;EAAEC,MAAM,EAAEC;AAAc,CAAC,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC;AAE/E,MAAMC,MAAM,GAAGL,YAAY,GAAG,GAAG;AACjC,MAAMM,MAAM,GAAGJ,aAAa,GAAG,GAAG;AAEnB,SAASK,gBAAgBA,CAAC;EACvCC,QAAQ;EACRC;AAIF,CAAC,EAAE;EACD,oBACEC,KAAA,CAAAC,aAAA,CAACf,YAAA,CAAAgB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC;EAAU,gBAC5BL,KAAA,CAAAC,aAAA,CAACf,YAAA,CAAAoB,gBAAgB;IAACC,OAAO,EAAEA,CAAA,KAAMR,MAAM,CAAC,CAAE;IAACI,KAAK,EAAEC,MAAM,CAACI;EAAc,gBACrER,KAAA,CAAAC,aAAA,CAACf,YAAA,CAAAuB,KAAK;IACJC,MAAM,EAAEvB,OAAO,CAAC,oCAAoC,CAAE;IACtDgB,KAAK,EAAEC,MAAM,CAACO;EAAU,CACzB,CACe,CAAC,eACnBX,KAAA,CAAAC,aAAA,CAACf,YAAA,CAAAgB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACQ;EAAO,gBACzBZ,KAAA,CAAAC,aAAA,CAACf,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AI,EAAE,CAAC;IACPvC,KAAK,EAAE,MAAM;IACbE,MAAM,EAAE;EACV,CAAC;EACDkE,GAAG,EAAE;IACHpE,KAAK,EAAE,EAAE;IACTE,MAAM,EAAE,EAAE;IACVmE,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = PermissionView;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _normalize = require("../utils/normalize");
|
|
9
|
+
const {
|
|
10
|
+
height: SCREEN_HEIGHT
|
|
11
|
+
} = _reactNative.Dimensions.get('window');
|
|
12
|
+
|
|
13
|
+
//const scaleW = SCREEN_WIDTH / 320;
|
|
14
|
+
const scaleH = SCREEN_HEIGHT / 920;
|
|
15
|
+
function PermissionView({
|
|
16
|
+
onVerify,
|
|
17
|
+
onBack
|
|
18
|
+
}) {
|
|
19
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
20
|
+
style: styles.container
|
|
21
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
22
|
+
style: styles.navigationBar
|
|
23
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
24
|
+
onPress: () => onBack(),
|
|
25
|
+
style: styles.navigationBar
|
|
26
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
27
|
+
source: require('../assets/images/left-arrow-b.png'),
|
|
28
|
+
style: styles.leftArrow
|
|
29
|
+
}))), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
30
|
+
style: styles.containerPerm
|
|
31
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
32
|
+
style: styles.imgContainer
|
|
33
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
34
|
+
source: require('../assets/images/camera_alt.png'),
|
|
35
|
+
style: styles.imgFace
|
|
36
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
37
|
+
style: styles.intructions
|
|
38
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
39
|
+
style: styles.title
|
|
40
|
+
}, "Permiss\xF5es da c\xE2mera desativadas."), /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
41
|
+
style: styles.subtitle
|
|
42
|
+
}, "Habilitar as configura\xE7\xF5es do seu aparelho."), /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
43
|
+
onPress: () => onVerify(),
|
|
44
|
+
style: styles.nextBtn
|
|
45
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
46
|
+
style: styles.nextText
|
|
47
|
+
}, "Verificar"))))));
|
|
48
|
+
}
|
|
49
|
+
const styles = _reactNative.StyleSheet.create({
|
|
50
|
+
container: {
|
|
51
|
+
flex: 1,
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
backgroundColor: '#FFFFF',
|
|
54
|
+
width: '100%',
|
|
55
|
+
justifyContent: 'center'
|
|
56
|
+
},
|
|
57
|
+
rowInstructions: {
|
|
58
|
+
width: '100%',
|
|
59
|
+
flex: 2,
|
|
60
|
+
alignItems: 'center',
|
|
61
|
+
flexDirection: 'row'
|
|
62
|
+
},
|
|
63
|
+
viewBtn: {
|
|
64
|
+
width: '90%',
|
|
65
|
+
flex: 1,
|
|
66
|
+
justifyContent: 'center',
|
|
67
|
+
alignItems: 'center'
|
|
68
|
+
},
|
|
69
|
+
navigationBar: {
|
|
70
|
+
width: '100%',
|
|
71
|
+
backgroundColor: '#FFF'
|
|
72
|
+
},
|
|
73
|
+
containerPerm: {
|
|
74
|
+
width: '100%',
|
|
75
|
+
backgroundColor: '#FFFFFF',
|
|
76
|
+
justifyContent: 'center',
|
|
77
|
+
flex: 1,
|
|
78
|
+
alignItems: 'center'
|
|
79
|
+
},
|
|
80
|
+
intructions: {
|
|
81
|
+
width: '90%',
|
|
82
|
+
flex: 1
|
|
83
|
+
},
|
|
84
|
+
boxIcon: {
|
|
85
|
+
width: 64,
|
|
86
|
+
height: 64,
|
|
87
|
+
alignItems: 'center',
|
|
88
|
+
justifyContent: 'center',
|
|
89
|
+
borderColor: '#E0E0E0',
|
|
90
|
+
borderWidth: 1,
|
|
91
|
+
backgroundColor: '#F5f5f5',
|
|
92
|
+
borderRadius: 100
|
|
93
|
+
},
|
|
94
|
+
boxText: {
|
|
95
|
+
paddingLeft: 20,
|
|
96
|
+
width: '75%',
|
|
97
|
+
color: '#000000',
|
|
98
|
+
fontSize: 25
|
|
99
|
+
},
|
|
100
|
+
imgContainer: {
|
|
101
|
+
flex: 1,
|
|
102
|
+
width: '90%',
|
|
103
|
+
marginTop: 100,
|
|
104
|
+
alignItems: 'center',
|
|
105
|
+
textAlign: 'center',
|
|
106
|
+
justifyContent: 'center'
|
|
107
|
+
},
|
|
108
|
+
title: {
|
|
109
|
+
marginTop: 30,
|
|
110
|
+
width: '100%',
|
|
111
|
+
marginBottom: 20,
|
|
112
|
+
fontSize: 29,
|
|
113
|
+
fontWeight: 'bold',
|
|
114
|
+
alignItems: 'center',
|
|
115
|
+
textAlign: 'center',
|
|
116
|
+
/* fontFamily: 'Ubuntu-Bold', */
|
|
117
|
+
color: '#1E1E1E'
|
|
118
|
+
},
|
|
119
|
+
nextBtn: {
|
|
120
|
+
width: '100%',
|
|
121
|
+
backgroundColor: '#05D758',
|
|
122
|
+
alignItems: 'center',
|
|
123
|
+
fontWeight: 900,
|
|
124
|
+
borderRadius: 50,
|
|
125
|
+
marginTop: 0
|
|
126
|
+
},
|
|
127
|
+
nextText: {
|
|
128
|
+
/* fontFamily: 'Ubuntu-Medium', */
|
|
129
|
+
fontSize: 25,
|
|
130
|
+
margin: 13
|
|
131
|
+
},
|
|
132
|
+
boxBtn: {
|
|
133
|
+
width: '100%',
|
|
134
|
+
flex: 1,
|
|
135
|
+
borderTopLeftRadius: 35,
|
|
136
|
+
borderTopRightRadius: 35,
|
|
137
|
+
alignItems: 'center',
|
|
138
|
+
backgroundColor: '#FFFFFF'
|
|
139
|
+
},
|
|
140
|
+
subtitle: {
|
|
141
|
+
/* fontFamily: 'Ubuntu-Regular', */
|
|
142
|
+
fontSize: 23,
|
|
143
|
+
width: '100%',
|
|
144
|
+
color: '#666666',
|
|
145
|
+
alignItems: 'center',
|
|
146
|
+
textAlign: 'center',
|
|
147
|
+
paddingBottom: 25
|
|
148
|
+
},
|
|
149
|
+
iconTop: {
|
|
150
|
+
marginTop: 60,
|
|
151
|
+
marginLeft: 20,
|
|
152
|
+
width: 55,
|
|
153
|
+
height: 55
|
|
154
|
+
},
|
|
155
|
+
leftArrow: {
|
|
156
|
+
marginTop: (0, _normalize.normalize)(70, scaleH),
|
|
157
|
+
marginLeft: 20,
|
|
158
|
+
width: 25,
|
|
159
|
+
height: 25
|
|
160
|
+
},
|
|
161
|
+
imgFace: {},
|
|
162
|
+
waveTop: {
|
|
163
|
+
flex: 1,
|
|
164
|
+
width: '100%',
|
|
165
|
+
height: 400
|
|
166
|
+
},
|
|
167
|
+
box: {
|
|
168
|
+
width: 60,
|
|
169
|
+
height: 60,
|
|
170
|
+
marginVertical: 20
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
//# sourceMappingURL=PermissionView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_normalize","height","SCREEN_HEIGHT","Dimensions","get","scaleH","PermissionView","onVerify","onBack","React","createElement","View","style","styles","container","navigationBar","TouchableOpacity","onPress","Image","source","leftArrow","containerPerm","imgContainer","imgFace","intructions","Text","title","subtitle","nextBtn","nextText","StyleSheet","create","flex","alignItems","backgroundColor","width","justifyContent","rowInstructions","flexDirection","viewBtn","boxIcon","borderColor","borderWidth","borderRadius","boxText","paddingLeft","color","fontSize","marginTop","textAlign","marginBottom","fontWeight","margin","boxBtn","borderTopLeftRadius","borderTopRightRadius","paddingBottom","iconTop","marginLeft","normal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AQ;IACpBC,eAAe,EAAE;EACnB,CAAC;EACDP,QAAQ,EAAE;IACR;IACAoB,QAAQ,EAAE,EAAE;IACZZ,KAAK,EAAE,MAAM;IACbW,KAAK,EAAE,SAAS;IAChBb,UAAU,EAAE,QAAQ;IACpBgB,SAAS,EAAE,QAAQ;IACnBO,aAAa,EAAE;EACjB,CAAC;EACDC,OAAO,EAAE;IACPT,SAAS,EAAE,EAAE;IACbU,UAAU,EAAE,EAAE;IACdvB,KAAK,EAAE,EAAE;IACTlC,MAAM,EAAE;EACV,CAAC;EACDmB,SAAS,EAAE;IACT4B,SAAS,EAAE,IAAAW,oBAAS,EAAC,EAAE,EAAEtD,MAAM,CAAC;IAChCqD,UAAU,EAAE,EAAE;IACdvB,KAAK,EAAE,EAAE;IACTlC,MAAM,EAAE;EACV,CAAC;EACDsB,OAAO,EAAE,CAAC,CAAC;EACXqC,OAAO,EAAE;IACP5B,IAAI,EAAE,CAAC;IACPG,KAAK,EAAE,MAAM;IACblC,MAAM,EAAE;EACV,CAAC;EACD4D,GAAG,EAAE;IACH1B,KAAK,EAAE,EAAE;IACTlC,MAAM,EAAE,EAAE;IACV6D,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.continueButton = void 0;
|
|
7
|
+
var _permissions = require("./permissions");
|
|
8
|
+
const continueButton = () => {
|
|
9
|
+
return (0, _permissions.checkCameraPermissionGranted)();
|
|
10
|
+
};
|
|
11
|
+
exports.continueButton = continueButton;
|
|
12
|
+
//# sourceMappingURL=continueButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_permissions","require","continueButton","checkCameraPermissionGranted","exports"],"sourceRoot":"../../../src","sources":["utils/continueButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,cAAc,GAAGA,CAAA,KAAe;EAC3C,OAAO,IAAAC,yCAA4B,EAAC,CAAC;AACvC,CAAC;AAACC,OAAA,CAAAF,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.normalize = normalize;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
function normalize(size, scale) {
|
|
9
|
+
const newSize = size * scale;
|
|
10
|
+
if (_reactNative.Platform.OS === 'ios') {
|
|
11
|
+
return size;
|
|
12
|
+
} else {
|
|
13
|
+
return Math.round(_reactNative.PixelRatio.roundToNearestPixel(newSize)) - 10;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=normalize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","normalize","size","scale","newSize","Platform","OS","Math","round","PixelRatio","roundToNearestPixel"],"sourceRoot":"../../../src","sources":["utils/normalize.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,SAASC,SAASA,CAACC,IAAS,EAAEC,KAAU,EAAE;EAC/C,MAAMC,OAAO,GAAGF,IAAI,GAAGC,KAAK;EAC5B,IAAIE,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IACzB,OAAOJ,IAAI;EACb,CAAC,MAAM;IACL,OAAOK,IAAI,CAACC,KAAK,CAACC,uBAAU,CAACC,mBAAmB,CAACN,OAAO,CAAC,CAAC,GAAG,EAAE;EACjE;AACF","ignoreList":[]}
|