@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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.checkCameraPermissionGranted = checkCameraPermissionGranted;
|
|
7
|
+
exports.requestCameraPermission = requestCameraPermission;
|
|
8
|
+
var _NativeRnLiveness3d = _interopRequireDefault(require("../NativeRnLiveness3d"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function checkCameraPermissionGranted() {
|
|
11
|
+
return _NativeRnLiveness3d.default.checkCameraPermissionGranted();
|
|
12
|
+
}
|
|
13
|
+
function requestCameraPermission() {
|
|
14
|
+
return new Promise((resolve, _reject) => {
|
|
15
|
+
_NativeRnLiveness3d.default.requestCameraPermission(result => {
|
|
16
|
+
resolve(result);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_NativeRnLiveness3d","_interopRequireDefault","require","e","__esModule","default","checkCameraPermissionGranted","RnLiveness3d","requestCameraPermission","Promise","resolve","_reject","result"],"sourceRoot":"../../../src","sources":["utils/permissions.tsx"],"mappings":";;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAiD,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE1C,SAASG,4BAA4BA,CAAA,EAAY;EACtD,OAAOC,2BAAY,CAACD,4BAA4B,CAAC,CAAC;AACpD;AAEO,SAASE,uBAAuBA,CAAA,EAAqB;EAC1D,OAAO,IAAIC,OAAO,CAAC,CAACC,OAAO,EAAEC,OAAO,KAAK;IACvCJ,2BAAY,CAACC,uBAAuB,CAAEI,MAAM,IAAK;MAC/CF,OAAO,CAACE,MAAM,CAAC;IACjB,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SCREEN","exports","Object","freeze","INSTRUCTION_VIEW","PERMISSION_VIEW"],"sourceRoot":"../../../src","sources":["utils/screenStore.tsx"],"mappings":";;;;;;AAAO,MAAMA,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,MAAM,CAACC,MAAM,CAAC;EAClCC,gBAAgB,EAAE,CAAC;EACnBC,eAAe,EAAE;AACnB,CAAU,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
4
5
|
|
|
5
6
|
Pod::Spec.new do |s|
|
|
6
7
|
s.name = "oiti-rn-liveness3d"
|
|
@@ -10,13 +11,28 @@ Pod::Spec.new do |s|
|
|
|
10
11
|
s.license = package["license"]
|
|
11
12
|
s.authors = package["author"]
|
|
12
13
|
|
|
13
|
-
s.platforms = { :ios =>
|
|
14
|
+
s.platforms = { :ios => "12.4" }
|
|
14
15
|
s.source = { :git => "https://github.com/oititec/rn-liveness3d.git", :tag => "#{s.version}" }
|
|
16
|
+
s.source = { :git => "https://github.com/oititec/ios-artifactory-beta.git" }
|
|
15
17
|
|
|
16
|
-
s.source_files = "ios/**/*.{h,m,mm,
|
|
17
|
-
s.private_header_files = "ios/**/*.h"
|
|
18
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
19
|
|
|
19
|
-
s.
|
|
20
|
+
s.dependency "React-Core"
|
|
21
|
+
|
|
22
|
+
s.ios.dependency 'OILiveness3D', '3.10.0'
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
25
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
26
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
27
|
+
s.pod_target_xcconfig = {
|
|
28
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
29
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
30
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
31
|
+
}
|
|
32
|
+
s.dependency "React-Codegen"
|
|
33
|
+
s.dependency "RCT-Folly"
|
|
34
|
+
s.dependency "RCTRequired"
|
|
35
|
+
s.dependency "RCTTypeSafety"
|
|
36
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
37
|
+
end
|
|
38
|
+
end
|
package/package.json
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oiti/rn-liveness3d",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "test",
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"types": "./lib/typescript/src/index.d.ts",
|
|
11
|
-
"default": "./lib/module/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./package.json": "./package.json"
|
|
14
|
-
},
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
15
10
|
"files": [
|
|
16
11
|
"src",
|
|
17
12
|
"lib",
|
|
@@ -19,7 +14,7 @@
|
|
|
19
14
|
"ios",
|
|
20
15
|
"cpp",
|
|
21
16
|
"*.podspec",
|
|
22
|
-
"
|
|
17
|
+
"!lib/typescript/example",
|
|
23
18
|
"!ios/build",
|
|
24
19
|
"!android/build",
|
|
25
20
|
"!android/gradle",
|
|
@@ -32,23 +27,20 @@
|
|
|
32
27
|
"!**/.*"
|
|
33
28
|
],
|
|
34
29
|
"scripts": {
|
|
35
|
-
"example": "yarn workspace testing-example",
|
|
36
30
|
"test": "jest",
|
|
37
|
-
"
|
|
31
|
+
"typescript": "tsc --noEmit",
|
|
38
32
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
39
|
-
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
40
33
|
"prepare": "bob build",
|
|
41
|
-
"release": "release-it
|
|
34
|
+
"release": "release-it",
|
|
35
|
+
"example": "yarn --cwd example",
|
|
36
|
+
"bootstrap": "yarn example && yarn install && yarn example pods"
|
|
42
37
|
},
|
|
43
38
|
"keywords": [
|
|
44
39
|
"react-native",
|
|
45
40
|
"ios",
|
|
46
41
|
"android"
|
|
47
42
|
],
|
|
48
|
-
"repository":
|
|
49
|
-
"type": "git",
|
|
50
|
-
"url": "git+https://github.com/oititec/rn-liveness3d"
|
|
51
|
-
},
|
|
43
|
+
"repository": "https://github.com/oititec/rn-liveness3d",
|
|
52
44
|
"author": "catelli <eu@gabrielcatelli.com> (https://github.com/catelli)",
|
|
53
45
|
"license": "MIT",
|
|
54
46
|
"bugs": {
|
|
@@ -58,42 +50,31 @@
|
|
|
58
50
|
"publishConfig": {
|
|
59
51
|
"registry": "https://registry.npmjs.org/"
|
|
60
52
|
},
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"@react-navigation/native": "^6.1.6",
|
|
63
|
-
"@react-navigation/native-stack": "^6.9.12",
|
|
64
|
-
"react-native-safe-area-context": "^4.5.0",
|
|
65
|
-
"react-native-screens": "^3.20.0"
|
|
66
|
-
},
|
|
67
53
|
"devDependencies": {
|
|
68
54
|
"@arkweid/lefthook": "^0.7.7",
|
|
69
55
|
"@commitlint/config-conventional": "^17.0.2",
|
|
70
|
-
"@eslint/compat": "^1.4.0",
|
|
71
56
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
72
57
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
73
58
|
"@types/jest": "^28.1.2",
|
|
74
|
-
"@types/react": "
|
|
75
|
-
"@types/react-native": "0.
|
|
59
|
+
"@types/react": "17.0.21",
|
|
60
|
+
"@types/react-native": "0.70.0",
|
|
76
61
|
"commitlint": "^17.0.2",
|
|
77
|
-
"eslint": "^
|
|
62
|
+
"eslint": "^8.4.1",
|
|
78
63
|
"eslint-config-prettier": "^8.5.0",
|
|
79
64
|
"eslint-plugin-prettier": "^4.0.0",
|
|
80
65
|
"jest": "^28.1.1",
|
|
81
66
|
"pod-install": "^0.1.0",
|
|
82
67
|
"prettier": "^2.0.5",
|
|
83
|
-
"react": "
|
|
84
|
-
"react-native": "0.
|
|
68
|
+
"react": "18.2.0",
|
|
69
|
+
"react-native": "0.70.0",
|
|
85
70
|
"react-native-builder-bob": "^0.20.0",
|
|
86
71
|
"release-it": "^15.0.0",
|
|
87
|
-
"typescript": "^5.
|
|
72
|
+
"typescript": "^4.5.2"
|
|
88
73
|
},
|
|
89
74
|
"peerDependencies": {
|
|
90
75
|
"react": "*",
|
|
91
76
|
"react-native": "*"
|
|
92
77
|
},
|
|
93
|
-
"workspaces": [
|
|
94
|
-
"example"
|
|
95
|
-
],
|
|
96
|
-
"packageManager": "yarn@3.6.1",
|
|
97
78
|
"jest": {
|
|
98
79
|
"preset": "react-native",
|
|
99
80
|
"modulePathIgnorePatterns": [
|
|
@@ -119,12 +100,33 @@
|
|
|
119
100
|
},
|
|
120
101
|
"plugins": {
|
|
121
102
|
"@release-it/conventional-changelog": {
|
|
122
|
-
"preset":
|
|
123
|
-
"name": "angular"
|
|
124
|
-
}
|
|
103
|
+
"preset": "angular"
|
|
125
104
|
}
|
|
126
105
|
}
|
|
127
106
|
},
|
|
107
|
+
"eslintConfig": {
|
|
108
|
+
"root": true,
|
|
109
|
+
"extends": [
|
|
110
|
+
"@react-native-community",
|
|
111
|
+
"prettier"
|
|
112
|
+
],
|
|
113
|
+
"rules": {
|
|
114
|
+
"prettier/prettier": [
|
|
115
|
+
"error",
|
|
116
|
+
{
|
|
117
|
+
"quoteProps": "consistent",
|
|
118
|
+
"singleQuote": true,
|
|
119
|
+
"tabWidth": 2,
|
|
120
|
+
"trailingComma": "es5",
|
|
121
|
+
"useTabs": false
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"eslintIgnore": [
|
|
127
|
+
"node_modules/",
|
|
128
|
+
"lib/"
|
|
129
|
+
],
|
|
128
130
|
"prettier": {
|
|
129
131
|
"quoteProps": "consistent",
|
|
130
132
|
"singleQuote": true,
|
|
@@ -136,12 +138,8 @@
|
|
|
136
138
|
"source": "src",
|
|
137
139
|
"output": "lib",
|
|
138
140
|
"targets": [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
{
|
|
142
|
-
"esm": true
|
|
143
|
-
}
|
|
144
|
-
],
|
|
141
|
+
"commonjs",
|
|
142
|
+
"module",
|
|
145
143
|
[
|
|
146
144
|
"typescript",
|
|
147
145
|
{
|
|
@@ -150,17 +148,10 @@
|
|
|
150
148
|
]
|
|
151
149
|
]
|
|
152
150
|
},
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"javaPackageName": "br.com.oiti.rnliveness3d"
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
"create-react-native-library": {
|
|
162
|
-
"languages": "kotlin-objc",
|
|
163
|
-
"type": "turbo-module",
|
|
164
|
-
"version": "0.54.6"
|
|
151
|
+
"dependencies": {
|
|
152
|
+
"@react-navigation/native": "^6.1.6",
|
|
153
|
+
"@react-navigation/native-stack": "^6.9.12",
|
|
154
|
+
"react-native-safe-area-context": "^4.5.0",
|
|
155
|
+
"react-native-screens": "^3.20.0"
|
|
165
156
|
}
|
|
166
157
|
}
|