assentify-sdk-react-native 1.0.0-Beta.4 → 1.0.0-Beta.41
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/Package.swift +172 -0
- package/README.md +124 -32
- package/android/build.gradle +1 -6
- package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +48 -9
- package/android/src/main/java/com/assentifysdk/FlowActivity.kt +75 -7
- package/android/src/main/java/com/assentifysdk/ScanIDActivity.kt +67 -6
- package/android/src/main/java/com/assentifysdk/ScanPassportActivity.kt +53 -1
- package/android/src/main/res/layout/activity_scan.xml +45 -57
- package/ios/AssentifySdkBaseModule.swift +1 -0
- package/ios/NativeAssentifySdk.mm +19 -2
- package/ios/NativeAssentifySdk.swift +151 -25
- package/ios/UIComponents/RNPassportScanner.swift +4 -3
- package/ios/View/AssentifySdkEventEmitting.swift +10 -0
- package/ios/View/DataDecoder.swift +16 -16
- package/ios/View/FaceMatchController.swift +51 -51
- package/ios/View/IDCardController.swift +93 -37
- package/ios/View/OtherController.swift +33 -33
- package/ios/View/PassportController.swift +84 -36
- package/ios/View/QrController.swift +10 -10
- package/ios/View/UI.swift +77 -26
- package/lib/commonjs/AssentifyProvider.js +3 -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/ClickFontWeightType.js +14 -0
- package/lib/commonjs/ClickFontWeightType.js.map +1 -0
- package/lib/commonjs/FlowStepperType.js +11 -0
- package/lib/commonjs/FlowStepperType.js.map +1 -0
- package/lib/commonjs/Language.js +5 -1
- package/lib/commonjs/Language.js.map +1 -1
- package/lib/commonjs/ValidationStyleType.js +11 -0
- package/lib/commonjs/ValidationStyleType.js.map +1 -0
- package/lib/commonjs/index.js +36 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/AssentifyProvider.js +4 -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/ClickFontWeightType.js +8 -0
- package/lib/module/ClickFontWeightType.js.map +1 -0
- package/lib/module/FlowStepperType.js +5 -0
- package/lib/module/FlowStepperType.js.map +1 -0
- package/lib/module/Language.js +4 -0
- package/lib/module/Language.js.map +1 -1
- package/lib/module/ValidationStyleType.js +5 -0
- package/lib/module/ValidationStyleType.js.map +1 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/babel.config.d.ts +0 -1
- package/lib/typescript/example/babel.config.d.ts +36 -5
- package/lib/typescript/example/babel.config.d.ts.map +1 -1
- package/lib/typescript/example/metro.config.d.ts +9 -1
- package/lib/typescript/example/metro.config.d.ts.map +1 -1
- package/lib/typescript/example/react-native.config.d.ts +34 -3
- package/lib/typescript/example/react-native.config.d.ts.map +1 -1
- package/lib/typescript/example/src/App.d.ts.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/ClickFontWeightType.d.ts +9 -0
- package/lib/typescript/lib/commonjs/ClickFontWeightType.d.ts.map +1 -0
- 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/commonjs/Language.d.ts +6 -0
- package/lib/typescript/lib/commonjs/ValidationStyleType.d.ts +6 -0
- package/lib/typescript/lib/commonjs/ValidationStyleType.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/ClickFontWeightType.d.ts +8 -0
- package/lib/typescript/lib/module/ClickFontWeightType.d.ts.map +1 -0
- 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/Language.d.ts +6 -0
- package/lib/typescript/lib/module/ValidationStyleType.d.ts +5 -0
- package/lib/typescript/lib/module/ValidationStyleType.d.ts.map +1 -0
- package/lib/typescript/lib/module/index.d.ts +5 -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 +6 -2
- package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/src/ClickFontWeightType.d.ts +9 -0
- package/lib/typescript/src/ClickFontWeightType.d.ts.map +1 -0
- package/lib/typescript/src/FlowStepperType.d.ts +6 -0
- package/lib/typescript/src/FlowStepperType.d.ts.map +1 -0
- package/lib/typescript/src/Language.d.ts +5 -0
- package/lib/typescript/src/Language.d.ts.map +1 -1
- package/lib/typescript/src/ValidationStyleType.d.ts +6 -0
- package/lib/typescript/src/ValidationStyleType.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +5 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +63 -10
- package/src/AssentifyProvider.tsx +341 -305
- package/src/AssentifyWrapper.ts +47 -6
- package/src/ClickFontWeightType.ts +10 -0
- package/src/FlowStepperType.ts +7 -0
- package/src/Language.ts +7 -0
- package/src/ValidationStyleType.ts +7 -0
- package/src/index.ts +3 -0
- package/src/types.ts +1 -0
- package/assentify-sdk.podspec +0 -44
- package/lib/typescript/example/src/navigator.d.ts +0 -4
- package/lib/typescript/example/src/navigator.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assentify-sdk-react-native",
|
|
3
|
-
"version": "1.0.0-Beta.
|
|
3
|
+
"version": "1.0.0-Beta.41",
|
|
4
4
|
"description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"android",
|
|
14
14
|
"ios",
|
|
15
15
|
"cpp",
|
|
16
|
-
"
|
|
16
|
+
"Package.swift",
|
|
17
17
|
"!ios/build",
|
|
18
18
|
"!android/build",
|
|
19
19
|
"!android/gradle",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"jest": "^29.7.0",
|
|
73
73
|
"prettier": "^3.0.3",
|
|
74
74
|
"react": "19.2.3",
|
|
75
|
-
"react-native": "0.
|
|
75
|
+
"react-native": "^0.86.2",
|
|
76
76
|
"react-native-builder-bob": "^0.20.0",
|
|
77
77
|
"react-native-gesture-handler": "^2.16.2",
|
|
78
78
|
"react-native-safe-area-context": "^4.10.4",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@gorhom/bottom-sheet": "^4",
|
|
89
|
-
"@react-native/babel-preset": "0.
|
|
90
|
-
"@react-native/metro-config": "0.
|
|
91
|
-
"@react-native/typescript-config": "0.
|
|
89
|
+
"@react-native/babel-preset": "^0.86.0",
|
|
90
|
+
"@react-native/metro-config": "^0.86.0",
|
|
91
|
+
"@react-native/typescript-config": "^0.86.0",
|
|
92
92
|
"@react-navigation/native": ">=6.0.0 <8.0.0",
|
|
93
93
|
"@react-navigation/native-stack": ">=6.0.0 <8.0.0",
|
|
94
94
|
"react": "*",
|
|
@@ -97,18 +97,70 @@
|
|
|
97
97
|
"react-native-reanimated": "^4.2.2",
|
|
98
98
|
"react-native-safe-area-context": ">= 3.0.0",
|
|
99
99
|
"react-native-screens": "^4.18.0",
|
|
100
|
-
"react-native-worklets": "
|
|
100
|
+
"react-native-worklets": "0.10.x - 0.11.x"
|
|
101
101
|
},
|
|
102
102
|
"workspaces": [
|
|
103
103
|
"example"
|
|
104
104
|
],
|
|
105
105
|
"packageManager": "yarn@3.6.1",
|
|
106
106
|
"jest": {
|
|
107
|
-
"
|
|
107
|
+
"testEnvironment": "node",
|
|
108
|
+
"roots": [
|
|
109
|
+
"<rootDir>/src"
|
|
110
|
+
],
|
|
111
|
+
"testMatch": [
|
|
112
|
+
"**/__tests__/**/*.test.ts?(x)"
|
|
113
|
+
],
|
|
114
|
+
"transform": {
|
|
115
|
+
"^.+\\.[jt]sx?$": [
|
|
116
|
+
"babel-jest",
|
|
117
|
+
{
|
|
118
|
+
"configFile": false,
|
|
119
|
+
"babelrc": false,
|
|
120
|
+
"presets": [
|
|
121
|
+
[
|
|
122
|
+
"@babel/preset-env",
|
|
123
|
+
{
|
|
124
|
+
"targets": {
|
|
125
|
+
"node": "current"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
[
|
|
130
|
+
"@babel/preset-react",
|
|
131
|
+
{
|
|
132
|
+
"runtime": "automatic"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"@babel/preset-typescript"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"moduleNameMapper": {
|
|
141
|
+
"^react-native$": "<rootDir>/src/__tests__/support/react-native.ts"
|
|
142
|
+
},
|
|
108
143
|
"modulePathIgnorePatterns": [
|
|
109
144
|
"<rootDir>/example/node_modules",
|
|
110
145
|
"<rootDir>/lib/"
|
|
111
|
-
]
|
|
146
|
+
],
|
|
147
|
+
"collectCoverageFrom": [
|
|
148
|
+
"src/**/*.{ts,tsx}",
|
|
149
|
+
"!src/__tests__/**"
|
|
150
|
+
],
|
|
151
|
+
"coverageReporters": [
|
|
152
|
+
"text-summary",
|
|
153
|
+
"cobertura",
|
|
154
|
+
"lcov"
|
|
155
|
+
],
|
|
156
|
+
"coverageThreshold": {
|
|
157
|
+
"global": {
|
|
158
|
+
"lines": 98,
|
|
159
|
+
"statements": 98,
|
|
160
|
+
"functions": 95,
|
|
161
|
+
"branches": 90
|
|
162
|
+
}
|
|
163
|
+
}
|
|
112
164
|
},
|
|
113
165
|
"release-it": {
|
|
114
166
|
"git": {
|
|
@@ -176,7 +228,8 @@
|
|
|
176
228
|
[
|
|
177
229
|
"typescript",
|
|
178
230
|
{
|
|
179
|
-
"esm": true
|
|
231
|
+
"esm": true,
|
|
232
|
+
"tsc": "./node_modules/.bin/tsc"
|
|
180
233
|
}
|
|
181
234
|
]
|
|
182
235
|
]
|