@idnow/react-idcheckio 7.2.2 → 8.0.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.
Files changed (56) hide show
  1. package/.editorconfig +15 -0
  2. package/.gitattributes +2 -0
  3. package/README.md +236 -193
  4. package/android/build.gradle +95 -37
  5. package/android/gradle.properties +5 -0
  6. package/android/src/main/AndroidManifest.xml +5 -4
  7. package/android/src/main/AndroidManifestNew.xml +9 -0
  8. package/android/src/main/java/com/idnowreactidcheckio/IdnowReactIdcheckioActivity.kt +67 -0
  9. package/android/src/main/java/com/idnowreactidcheckio/IdnowReactIdcheckioModule.kt +115 -0
  10. package/android/src/main/java/com/idnowreactidcheckio/IdnowReactIdcheckioPackage.kt +17 -0
  11. package/android/src/main/java/com/idnowreactidcheckio/bean/ExtractionEnum.kt +6 -0
  12. package/android/src/main/java/com/idnowreactidcheckio/bean/ExtractionReact.kt +20 -0
  13. package/android/src/main/java/com/idnowreactidcheckio/bean/IntegrityCheckEnum.kt +6 -0
  14. package/android/src/main/java/com/idnowreactidcheckio/bean/IntegrityCheckReact.kt +18 -0
  15. package/android/src/main/java/com/idnowreactidcheckio/bean/OnlineConfigEnum.kt +9 -0
  16. package/android/src/main/java/com/idnowreactidcheckio/bean/ParamsEnum.kt +19 -0
  17. package/android/src/main/java/com/idnowreactidcheckio/bean/Theme.kt +29 -0
  18. package/android/src/main/java/com/idnowreactidcheckio/bean/ThemeEnum.kt +13 -0
  19. package/android/src/main/java/com/idnowreactidcheckio/utils/Extension.kt +20 -0
  20. package/android/src/main/java/com/idnowreactidcheckio/utils/Mapper.kt +178 -0
  21. package/android/src/main/res/layout/activity_idnow_react_idcheckio.xml +9 -0
  22. package/idnow-react-idcheckio.podspec +43 -0
  23. package/ios/IdnowReactIdcheckio-Bridging-Header.h +2 -0
  24. package/ios/IdnowReactIdcheckio.mm +29 -0
  25. package/ios/IdnowReactIdcheckio.swift +131 -0
  26. package/ios/Models/ExtractionEnum.swift +13 -0
  27. package/ios/Models/ExtractionReact.swift +23 -0
  28. package/ios/Models/IntegrityCheckEnum.swift +13 -0
  29. package/ios/Models/IntegrityCheckReact.swift +24 -0
  30. package/ios/Models/OnlineConfigEnum.swift +16 -0
  31. package/ios/Models/ParamsEnum.swift +26 -0
  32. package/ios/Models/ThemeEnum.swift +20 -0
  33. package/ios/Models/ThemeReact.swift +32 -0
  34. package/ios/Utils/Mapper.swift +139 -0
  35. package/package.json +14 -11
  36. package/release-public.sh +4 -4
  37. package/src/index.d.ts +259 -0
  38. package/src/index.js +270 -0
  39. package/tsconfig.json +12 -0
  40. package/ReactIdcheckio.podspec +0 -15
  41. package/android/.project +0 -17
  42. package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
  43. package/android/src/main/java/com/ariadnext/idcheckio/IdcheckioActivity.java +0 -133
  44. package/android/src/main/java/com/ariadnext/idcheckio/IdcheckioConst.java +0 -39
  45. package/android/src/main/java/com/ariadnext/idcheckio/IdcheckioModule.java +0 -189
  46. package/android/src/main/java/com/ariadnext/idcheckio/IdcheckioPackage.java +0 -22
  47. package/android/src/main/java/com/ariadnext/idcheckio/ParameterUtils.java +0 -251
  48. package/idcheckio_params.js +0 -343
  49. package/index.js +0 -6
  50. package/ios/Idcheckio.h +0 -11
  51. package/ios/Idcheckio.m +0 -301
  52. package/ios/Idcheckio.xcodeproj/project.pbxproj +0 -340
  53. package/ios/Idcheckio.xcworkspace/contents.xcworkspacedata +0 -10
  54. package/ios/Idcheckio.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  55. package/ios/IdcheckioKeys.h +0 -49
  56. package/ios/IdcheckioSdk+Utils.swift +0 -35
package/src/index.d.ts ADDED
@@ -0,0 +1,259 @@
1
+ /**
2
+ * Preload the native models of the sdk.
3
+ *
4
+ * @param extractData - A boolean indicating whether to use extract data. True by default.
5
+ * @returns Void on success.
6
+ */
7
+ export function preload(extractData: boolean): void;
8
+
9
+ /**
10
+ * Activates the sdk with the given token.
11
+ *
12
+ * @param token - The token string used for activation.
13
+ * @param extractData - A boolean indicating whether to use extract data. True by default.
14
+ * @returns Void on success.
15
+ * @throws An error of type {@link IDCheckioError} if the activation fails.
16
+ */
17
+ export function activate(token: string, extractData: boolean): Promise<void>;
18
+
19
+ /**
20
+ * Start an onboarding session with the given folder uid.
21
+ *
22
+ * @param folderUid - The folder that will be used to run the session.
23
+ * @param theme - A theme to customize SDK colors.
24
+ * @returns Void on success.
25
+ * @throws An error of type {@link IDCheckioError} if the session fails.
26
+ */
27
+ export function startOnboarding(folderUid: string, theme: IDCheckTheme | null): Promise<void>;
28
+
29
+ /**
30
+ * Start the capture of one document with the given parameters.
31
+ * s
32
+ * @param parameters - The parameters to configure the capture session.
33
+ * @param onlineContext - Online context. Let it null and the first capture and send the one you receive on result to chain to capture.
34
+ * @param theme - A theme to customize SDK colors.
35
+ * @returns {@link IDCheckioResult}
36
+ * @throws An error of type {@link IDCheckioError} if the capture fails.
37
+ */
38
+ export function start(parameters: IDCheckioParams, onlineContext: IDCheckioOnlineContext | null, theme: IDCheckTheme | null): Promise<IDCheckioResult>;
39
+
40
+ /**
41
+ * Used to store all the parameters used for a capture.
42
+ */
43
+ export class IDCheckioParams {}
44
+
45
+ /**
46
+ * Simplify the creation of an {@link IDCheckioParams} with the Buidler pattern.
47
+ */
48
+ export class IDCheckioParamsBuilder {
49
+ setDocType(docType: DocumentType): this;
50
+ setOrientation(orientation: IDCheckioOrientation): this;
51
+ setConfirmationType(confirmationType: ConfirmationType): this;
52
+ setUseHd(useHd: boolean): this;
53
+ setIntegrityCheck(integrityCheck: IntegrityCheck): this;
54
+ setCaptureMode(captureMode: CaptureMode): this;
55
+ setSideOneExtraction(sideOneExtraction: Extraction): this;
56
+ setSideTwoExtraction(sideTwoExtraction: Extraction): this;
57
+ setLanguage(language: Language): this;
58
+ setManualButtonTimer(manualButtonTimer: number): this;
59
+ setAdjustCrop(adjustCrop: boolean): this;
60
+ setMaxPictureFilesize(maxPictureFilesize: FileSize): this;
61
+ setToken(token: string): this;
62
+ setConfirmAbort(confirmAbort: boolean): this;
63
+ setOnlineConfig(onlineConfig: OnlineConfig): this;
64
+ setOverrideWordings(overrideWordings: Map<string, string>): this;
65
+ build(): IDCheckioParams;
66
+ }
67
+
68
+ export class Extraction {
69
+ public codeline: Codeline;
70
+ public faceDetection: FaceDetection;
71
+ constructor(codeline: Codeline, faceDetection: FaceDetection);
72
+ }
73
+
74
+ export class IntegrityCheck {
75
+ public readEmrtd: boolean;
76
+ public docLiveness: boolean;
77
+ constructor({
78
+ readEmrtd = false,
79
+ docLiveness = false
80
+ }: {
81
+ readEmrtd?: boolean,
82
+ docLiveness?: boolean
83
+ })
84
+ }
85
+
86
+ export class OnlineConfig {
87
+ public isReferenceDocument?: boolean | null;
88
+ public folderUid?: string | null;
89
+ public biometricConsent?: boolean | null;
90
+ public enableManualAnalysis?: boolean | null;
91
+ public cisType?: CISType | null;
92
+ constructor({
93
+ isReferenceDocument = null,
94
+ folderUid = null,
95
+ biometricConsent = null,
96
+ enableManualAnalysis = null,
97
+ cisType = null
98
+ }: {
99
+ isReferenceDocument?: boolean | null,
100
+ folderUid?: string | null,
101
+ biometricConsent?: boolean | null,
102
+ enableManualAnalysis?: boolean | null,
103
+ cisType?: CISType | null
104
+ })
105
+ }
106
+
107
+ export class IDCheckTheme {
108
+ public primaryColor?: string | null;
109
+ public foregroundColor?: string | null;
110
+ public backgroundColor?: string | null;
111
+ public borderColor?: string | null;
112
+ public textColor?: string | null;
113
+ public titleColor?: string | null;
114
+ constructor({
115
+ primaryColor = null,
116
+ foregroundColor = null,
117
+ backgroundColor = null,
118
+ borderColor = null,
119
+ textColor = null,
120
+ titleColor = null
121
+ }: {
122
+ primaryColor?: string | null,
123
+ foregroundColor?: string | null,
124
+ backgroundColor?: string | null,
125
+ borderColor?: string | null,
126
+ textColor?: string | null,
127
+ titleColor?: string | null
128
+ })
129
+ }
130
+
131
+ export enum DocumentType {
132
+ DISABLED = 'DISABLED',
133
+ ID = 'ID',
134
+ LIVENESS = 'LIVENESS',
135
+ A4 = 'A4',
136
+ FRENCH_HEALTH_CARD = 'FRENCH_HEALTH_CARD',
137
+ BANK_CHECK = 'BANK_CHECK',
138
+ OLD_DL_FR = 'OLD_DL_FR',
139
+ PHOTO = 'PHOTO',
140
+ VEHICLE_REGISTRATION = 'VEHICLE_REGISTRATION',
141
+ SELFIE = 'SELFIE'
142
+ }
143
+
144
+ export enum CaptureMode {
145
+ CAMERA = 'CAMERA',
146
+ PROMPT = 'PROMPT',
147
+ UPLOAD = 'UPLOAD'
148
+ }
149
+
150
+ export enum IDCheckioOrientation {
151
+ PORTRAIT = 'PORTRAIT',
152
+ LANDSCAPE = 'LANDSCAPE'
153
+ }
154
+
155
+ export enum ConfirmationType {
156
+ DATA_OR_PICTURE = 'DATA_OR_PICTURE',
157
+ CROPPED_PICTURE = 'CROPPED_PICTURE',
158
+ NONE = 'NONE'
159
+ }
160
+
161
+ export enum Codeline {
162
+ DISABLED = 'DISABLED',
163
+ ANY = 'ANY',
164
+ DECODED = 'DECODED',
165
+ VALID = 'VALID',
166
+ REJECT = 'REJECT'
167
+ }
168
+
169
+ export enum FaceDetection {
170
+ ENABLED = 'ENABLED',
171
+ DISABLED = 'DISABLED'
172
+ }
173
+
174
+ export enum Language {
175
+ fr = 'fr',
176
+ en = 'en',
177
+ pl = 'pl',
178
+ es = 'es',
179
+ ro = 'ro',
180
+ cs = 'cs',
181
+ pt = 'pt',
182
+ de = 'de',
183
+ it = 'it',
184
+ nl = 'nl',
185
+ ar = 'ar',
186
+ uk = "uk",
187
+ sk = "sk",
188
+ hu = "hu",
189
+ sq = "sq",
190
+ sr = "sr"
191
+ }
192
+
193
+ export enum FileSize {
194
+ ONE_MEGA_BYTE = 'ONE_MEGA_BYTE',
195
+ TWO_MEGA_BYTES = 'TWO_MEGA_BYTES',
196
+ THREE_MEGA_BYTES = 'THREE_MEGA_BYTES',
197
+ FOUR_MEGA_BYTES = 'FOUR_MEGA_BYTES'
198
+ }
199
+
200
+ export enum CISType {
201
+ ID = 'ID',
202
+ IBAN = 'IBAN',
203
+ CHEQUE = 'CHEQUE',
204
+ TAX_SHEET = 'TAX_SHEET',
205
+ PAY_SLIP = 'PAY_SLIP',
206
+ ADDRESS_PROOF = 'ADDRESS_PROOF',
207
+ CREDIT_CARD = 'CREDIT_CARD',
208
+ PORTRAIT = 'PORTRAIT',
209
+ LEGAL_ENTITY = 'LEGAL_ENTITY',
210
+ CAR_REGISTRATION = 'CAR_REGISTRATION',
211
+ LIVENESS = 'LIVENESS',
212
+ OTHER = 'OTHER'
213
+ }
214
+
215
+ /**
216
+ * Responses typing
217
+ */
218
+ export type IDCheckioOnlineContext = {
219
+ folderUid: string;
220
+ documentUid: string;
221
+ taskUid: string | undefined;
222
+ referenceDocUid: string | undefined;
223
+ referenceTaskUid: string | undefined;
224
+ livenessStatus: IDCheckioLivenessStatus | undefined;
225
+ };
226
+
227
+ export type IDCheckioResult = {
228
+ onlineContext: IDCheckioOnlineContext;
229
+ };
230
+
231
+ export type IDCheckioError = {
232
+ cause: IDCheckioErrorCause;
233
+ details: string;
234
+ subCause?: IDCheckioSubCause | undefined;
235
+ message?: string | undefined;
236
+ };
237
+
238
+ export type IDCheckioLivenessStatus =
239
+ | 'AVAILABLE'
240
+ | 'NO_FACE_ON_DOCUMENT'
241
+ | 'UNAVAILABLE';
242
+
243
+ export type IDCheckioErrorCause =
244
+ | 'CUSTOMER_ERROR'
245
+ | 'NETWORK_ERROR'
246
+ | 'USER_ERROR'
247
+ | 'INTERNAL_ERROR'
248
+ | 'DEVICE_ERROR'
249
+ | 'DOCUMENT_ERROR';
250
+
251
+ export type IDCheckioSubCause =
252
+ | 'MISSING_PERMISSIONS'
253
+ | 'CANCELLED_BY_USER'
254
+ | 'MODEL_REJECTED'
255
+ | 'ANALYSIS_EXPIRED_DOC'
256
+ | 'PVID_NOT_ELIGIBLE'
257
+ | 'UNIDENTIFIED'
258
+ | 'DOC_NOT_USABLE_FACEREC'
259
+ | 'UNSUPPORTED_FILE_EXTENSION';
package/src/index.js ADDED
@@ -0,0 +1,270 @@
1
+ import { NativeModules, Platform } from 'react-native';
2
+
3
+ const LINKING_ERROR =
4
+ `The package '@idnow/react-idcheckio' doesn't seem to be linked. Make sure: \n\n` +
5
+ Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
6
+ '- You rebuilt the app after installing the package\n' +
7
+ '- You are not using Expo Go\n';
8
+
9
+ const IdnowReactIdcheckio = NativeModules.IdnowReactIdcheckio
10
+ ? NativeModules.IdnowReactIdcheckio
11
+ : new Proxy(
12
+ {},
13
+ {
14
+ get() {
15
+ throw new Error(LINKING_ERROR);
16
+ },
17
+ }
18
+ );
19
+
20
+ export function preload(extractData) {
21
+ IdnowReactIdcheckio.preload(extractData);
22
+ };
23
+
24
+
25
+ export function activate(token, extractData) {
26
+ return IdnowReactIdcheckio.activate(token, extractData);
27
+ };
28
+
29
+
30
+ export function startOnboarding(folderUid, theme) {
31
+ return IdnowReactIdcheckio.startOnboarding(folderUid, theme);
32
+ };
33
+
34
+
35
+ export function start(parameters, onlineContext, theme) {
36
+ return IdnowReactIdcheckio.start(parameters, onlineContext, theme)
37
+ .then(function(resultString) {
38
+ return JSON.parse(resultString);
39
+ })
40
+ .catch(function(error) {
41
+ throw error;
42
+ });
43
+ }
44
+
45
+ export class IDCheckioParams {
46
+ constructor({docType, orientation, confirmationType, useHd, integrityCheck, captureMode, sideOneExtraction, sideTwoExtraction,
47
+ language, manualButtonTimer, adjustCrop, maxPictureFilesize, token, confirmAbort, onlineConfig, overrideWordings}={}){
48
+ this.docType = docType
49
+ this.orientation = orientation
50
+ this.confirmationType = confirmationType
51
+ this.useHd = useHd
52
+ this.integrityCheck = integrityCheck
53
+ this.captureMode = captureMode
54
+ this.sideOneExtraction = sideOneExtraction
55
+ this.sideTwoExtraction = sideTwoExtraction
56
+ this.language = language
57
+ this.manualButtonTimer = manualButtonTimer
58
+ this.adjustCrop = adjustCrop
59
+ this.maxPictureFilesize = maxPictureFilesize
60
+ this.token = token
61
+ this.confirmAbort = confirmAbort
62
+ this.onlineConfig = onlineConfig
63
+ this.overrideWordings = overrideWordings
64
+ }
65
+ }
66
+
67
+ export class IDCheckioParamsBuilder {
68
+ setDocType(docType) {
69
+ this.docType = docType;
70
+ return this;
71
+ }
72
+ setOrientation(orientation) {
73
+ this.orientation = orientation;
74
+ return this;
75
+ }
76
+ setConfirmationType(confirmationType) {
77
+ this.confirmationType = confirmationType;
78
+ return this;
79
+ }
80
+ setUseHd(useHd) {
81
+ this.useHd = useHd;
82
+ return this;
83
+ }
84
+ setIntegrityCheck(integrityCheck) {
85
+ this.integrityCheck = integrityCheck;
86
+ return this;
87
+ }
88
+ setCaptureMode(captureMode) {
89
+ this.captureMode = captureMode;
90
+ return this;
91
+ }
92
+ setSideOneExtraction(sideOneExtraction) {
93
+ this.sideOneExtraction = sideOneExtraction;
94
+ return this;
95
+ }
96
+ setSideTwoExtraction(sideTwoExtraction) {
97
+ this.sideTwoExtraction = sideTwoExtraction;
98
+ return this;
99
+ }
100
+ setLanguage(language) {
101
+ this.language = language;
102
+ return this;
103
+ }
104
+ setManualButtonTimer(manualButtonTimer) {
105
+ this.manualButtonTimer = manualButtonTimer;
106
+ return this;
107
+ }
108
+ setAdjustCrop(adjustCrop) {
109
+ this.adjustCrop = adjustCrop;
110
+ return this;
111
+ }
112
+ setMaxPictureFilesize(maxPictureFilesize) {
113
+ this.maxPictureFilesize = maxPictureFilesize;
114
+ return this;
115
+ }
116
+ setToken(token) {
117
+ this.token = token;
118
+ return this;
119
+ }
120
+ setConfirmAbort(confirmAbort) {
121
+ this.confirmAbort = confirmAbort;
122
+ return this;
123
+ }
124
+ setOnlineConfig(onlineConfig) {
125
+ this.onlineConfig = onlineConfig;
126
+ return this;
127
+ }
128
+ setOverrideWordings(overrideWordings) {
129
+ this.overrideWordings = overrideWordings
130
+ return this;
131
+ }
132
+ build() {
133
+ let params = new IDCheckioParams(this);
134
+ params.overrideWordings = typeof this.overrideWordings !== 'undefined' ? Object.fromEntries(this.overrideWordings) : undefined;
135
+ return params;
136
+ }
137
+ }
138
+
139
+ export class Extraction {
140
+ constructor(codeline, faceDetection) {
141
+ this.codeline = codeline;
142
+ this.faceDetection = faceDetection;
143
+ }
144
+ }
145
+
146
+ export class IntegrityCheck {
147
+ constructor({ readEmrtd = false, docLiveness = false } = {}) {
148
+ this.readEmrtd = readEmrtd;
149
+ this.docLiveness = docLiveness;
150
+ }
151
+ }
152
+
153
+ export class OnlineConfig {
154
+ constructor({
155
+ isReferenceDocument = null,
156
+ folderUid = null,
157
+ biometricConsent = null,
158
+ enableManualAnalysis = null,
159
+ cisType = null,
160
+ } = {}) {
161
+ this.isReferenceDocument = isReferenceDocument;
162
+ this.folderUid = folderUid;
163
+ this.biometricConsent = biometricConsent;
164
+ this.enableManualAnalysis = enableManualAnalysis;
165
+ this.cisType = cisType;
166
+ }
167
+ }
168
+
169
+ export class IDCheckTheme {
170
+ constructor({
171
+ primaryColor = null,
172
+ foregroundColor = null,
173
+ backgroundColor = null,
174
+ borderColor = null,
175
+ textColor = null,
176
+ titleColor = null,
177
+ }={}){
178
+ this.primaryColor = primaryColor;
179
+ this.foregroundColor = foregroundColor;
180
+ this.backgroundColor = backgroundColor;
181
+ this.borderColor = borderColor;
182
+ this.textColor = textColor;
183
+ this.titleColor = titleColor;
184
+ }
185
+ }
186
+
187
+ export const DocumentType = {
188
+ DISABLED: 'DISABLED',
189
+ ID: 'ID',
190
+ LIVENESS: 'LIVENESS',
191
+ A4: 'A4',
192
+ FRENCH_HEALTH_CARD: 'FRENCH_HEALTH_CARD',
193
+ BANK_CHECK: 'BANK_CHECK',
194
+ OLD_DL_FR: 'OLD_DL_FR',
195
+ PHOTO: 'PHOTO',
196
+ VEHICLE_REGISTRATION: 'VEHICLE_REGISTRATION',
197
+ SELFIE: 'SELFIE'
198
+ };
199
+
200
+ export const CaptureMode = {
201
+ CAMERA: 'CAMERA',
202
+ PROMPT: 'PROMPT',
203
+ UPLOAD: 'UPLOAD'
204
+ };
205
+
206
+ export const IDCheckioOrientation = {
207
+ PORTRAIT: 'PORTRAIT',
208
+ LANDSCAPE: 'LANDSCAPE'
209
+ };
210
+
211
+ export const ConfirmationType = {
212
+ DATA_OR_PICTURE: 'DATA_OR_PICTURE',
213
+ CROPPED_PICTURE: 'CROPPED_PICTURE',
214
+ NONE: 'NONE'
215
+ };
216
+
217
+ export const Codeline = {
218
+ DISABLED: 'DISABLED',
219
+ ANY: 'ANY',
220
+ DECODED: 'DECODED',
221
+ VALID: 'VALID',
222
+ REJECT: 'REJECT'
223
+ };
224
+
225
+ export const FaceDetection = {
226
+ ENABLED: 'ENABLED',
227
+ DISABLED: 'DISABLED'
228
+ };
229
+
230
+ export const Language = {
231
+ fr: 'fr',
232
+ en: 'en',
233
+ pl: 'pl',
234
+ es: 'es',
235
+ ro: 'ro',
236
+ cs: 'cs',
237
+ pt: 'pt',
238
+ de: 'de',
239
+ it: 'it',
240
+ nl: 'nl',
241
+ ar: 'ar',
242
+ uk: 'uk',
243
+ sk: 'sk',
244
+ hu: 'hu',
245
+ sq: 'sq',
246
+ sr: 'sr'
247
+ };
248
+
249
+ export const FileSize = {
250
+ ONE_MEGA_BYTE: 'ONE_MEGA_BYTE',
251
+ TWO_MEGA_BYTES: 'TWO_MEGA_BYTES',
252
+ THREE_MEGA_BYTES: 'THREE_MEGA_BYTES',
253
+ FOUR_MEGA_BYTES: 'FOUR_MEGA_BYTES'
254
+ };
255
+
256
+ export const CISType = {
257
+ ID: 'ID',
258
+ IBAN: 'IBAN',
259
+ CHEQUE: 'CHEQUE',
260
+ TAX_SHEET: 'TAX_SHEET',
261
+ PAY_SLIP: 'PAY_SLIP',
262
+ ADDRESS_PROOF: 'ADDRESS_PROOF',
263
+ CREDIT_CARD: 'CREDIT_CARD',
264
+ PORTRAIT: 'PORTRAIT',
265
+ LEGAL_ENTITY: 'LEGAL_ENTITY',
266
+ CAR_REGISTRATION: 'CAR_REGISTRATION',
267
+ LIVENESS: 'LIVENESS',
268
+ OTHER: 'OTHER'
269
+ };
270
+
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "paths": {
4
+ "@/*": ["./src/*"]
5
+ },
6
+ "strict": true,
7
+ },
8
+ "include": [
9
+ "**/*.ts",
10
+ "**/*.tsx",
11
+ ]
12
+ }
@@ -1,15 +0,0 @@
1
- Pod::Spec.new do |s|
2
- s.name = "ReactIdcheckio"
3
- s.version = "7.2.2"
4
- s.summary = "React Native plugin for IDCheck.io Mobile SDK for iOS"
5
- s.homepage = "https://www.github.com//react-idcheckio"
6
- s.license = { :type => "ISC" }
7
- s.authors = { "" => "" }
8
- s.platform = :ios, "10.0"
9
- s.source = { :path => "." }
10
- s.source_files = "ios", "ios/**/*.{h,m,swift}"
11
- s.swift_version = '5.7'
12
-
13
- s.dependency 'React'
14
- s.dependency 'IDCheckIOSDK', '~> 7.2.2'
15
- end
package/android/.project DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>android_</name>
4
- <comment>Project android_ created by Buildship.</comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- </buildSpec>
14
- <natures>
15
- <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
16
- </natures>
17
- </projectDescription>
@@ -1,13 +0,0 @@
1
- arguments=
2
- auto.sync=false
3
- build.scans.enabled=false
4
- connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(5.6.1))
5
- connection.project.dir=
6
- eclipse.preferences.version=1
7
- gradle.user.home=
8
- java.home=
9
- jvm.arguments=
10
- offline.mode=false
11
- override.workspace.settings=true
12
- show.console.view=true
13
- show.executions.view=true