Skip to content

Commit 7d0817a

Browse files
Update React to 17.0.1, react-native to 0.64.X and IDCheck.io SDK to 6.0.0
1 parent d01fce5 commit 7d0817a

File tree

121 files changed

+3197
-13819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3197
-13819
lines changed
File renamed without changes.

ReactIdcheckioClient/.flowconfig

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[ignore]
2+
; We fork some components by platform
3+
.*/*[.]android.js
4+
5+
; Ignore "BUCK" generated dirs
6+
<PROJECT_ROOT>/\.buckd/
7+
8+
; Ignore polyfills
9+
node_modules/react-native/Libraries/polyfills/.*
10+
11+
; Flow doesn't support platforms
12+
.*/Libraries/Utilities/LoadingView.js
13+
14+
[untyped]
15+
.*/node_modules/@react-native-community/cli/.*/.*
16+
17+
[include]
18+
19+
[libs]
20+
node_modules/react-native/interface.js
21+
node_modules/react-native/flow/
22+
23+
[options]
24+
emoji=true
25+
26+
esproposal.optional_chaining=enable
27+
esproposal.nullish_coalescing=enable
28+
29+
exact_by_default=true
30+
31+
module.file_ext=.js
32+
module.file_ext=.json
33+
module.file_ext=.ios.js
34+
35+
munge_underscores=true
36+
37+
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
38+
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
39+
40+
suppress_type=$FlowIssue
41+
suppress_type=$FlowFixMe
42+
suppress_type=$FlowFixMeProps
43+
suppress_type=$FlowFixMeState
44+
45+
[lints]
46+
sketchy-null-number=warn
47+
sketchy-null-mixed=warn
48+
sketchy-number=warn
49+
untyped-type-import=warn
50+
nonstrict-import=warn
51+
deprecated-type=warn
52+
unsafe-getters-setters=warn
53+
unnecessary-invariant=warn
54+
signature-verification-failure=warn
55+
56+
[strict]
57+
deprecated-type
58+
nonstrict-import
59+
sketchy-null
60+
unclear-type
61+
unsafe-getters-setters
62+
untyped-import
63+
untyped-type-import
64+
65+
[version]
66+
^0.137.0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Windows files should use crlf line endings
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
*.bat text eol=crlf

ReactSmartsdkClient/.gitignore renamed to ReactIdcheckioClient/.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23-
project.xcworkspace
2423

2524
# Android/IntelliJ
2625
#
@@ -40,6 +39,7 @@ yarn-error.log
4039
buck-out/
4140
\.buckd/
4241
*.keystore
42+
!debug.keystore
4343

4444
# fastlane
4545
#
@@ -54,3 +54,6 @@ buck-out/
5454

5555
# Bundle artifact
5656
*.jsbundle
57+
58+
# CocoaPods
59+
/ios/Pods/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
bracketSpacing: false,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
arrowParens: 'avoid',
7+
};
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
import { CheckType, CISType, Codeline, ConfirmationType, DocumentType, Extraction, FaceDetection, FeedbackLevel, FileSize, IDCheckioOrientation, IDCheckioParamsBuilder, IntegrityCheck, Language, OnlineConfig, ScanBothSides } from "react-idcheckio"
2+
3+
export const paramsID = new IDCheckioParamsBuilder()
4+
.setDocType(DocumentType.ID)
5+
.setOrientation(IDCheckioOrientation.PORTRAIT)
6+
.setIntegrityCheck(new IntegrityCheck(true))
7+
.setUseHd(false)
8+
.setConfirmationType(ConfirmationType.DATA_OR_PICTURE)
9+
.setScanBothSides(ScanBothSides.ENABLED)
10+
.setSideOneExtraction(new Extraction(Codeline.VALID, FaceDetection.ENABLED))
11+
.setSideTwoExtraction(new Extraction(Codeline.REJECT, FaceDetection.DISABLED))
12+
.setLanguage(Language.fr)
13+
.setManualButtonTimer(10)
14+
.setMaxPictureFilesize(FileSize.TWO_MEGA_BYTES)
15+
.setFeedbackLevel(FeedbackLevel.ALL)
16+
.setAdjustCrop(false)
17+
.setConfirmAbort(false)
18+
.setOnlineConfig(new OnlineConfig({ checkType: CheckType.CHECK_FAST, isReferenceDocument: true }))
19+
.build()
20+
21+
export const paramsIDAnalyze = new IDCheckioParamsBuilder()
22+
.setDocType(DocumentType.ID)
23+
.setOrientation(IDCheckioOrientation.PORTRAIT)
24+
.setUseHd(false)
25+
.setConfirmationType(ConfirmationType.DATA_OR_PICTURE)
26+
.setScanBothSides(ScanBothSides.ENABLED)
27+
.setSideOneExtraction(new Extraction(Codeline.ANY, FaceDetection.ENABLED))
28+
.setSideTwoExtraction(new Extraction(Codeline.ANY, FaceDetection.ENABLED))
29+
.setMaxPictureFilesize(FileSize.TWO_MEGA_BYTES)
30+
.build()
31+
32+
export const paramsLiveness = new IDCheckioParamsBuilder()
33+
.setDocType(DocumentType.LIVENESS)
34+
.setOrientation(IDCheckioOrientation.PORTRAIT)
35+
.setConfirmAbort(true)
36+
.build()
37+
38+
export const paramsFrenchHealthCard = new IDCheckioParamsBuilder()
39+
.setDocType(DocumentType.FRENCH_HEALTH_CARD)
40+
.setConfirmationType(ConfirmationType.DATA_OR_PICTURE)
41+
.setOrientation(IDCheckioOrientation.PORTRAIT)
42+
.build()
43+
44+
export const paramsSelfie = new IDCheckioParamsBuilder()
45+
.setDocType(DocumentType.SELFIE)
46+
.setConfirmationType(ConfirmationType.DATA_OR_PICTURE)
47+
.setOrientation(IDCheckioOrientation.PORTRAIT)
48+
.build()
49+
50+
export const paramsAddressProof = new IDCheckioParamsBuilder()
51+
.setDocType(DocumentType.A4)
52+
.setConfirmationType(ConfirmationType.DATA_OR_PICTURE)
53+
.setOrientation(IDCheckioOrientation.PORTRAIT)
54+
.setUseHd(true)
55+
.setOnlineConfig(new OnlineConfig({ cisType: CISType.ADDRESS_PROOF }))
56+
.build()
57+
58+
export const paramsVehicleRegistration = new IDCheckioParamsBuilder()
59+
.setDocType(DocumentType.VEHICLE_REGISTRATION)
60+
.setConfirmationType(ConfirmationType.DATA_OR_PICTURE)
61+
.setOrientation(IDCheckioOrientation.PORTRAIT)
62+
.setSideOneExtraction(new Extraction(Codeline.VALID, FaceDetection.DISABLED))
63+
.build()
64+
65+
export const paramsIban = new IDCheckioParamsBuilder()
66+
.setDocType(DocumentType.PHOTO)
67+
.setConfirmationType(ConfirmationType.DATA_OR_PICTURE)
68+
.setOrientation(IDCheckioOrientation.PORTRAIT)
69+
.setUseHd(true)
70+
.setOnlineConfig(new OnlineConfig({ cisType: CISType.IBAN }))
71+
.build()
72+
73+
export const paramsAttachment = new IDCheckioParamsBuilder()
74+
.setDocType(DocumentType.PHOTO)
75+
.setConfirmationType(ConfirmationType.DATA_OR_PICTURE)
76+
.setOrientation(IDCheckioOrientation.PORTRAIT)
77+
.setUseHd(true)
78+
.setAdjustCrop(true)
79+
.setOnlineConfig(new OnlineConfig({ cisType: CISType.OTHER }))
80+
.build()
81+
82+
export class ParamsListItem {
83+
constructor({name, params, isOnline, isUpload = false}={}){
84+
this.name = name
85+
this.params = params
86+
this.isOnline = isOnline
87+
this.isUpload = isUpload
88+
}
89+
}
90+
91+
export const paramsList = [
92+
new ParamsListItem({name: "ID Offline", params: paramsID, isOnline: false}),
93+
new ParamsListItem({name: "ID Online", params: paramsID, isOnline: true}),
94+
new ParamsListItem({name: "Liveness Online", params: paramsLiveness, isOnline: true}),
95+
new ParamsListItem({name: "French health card Online", params: paramsFrenchHealthCard, isOnline: true}),
96+
new ParamsListItem({name: "Selfie Online", params: paramsSelfie, isOnline: true}),
97+
new ParamsListItem({name: "Address proof Online", params: paramsAddressProof, isOnline: true}),
98+
new ParamsListItem({name: "Vehicle registration Online", params: paramsVehicleRegistration, isOnline: true}),
99+
new ParamsListItem({name: "Iban Online", params: paramsIban, isOnline: true}),
100+
new ParamsListItem({name: "ID Analyze", params: paramsIDAnalyze, isOnline: true, isUpload: true}),
101+
new ParamsListItem({name: "Attachment", params: paramsAttachment, isOnline: true})
102+
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
'use strict';
22
import { NativeModules } from 'react-native';
3-
module.exports = NativeModules.SmartsdkModule;
3+
module.exports = NativeModules.IdcheckioModule;

0 commit comments

Comments
 (0)