@soyio/soyio-rn-sdk-native-disclosure 0.0.0-bootstrap.0 → 6.0.1
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/README.md +105 -2
- package/android/build.gradle +57 -0
- package/android/libs/facetec-sdk-9.7.114.aar +0 -0
- package/android/src/main/AndroidManifest.xml +7 -0
- package/android/src/main/java/com/soyio/soyiorndk/AndroidFacetecSdkModule.kt +224 -0
- package/android/src/main/java/com/soyio/soyiorndk/AndroidFacetecSdkPackage.kt +16 -0
- package/android/src/main/java/com/soyio/soyiorndk/ApiDate.kt +5 -0
- package/android/src/main/java/com/soyio/soyiorndk/BaseFaceTecProcessor.kt +75 -0
- package/android/src/main/java/com/soyio/soyiorndk/FaceTecRequestService.kt +115 -0
- package/android/src/main/java/com/soyio/soyiorndk/FacetecConfig.kt +311 -0
- package/android/src/main/java/com/soyio/soyiorndk/SoyioIdOnlyProcessor.kt +81 -0
- package/android/src/main/java/com/soyio/soyiorndk/SoyioValidationProcessor.kt +136 -0
- package/android/src/main/res/drawable-nodpi/soyio_facetec_close.png +0 -0
- package/android/src/main/res/drawable-nodpi/soyio_facetec_id_front.png +0 -0
- package/android/src/main/res/values/strings.xml +134 -0
- package/assets/fonts/RobotoFlex.ttf +0 -0
- package/assets/images/SoyioRnSdk.xcassets/facetec-close.imageset/Contents.json +23 -0
- package/assets/images/SoyioRnSdk.xcassets/facetec-close.imageset/facetec-close@1x.png +0 -0
- package/assets/images/SoyioRnSdk.xcassets/facetec-close.imageset/facetec-close@2x.png +0 -0
- package/assets/images/SoyioRnSdk.xcassets/facetec-close.imageset/facetec-close@3x.png +0 -0
- package/assets/images/SoyioRnSdk.xcassets/facetec-id-front.imageset/Contents.json +23 -0
- package/assets/images/SoyioRnSdk.xcassets/facetec-id-front.imageset/facetec-id-front@1x.png +0 -0
- package/assets/images/SoyioRnSdk.xcassets/facetec-id-front.imageset/facetec-id-front@2x.png +0 -0
- package/assets/images/SoyioRnSdk.xcassets/facetec-id-front.imageset/facetec-id-front@3x.png +0 -0
- package/index.js +1 -3
- package/ios/ApiDate.swift +5 -0
- package/ios/FacetecConfig.swift +217 -0
- package/ios/FacetecStrings.swift +139 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/Info.plist +44 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Assets.car +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/FaceTecSDK +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/GenericGuidanceContentLayout.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecPublicApi.h +1935 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecPublicStringKeys.h +109 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecSDK.h +16 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/PrivacyInfo.xcprivacy +29 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ReadyScreenGuidanceContentLayout.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/RetryScreenGuidanceContentLayout.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/SharedGuidanceLayout.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/9Uo-4b-JiE-view-Ae0-rb-UqS.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/CJ6-MX-bJp-view-8JL-Rc-0g1.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceScanViewController.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecAdditionalReviewViewController.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecIDFeedbackViewController.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecOCRConfirmationViewController.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/IDCaptureViewController.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/IDSelectionViewController.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/Info.plist +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/Pyw-6G-JSY-view-Zue-Eo-Q2U.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/QWA-8Y-vUM-view-wJB-Z5-eD2.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/alz-Ia-X3d-view-IKu-EI-Hug.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/l2Q-cc-kD8-view-UUy-6c-meu.nib +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/_CodeSignature/CodeResources +729 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/af.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ar.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/attributions.txt +462 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/de.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/el.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/en.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/es.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/fr.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/kk.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/nb.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/pt-BR.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ru.lproj/FaceTec.strings +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/strip-unused-architectures-from-target.sh +62 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/FaceTecSDK +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecPublicApi.h +1935 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecPublicStringKeys.h +109 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecSDK.h +16 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Info.plist +0 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Modules/module.modulemap +6 -0
- package/ios/Frameworks/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/_CodeSignature/CodeResources +146 -0
- package/ios/IOSFacetecSdk.m +22 -0
- package/ios/IOSFacetecSdk.swift +221 -0
- package/ios/ProcessorProtocol.swift +6 -0
- package/ios/SoyioIDOnlyProcessor.swift +170 -0
- package/ios/SoyioPhotoIDMatchProcessor.swift +264 -0
- package/package.json +38 -6
- package/react-native.config.js +14 -0
- package/scripts/prepare-facetec-xcframework.sh +38 -0
- package/soyio_rn_sdk_native_disclosure.podspec +52 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"filename" : "facetec-close@1x.png",
|
|
5
|
+
"idiom" : "universal",
|
|
6
|
+
"scale" : "1x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"filename" : "facetec-close@2x.png",
|
|
10
|
+
"idiom" : "universal",
|
|
11
|
+
"scale" : "2x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"filename" : "facetec-close@3x.png",
|
|
15
|
+
"idiom" : "universal",
|
|
16
|
+
"scale" : "3x"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"info" : {
|
|
20
|
+
"author" : "xcode",
|
|
21
|
+
"version" : 1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"filename" : "facetec-id-front@1x.png",
|
|
5
|
+
"idiom" : "universal",
|
|
6
|
+
"scale" : "1x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"filename" : "facetec-id-front@2x.png",
|
|
10
|
+
"idiom" : "universal",
|
|
11
|
+
"scale" : "2x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"filename" : "facetec-id-front@3x.png",
|
|
15
|
+
"idiom" : "universal",
|
|
16
|
+
"scale" : "3x"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"info" : {
|
|
20
|
+
"author" : "xcode",
|
|
21
|
+
"version" : 1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import UIKit
|
|
2
|
+
import Foundation
|
|
3
|
+
import FaceTecSDK
|
|
4
|
+
|
|
5
|
+
class FacetecConfig {
|
|
6
|
+
|
|
7
|
+
private static let resourceBundle: Bundle = {
|
|
8
|
+
let frameworkBundle = Bundle(for: FacetecConfig.self)
|
|
9
|
+
guard let resourceBundleURL = frameworkBundle.url(forResource: "SoyioRnSdk", withExtension: "bundle"),
|
|
10
|
+
let resourceBundle = Bundle(url: resourceBundleURL) else {
|
|
11
|
+
return frameworkBundle
|
|
12
|
+
}
|
|
13
|
+
return resourceBundle
|
|
14
|
+
}()
|
|
15
|
+
|
|
16
|
+
private static func customFont(size: CGFloat, weight: UIFont.Weight) -> UIFont {
|
|
17
|
+
let fontName = "RobotoFlex"
|
|
18
|
+
|
|
19
|
+
if let customFont = UIFont(name: fontName, size: size) {
|
|
20
|
+
let descriptor = customFont.fontDescriptor.addingAttributes([
|
|
21
|
+
.traits: [UIFontDescriptor.TraitKey.weight: weight.rawValue]
|
|
22
|
+
])
|
|
23
|
+
return UIFont(descriptor: descriptor, size: size)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return UIFont.systemFont(ofSize: size, weight: weight)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static func apply(theme: [String: String]?) {
|
|
30
|
+
FaceTec.sdk.setDynamicStrings(FacetecStrings.spanish)
|
|
31
|
+
let customization = FacetecConfig.retrieveConfigurationWizardCustomization(withTheme: theme)
|
|
32
|
+
FaceTec.sdk.setCustomization(customization)
|
|
33
|
+
FaceTec.sdk.setLowLightCustomization(customization)
|
|
34
|
+
FaceTec.sdk.setDynamicDimmingCustomization(customization)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
public static func retrieveConfigurationWizardCustomization(withTheme theme: [String: String]?) -> FaceTecCustomization {
|
|
39
|
+
let black = UIColor(hexString: "#000000")
|
|
40
|
+
let white = UIColor(hexString: "#ffffff")
|
|
41
|
+
|
|
42
|
+
let mainColor: UIColor
|
|
43
|
+
let buttonColorHighlight: UIColor
|
|
44
|
+
let buttonColorDisabled: UIColor
|
|
45
|
+
|
|
46
|
+
if let hex = theme?["mainColor"], !hex.isEmpty {
|
|
47
|
+
mainColor = UIColor(hexString: hex)
|
|
48
|
+
} else {
|
|
49
|
+
mainColor = UIColor(hexString: "#3340CF")
|
|
50
|
+
}
|
|
51
|
+
if let hex = theme?["highlightColor"], !hex.isEmpty {
|
|
52
|
+
buttonColorHighlight = UIColor(hexString: hex)
|
|
53
|
+
} else {
|
|
54
|
+
buttonColorHighlight = UIColor(hexString: "#2A35B0")
|
|
55
|
+
}
|
|
56
|
+
if let hex = theme?["disabledColor"], !hex.isEmpty {
|
|
57
|
+
buttonColorDisabled = UIColor(hexString: hex)
|
|
58
|
+
} else {
|
|
59
|
+
buttonColorDisabled = UIColor(hexString: "#9BA3D8")
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let outerBackgroundColor = white
|
|
63
|
+
let frameColor = white
|
|
64
|
+
let borderColor = white
|
|
65
|
+
let ovalColor = mainColor
|
|
66
|
+
let dualSpinnerColor = mainColor
|
|
67
|
+
let buttonAndFeedbackBarColor = mainColor
|
|
68
|
+
let buttonAndFeedbackBarTextColor = white
|
|
69
|
+
let feedbackBackgroundLayer = CAGradientLayer.init()
|
|
70
|
+
feedbackBackgroundLayer.colors = [black.cgColor, black.cgColor]
|
|
71
|
+
feedbackBackgroundLayer.locations = [0,1]
|
|
72
|
+
feedbackBackgroundLayer.startPoint = CGPoint.init(x: 0, y: 0)
|
|
73
|
+
feedbackBackgroundLayer.endPoint = CGPoint.init(x: 1, y: 0)
|
|
74
|
+
|
|
75
|
+
// For Frame Corner Radius Customization
|
|
76
|
+
let frameCornerRadius: Int32 = 20
|
|
77
|
+
|
|
78
|
+
let cancelImage = UIImage(named: "facetec-close", in: resourceBundle, compatibleWith: nil)
|
|
79
|
+
let cancelButtonLocation: FaceTecCancelButtonLocation = .topLeft
|
|
80
|
+
|
|
81
|
+
// For Image Customization
|
|
82
|
+
let securityWatermarkImage: FaceTecSecurityWatermarkImage = .faceTec
|
|
83
|
+
|
|
84
|
+
// Set a Default Customization
|
|
85
|
+
let defaultCustomization = FaceTecCustomization()
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
// Set Frame Customization
|
|
89
|
+
defaultCustomization.frameCustomization.cornerRadius = frameCornerRadius
|
|
90
|
+
defaultCustomization.frameCustomization.backgroundColor = frameColor
|
|
91
|
+
defaultCustomization.frameCustomization.borderColor = borderColor
|
|
92
|
+
|
|
93
|
+
// Set Overlay Customization
|
|
94
|
+
defaultCustomization.overlayCustomization.showBrandingImage = false
|
|
95
|
+
defaultCustomization.overlayCustomization.backgroundColor = outerBackgroundColor
|
|
96
|
+
|
|
97
|
+
// Set Guidance Customization
|
|
98
|
+
defaultCustomization.guidanceCustomization.backgroundColors = [frameColor, frameColor]
|
|
99
|
+
defaultCustomization.guidanceCustomization.foregroundColor = black
|
|
100
|
+
defaultCustomization.guidanceCustomization.buttonBackgroundNormalColor = buttonAndFeedbackBarColor
|
|
101
|
+
defaultCustomization.guidanceCustomization.buttonBackgroundDisabledColor = buttonColorDisabled
|
|
102
|
+
defaultCustomization.guidanceCustomization.buttonBackgroundHighlightColor = buttonColorHighlight
|
|
103
|
+
defaultCustomization.guidanceCustomization.buttonCornerRadius = 8
|
|
104
|
+
defaultCustomization.guidanceCustomization.buttonTextNormalColor = buttonAndFeedbackBarTextColor
|
|
105
|
+
defaultCustomization.guidanceCustomization.buttonTextDisabledColor = buttonAndFeedbackBarTextColor
|
|
106
|
+
defaultCustomization.guidanceCustomization.buttonTextHighlightColor = buttonAndFeedbackBarTextColor
|
|
107
|
+
defaultCustomization.guidanceCustomization.retryScreenImageBorderColor = borderColor
|
|
108
|
+
defaultCustomization.guidanceCustomization.retryScreenOvalStrokeColor = borderColor
|
|
109
|
+
|
|
110
|
+
// Set Oval Customization
|
|
111
|
+
defaultCustomization.ovalCustomization.strokeColor = ovalColor
|
|
112
|
+
defaultCustomization.ovalCustomization.progressColor1 = dualSpinnerColor
|
|
113
|
+
defaultCustomization.ovalCustomization.progressColor2 = dualSpinnerColor
|
|
114
|
+
|
|
115
|
+
// Set Feedback Customization
|
|
116
|
+
defaultCustomization.feedbackCustomization.backgroundColor = feedbackBackgroundLayer
|
|
117
|
+
defaultCustomization.feedbackCustomization.textColor = buttonAndFeedbackBarTextColor
|
|
118
|
+
|
|
119
|
+
// Set Cancel Customization
|
|
120
|
+
defaultCustomization.cancelButtonCustomization.customImage = cancelImage
|
|
121
|
+
defaultCustomization.cancelButtonCustomization.location = cancelButtonLocation
|
|
122
|
+
|
|
123
|
+
// Set Result Screen Customization
|
|
124
|
+
defaultCustomization.resultScreenCustomization.backgroundColors = [frameColor, frameColor]
|
|
125
|
+
defaultCustomization.resultScreenCustomization.foregroundColor = black
|
|
126
|
+
defaultCustomization.resultScreenCustomization.activityIndicatorColor = buttonAndFeedbackBarColor
|
|
127
|
+
defaultCustomization.resultScreenCustomization.resultAnimationBackgroundColor = buttonAndFeedbackBarColor
|
|
128
|
+
defaultCustomization.resultScreenCustomization.resultAnimationForegroundColor = buttonAndFeedbackBarTextColor
|
|
129
|
+
defaultCustomization.resultScreenCustomization.uploadProgressFillColor = buttonAndFeedbackBarColor
|
|
130
|
+
|
|
131
|
+
// Set Security Watermark Customization
|
|
132
|
+
defaultCustomization.securityWatermarkImage = securityWatermarkImage
|
|
133
|
+
|
|
134
|
+
// Set ID Scan Customization
|
|
135
|
+
defaultCustomization.idScanCustomization.selectionScreenDocumentImage = UIImage(named: "facetec-id-front", in: resourceBundle, compatibleWith: nil)
|
|
136
|
+
defaultCustomization.idScanCustomization.selectionScreenForegroundColor = black // text color of instructions
|
|
137
|
+
defaultCustomization.idScanCustomization.reviewScreenBackgroundColors = [frameColor, frameColor]
|
|
138
|
+
defaultCustomization.idScanCustomization.reviewScreenForegroundColor = buttonAndFeedbackBarTextColor
|
|
139
|
+
defaultCustomization.idScanCustomization.reviewScreenTextBackgroundColor = buttonAndFeedbackBarColor
|
|
140
|
+
defaultCustomization.idScanCustomization.captureScreenForegroundColor = buttonAndFeedbackBarTextColor
|
|
141
|
+
defaultCustomization.idScanCustomization.captureScreenTextBackgroundColor = black
|
|
142
|
+
defaultCustomization.idScanCustomization.buttonBackgroundNormalColor = buttonAndFeedbackBarColor
|
|
143
|
+
defaultCustomization.idScanCustomization.buttonBackgroundDisabledColor = buttonColorDisabled
|
|
144
|
+
defaultCustomization.idScanCustomization.buttonBackgroundHighlightColor = buttonColorHighlight
|
|
145
|
+
defaultCustomization.idScanCustomization.buttonTextNormalColor = buttonAndFeedbackBarTextColor
|
|
146
|
+
defaultCustomization.idScanCustomization.buttonTextDisabledColor = buttonAndFeedbackBarTextColor
|
|
147
|
+
defaultCustomization.idScanCustomization.buttonTextHighlightColor = buttonAndFeedbackBarTextColor
|
|
148
|
+
defaultCustomization.idScanCustomization.captureScreenBackgroundColor = frameColor
|
|
149
|
+
defaultCustomization.idScanCustomization.captureFrameStrokeColor = borderColor
|
|
150
|
+
defaultCustomization.idScanCustomization.buttonCornerRadius = 8
|
|
151
|
+
|
|
152
|
+
// MARK: - Font Configuration (matching web Config.ts)
|
|
153
|
+
let regularFont = customFont(size: 16, weight: .regular)
|
|
154
|
+
let mediumFont = customFont(size: 16, weight: .medium)
|
|
155
|
+
let semiBoldFont = customFont(size: 18, weight: .semibold)
|
|
156
|
+
let boldFont = customFont(size: 18, weight: .bold)
|
|
157
|
+
|
|
158
|
+
// Guidance Customization Fonts
|
|
159
|
+
defaultCustomization.guidanceCustomization.headerFont = semiBoldFont
|
|
160
|
+
defaultCustomization.guidanceCustomization.subtextFont = regularFont
|
|
161
|
+
defaultCustomization.guidanceCustomization.buttonFont = boldFont
|
|
162
|
+
defaultCustomization.guidanceCustomization.readyScreenHeaderFont = semiBoldFont
|
|
163
|
+
defaultCustomization.guidanceCustomization.readyScreenSubtextFont = regularFont
|
|
164
|
+
defaultCustomization.guidanceCustomization.retryScreenHeaderFont = semiBoldFont
|
|
165
|
+
defaultCustomization.guidanceCustomization.retryScreenSubtextFont = regularFont
|
|
166
|
+
|
|
167
|
+
// ID Scan Customization Fonts
|
|
168
|
+
defaultCustomization.idScanCustomization.headerFont = semiBoldFont
|
|
169
|
+
defaultCustomization.idScanCustomization.subtextFont = regularFont
|
|
170
|
+
defaultCustomization.idScanCustomization.buttonFont = boldFont
|
|
171
|
+
|
|
172
|
+
// OCR Confirmation Customization Fonts
|
|
173
|
+
defaultCustomization.ocrConfirmationCustomization.mainHeaderFont = boldFont
|
|
174
|
+
defaultCustomization.ocrConfirmationCustomization.sectionHeaderFont = semiBoldFont
|
|
175
|
+
defaultCustomization.ocrConfirmationCustomization.fieldLabelFont = regularFont
|
|
176
|
+
defaultCustomization.ocrConfirmationCustomization.fieldValueFont = regularFont
|
|
177
|
+
defaultCustomization.ocrConfirmationCustomization.inputFieldFont = regularFont
|
|
178
|
+
defaultCustomization.ocrConfirmationCustomization.inputFieldPlaceholderFont = regularFont
|
|
179
|
+
defaultCustomization.ocrConfirmationCustomization.buttonFont = boldFont
|
|
180
|
+
|
|
181
|
+
// Result Screen Customization Font
|
|
182
|
+
defaultCustomization.resultScreenCustomization.messageFont = regularFont
|
|
183
|
+
|
|
184
|
+
// Feedback Customization Font
|
|
185
|
+
defaultCustomization.feedbackCustomization.textFont = mediumFont
|
|
186
|
+
|
|
187
|
+
// Initial Loading Animation Font
|
|
188
|
+
defaultCustomization.initialLoadingAnimationCustomization.messageFont = regularFont
|
|
189
|
+
|
|
190
|
+
return defaultCustomization
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
static var currentCustomization: FaceTecCustomization = retrieveConfigurationWizardCustomization(withTheme: nil)
|
|
194
|
+
|
|
195
|
+
static let wasSDKConfiguredWithConfigWizard = true
|
|
196
|
+
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
extension UIColor {
|
|
200
|
+
convenience init(hexString: String) {
|
|
201
|
+
let hex = hexString.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
|
|
202
|
+
var int = UInt64()
|
|
203
|
+
Scanner(string: hex).scanHexInt64(&int)
|
|
204
|
+
let a, r, g, b: UInt64
|
|
205
|
+
switch hex.count {
|
|
206
|
+
case 3: // RGB (12-bit)
|
|
207
|
+
(a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17)
|
|
208
|
+
case 6: // RGB (24-bit)
|
|
209
|
+
(a, r, g, b) = (255, int >> 16, int >> 8 & 0xFF, int & 0xFF)
|
|
210
|
+
case 8: // ARGB (32-bit)
|
|
211
|
+
(a, r, g, b) = (int >> 24, int >> 16 & 0xFF, int >> 8 & 0xFF, int & 0xFF)
|
|
212
|
+
default:
|
|
213
|
+
(a, r, g, b) = (255, 0, 0, 0)
|
|
214
|
+
}
|
|
215
|
+
self.init(red: CGFloat(r) / 255, green: CGFloat(g) / 255, blue: CGFloat(b) / 255, alpha: CGFloat(a) / 255)
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import FaceTecSDK
|
|
3
|
+
|
|
4
|
+
class FacetecStrings {
|
|
5
|
+
static let spanish: [String: String] = [
|
|
6
|
+
// Actions
|
|
7
|
+
"FaceTec_action_ok": "Aceptar",
|
|
8
|
+
"FaceTec_action_im_ready": "Comenzar validación",
|
|
9
|
+
"FaceTec_action_try_again": "Volver a intentarlo",
|
|
10
|
+
"FaceTec_action_continue": "Continuar",
|
|
11
|
+
"FaceTec_action_take_photo": "Tomar foto",
|
|
12
|
+
"FaceTec_action_accept_photo": "Aceptar",
|
|
13
|
+
"FaceTec_action_retake_photo": "Volver",
|
|
14
|
+
"FaceTec_action_confirm": "Confirmar información",
|
|
15
|
+
"FaceTec_action_scan_nfc": "Escanear NFC",
|
|
16
|
+
"FaceTec_action_scan_nfc_card": "Escanear chip",
|
|
17
|
+
"FaceTec_action_skip_nfc": "Omitir este paso",
|
|
18
|
+
|
|
19
|
+
// Accessibility
|
|
20
|
+
"FaceTec_accessibility_cancel_button": "Cancelar",
|
|
21
|
+
"FaceTec_accessibility_torch_button": "Interruptor de iluminación",
|
|
22
|
+
"FaceTec_accessibility_tap_guidance": "Toca dos veces cualquier parte de la pantalla para ver indicaciones sobre cómo alinear tu rostro.",
|
|
23
|
+
"FaceTec_accessibility_feedback_move_phone_away": "Tu rostro está demasiado cerca",
|
|
24
|
+
"FaceTec_accessibility_feedback_move_phone_closer": "Tu rostro está demasiado lejos",
|
|
25
|
+
"FaceTec_accessibility_feedback_face_too_far_left": "Tu rostro está demasiado a la izquierda",
|
|
26
|
+
"FaceTec_accessibility_feedback_face_too_far_right": "Tu rostro está demasiado a la derecha",
|
|
27
|
+
"FaceTec_accessibility_feedback_face_too_low": "Tu rostro está demasiado abajo",
|
|
28
|
+
"FaceTec_accessibility_feedback_face_too_high": "Tu rostro está demasiado arriba",
|
|
29
|
+
"FaceTec_accessibility_feedback_face_rotated_too_far_left": "Tu rostro gira demasiado a la izquierda",
|
|
30
|
+
"FaceTec_accessibility_feedback_face_rotated_too_far_right": "Tu rostro gira demasiado a la derecha",
|
|
31
|
+
"FaceTec_accessibility_feedback_face_pointing_too_far_left": "Tu rostro está demasiado inclinado hacia la izquierda",
|
|
32
|
+
"FaceTec_accessibility_feedback_face_pointing_too_far_right": "Tu rostro está demasiado inclinado hacia la derecha",
|
|
33
|
+
"FaceTec_accessibility_feedback_face_not_on_camera": "El rostro no se ve en la cámara o está demasiado lejos",
|
|
34
|
+
"FaceTec_accessibility_feedback_hold_device_to_eye_level": "Mantén el dispositivo a la altura de los ojos",
|
|
35
|
+
|
|
36
|
+
// Presession
|
|
37
|
+
"FaceTec_presession_frame_your_face": "Encuadra tu rostro en el óvalo",
|
|
38
|
+
"FaceTec_presession_position_face_straight_in_oval": "Mira hacia el frente",
|
|
39
|
+
"FaceTec_presession_hold_steady_3": "Mantente quieto durante: 3",
|
|
40
|
+
"FaceTec_presession_hold_steady_2": "Mantente quieto durante: 2",
|
|
41
|
+
"FaceTec_presession_hold_steady_1": "Mantente quieto durante: 1",
|
|
42
|
+
"FaceTec_presession_remove_dark_glasses": "Quítate los lentes oscuros",
|
|
43
|
+
"FaceTec_presession_neutral_expression": "Expresión neutra, sin sonreír",
|
|
44
|
+
"FaceTec_presession_conditions_too_bright": "Demasiada luz",
|
|
45
|
+
"FaceTec_presession_brighten_your_environment": "Ilumina tu entorno",
|
|
46
|
+
|
|
47
|
+
// Feedback
|
|
48
|
+
"FaceTec_feedback_center_face": "Centra tu rostro",
|
|
49
|
+
"FaceTec_feedback_face_not_found": "Encuadra tu rostro",
|
|
50
|
+
"FaceTec_feedback_move_phone_away": "Aléjate",
|
|
51
|
+
"FaceTec_feedback_move_phone_closer": "Acércate",
|
|
52
|
+
"FaceTec_feedback_move_phone_to_eye_level": "Coloca la cámara a la altura de los ojos",
|
|
53
|
+
"FaceTec_feedback_face_not_looking_straight_ahead": "Mira hacia el frente",
|
|
54
|
+
"FaceTec_feedback_face_not_upright": "Mantén la cabeza recta",
|
|
55
|
+
"FaceTec_feedback_hold_steady": "Quédate quieto",
|
|
56
|
+
"FaceTec_feedback_use_even_lighting": "Ilumina el rostro de forma más uniforme",
|
|
57
|
+
|
|
58
|
+
// Instructions
|
|
59
|
+
"FaceTec_instructions_header_ready_1": "",
|
|
60
|
+
"FaceTec_instructions_header_ready_2": "Prepárate para la selfie",
|
|
61
|
+
"FaceTec_instructions_message_ready_1": "Alinea tu rostro dentro del óvalo",
|
|
62
|
+
"FaceTec_instructions_message_ready_2": "",
|
|
63
|
+
|
|
64
|
+
// Retry
|
|
65
|
+
"FaceTec_retry_header": "Intentémoslo otra vez",
|
|
66
|
+
"FaceTec_retry_subheader_message": "Necesitamos una selfie más nítida",
|
|
67
|
+
"FaceTec_retry_your_image_label": "Tu selfie",
|
|
68
|
+
"FaceTec_retry_ideal_image_label": "Pose ideal",
|
|
69
|
+
"FaceTec_retry_instruction_message_1": "Usa una pose y iluminación ideal",
|
|
70
|
+
"FaceTec_retry_instruction_message_2": "Expresión neutra, sin sonreír",
|
|
71
|
+
"FaceTec_retry_instruction_message_3": "Demasiado borrosa, limpie la cámara",
|
|
72
|
+
|
|
73
|
+
// Camera Permission
|
|
74
|
+
"FaceTec_camera_permission_header": "Habilita la cámara",
|
|
75
|
+
"FaceTec_camera_permission_message_enroll": "Permisos de cámara deshabilitados.\nVerifique la configuración de tu sistema operativo",
|
|
76
|
+
"FaceTec_camera_permission_message_auth": "Permisos de cámara deshabilitados.\nVerifique la configuración de tu sistema operativo",
|
|
77
|
+
"FaceTec_camera_permission_enable_camera": "Habilitar la cámara",
|
|
78
|
+
"FaceTec_camera_permission_launch_settings": "Abrir la configuración",
|
|
79
|
+
|
|
80
|
+
// Initializing
|
|
81
|
+
"FaceTec_initializing_camera": "Inicializando validación de identidad...",
|
|
82
|
+
|
|
83
|
+
// ID Scan
|
|
84
|
+
"FaceTec_idscan_type_selection_header": "Ahora, prepárate para\nescanear tu cédula",
|
|
85
|
+
"FaceTec_idscan_capture_id_front_instruction_message": "Frente de tu cédula",
|
|
86
|
+
"FaceTec_idscan_capture_id_back_instruction_message": "Reverso de tu cédula",
|
|
87
|
+
"FaceTec_idscan_review_id_front_instruction_message": "Verifica que sea nítida y legible",
|
|
88
|
+
"FaceTec_idscan_review_id_back_instruction_message": "Verifica que sea nítida y legible",
|
|
89
|
+
"FaceTec_idscan_additional_review_message": "Se requiere\nuna verificación adicional",
|
|
90
|
+
"FaceTec_idscan_ocr_confirmation_main_header": "Revisar y confirmar",
|
|
91
|
+
"FaceTec_idscan_ocr_confirmation_scroll_message": "Desplácese hacia abajo",
|
|
92
|
+
"FaceTec_idscan_feedback_flip_id_to_back_message": "Sigamos con el reverso de tu cédula",
|
|
93
|
+
"FaceTec_idscan_capture_screen_focus_message": "Presiona para enfocar",
|
|
94
|
+
"FaceTec_idscan_capture_tap_to_focus_message": "Mantén tu teléfono quieto.",
|
|
95
|
+
"FaceTec_idscan_capture_hold_steady_message": "Mantente quieto",
|
|
96
|
+
|
|
97
|
+
// ID Scan - NFC
|
|
98
|
+
"FaceTec_idscan_nfc_status_disabled_message": "Habilita el NFC\nen la configuración de tu dispositivo\npara continuar",
|
|
99
|
+
"FaceTec_idscan_nfc_status_ready_message": "Prepárate para escanear\nel chip de tu pasaporte electrónico",
|
|
100
|
+
"FaceTec_idscan_nfc_card_status_ready_message": "Prepárate para escanear\nel chip de tu cédula",
|
|
101
|
+
"FaceTec_idscan_nfc_status_starting_message": "Acerca la parte de atrás de tu\nteléfono a la cédula",
|
|
102
|
+
"FaceTec_idscan_nfc_card_status_starting_message": "Acerca la parte de atrás de tu\nteléfono a la cédula",
|
|
103
|
+
"FaceTec_idscan_nfc_status_scanning_message": "Cuando sientas una vibración,\nmantenlo quieto para completar\nla validación.",
|
|
104
|
+
"FaceTec_idscan_nfc_status_weak_connection_message": "Intentemos\notro escaneo",
|
|
105
|
+
"FaceTec_idscan_nfc_status_finished_with_success_message": "Escaneo de documentos\ncompletado",
|
|
106
|
+
"FaceTec_idscan_nfc_status_finished_with_error_message": "No se puede leer\nel chip del pasaporte electrónico",
|
|
107
|
+
"FaceTec_idscan_nfc_card_status_finished_with_error_message": "No se puede leer\nel chip de la cédula",
|
|
108
|
+
"FaceTec_idscan_nfc_status_skipped_message": "Escaneo NFC\nomitido",
|
|
109
|
+
|
|
110
|
+
// Result Messages
|
|
111
|
+
"FaceTec_result_success_message": "Validación de identidad completa",
|
|
112
|
+
"FaceTec_result_facescan_upload_message": "Analizando tu selfie",
|
|
113
|
+
"FaceTec_result_idscan_upload_message": "Analizando la imagen de la\ncédula",
|
|
114
|
+
"FaceTec_result_nfc_upload_message": "Analizando la información NFC",
|
|
115
|
+
"FaceTec_result_idscan_unsuccess_message": "La foto de la cédula\nno coincide con el rostro del usuario",
|
|
116
|
+
"FaceTec_result_idscan_success_front_side_message": "Escaneo de cédula completado",
|
|
117
|
+
"FaceTec_result_idscan_success_front_side_back_next_message": "Lado frontal de la cédula\nescaneado",
|
|
118
|
+
"FaceTec_result_idscan_success_front_side_nfc_next_message": "Frente de la cédula\nescaneado",
|
|
119
|
+
"FaceTec_result_idscan_success_back_side_message": "Escaneo de cédula completado",
|
|
120
|
+
"FaceTec_result_idscan_success_back_side_nfc_next_message": "Reverso de la cédula\nescaneado",
|
|
121
|
+
"FaceTec_result_idscan_success_passport_message": "Escaneo de pasaporte completado",
|
|
122
|
+
"FaceTec_result_idscan_success_passport_nfc_next_message": "Pasaporte escaneado",
|
|
123
|
+
"FaceTec_result_idscan_success_user_confirmation_message": "Escaneo de la cédula con fotografía\ncompletado",
|
|
124
|
+
"FaceTec_result_idscan_success_nfc_message": "Escaneo de cédula completado",
|
|
125
|
+
"FaceTec_result_idscan_success_additional_review_message": "Captura de la fotografía de la cédula\ncompletada",
|
|
126
|
+
"FaceTec_result_idscan_skip_or_error_nfc_message": "Información de la cédula\nsubida",
|
|
127
|
+
"FaceTec_result_idscan_retry_face_did_not_match_message": "El rostro no coincide\nlo suficiente",
|
|
128
|
+
"FaceTec_result_idscan_retry_id_not_fully_visible_message": "La cédula\nno es totalmente visible",
|
|
129
|
+
"FaceTec_result_idscan_retry_ocr_results_not_good_enough_message": "El texto de la cédula no es legible",
|
|
130
|
+
"FaceTec_result_idscan_retry_id_type_not_supported_message": "No se admite este tipo de identificación\nUtiliza una identificación diferente",
|
|
131
|
+
"FaceTec_result_idscan_retry_barcode_not_read_message": "No se pudo escanear el código de barras\nInténtalo de nuevo",
|
|
132
|
+
|
|
133
|
+
// Retry - Official ID Photo
|
|
134
|
+
"FaceTec_retry_official_id_photo_subheader_message": "La foto debe tener más calidad",
|
|
135
|
+
"FaceTec_retry_official_id_photo_instruction_message": "Usa luz interior,\nsin sonreír, lentes con reflejos o sombrero",
|
|
136
|
+
"FaceTec_retry_official_id_photo_your_image_label": "Tu imagen",
|
|
137
|
+
"FaceTec_retry_official_id_photo_ideal_image_label": "Cara conforme",
|
|
138
|
+
]
|
|
139
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>BinaryPath</key>
|
|
9
|
+
<string>FaceTecSDK.framework/FaceTecSDK</string>
|
|
10
|
+
<key>LibraryIdentifier</key>
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
|
+
<key>LibraryPath</key>
|
|
13
|
+
<string>FaceTecSDK.framework</string>
|
|
14
|
+
<key>SupportedArchitectures</key>
|
|
15
|
+
<array>
|
|
16
|
+
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
18
|
+
</array>
|
|
19
|
+
<key>SupportedPlatform</key>
|
|
20
|
+
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
23
|
+
</dict>
|
|
24
|
+
<dict>
|
|
25
|
+
<key>BinaryPath</key>
|
|
26
|
+
<string>FaceTecSDK.framework/FaceTecSDK</string>
|
|
27
|
+
<key>LibraryIdentifier</key>
|
|
28
|
+
<string>ios-arm64</string>
|
|
29
|
+
<key>LibraryPath</key>
|
|
30
|
+
<string>FaceTecSDK.framework</string>
|
|
31
|
+
<key>SupportedArchitectures</key>
|
|
32
|
+
<array>
|
|
33
|
+
<string>arm64</string>
|
|
34
|
+
</array>
|
|
35
|
+
<key>SupportedPlatform</key>
|
|
36
|
+
<string>ios</string>
|
|
37
|
+
</dict>
|
|
38
|
+
</array>
|
|
39
|
+
<key>CFBundlePackageType</key>
|
|
40
|
+
<string>XFWK</string>
|
|
41
|
+
<key>XCFrameworkFormatVersion</key>
|
|
42
|
+
<string>1.0</string>
|
|
43
|
+
</dict>
|
|
44
|
+
</plist>
|
|
Binary file
|
|
Binary file
|