assentify-sdk-react-native 0.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/LICENSE +3 -0
- package/README.md +65 -0
- package/android/build.gradle +111 -0
- package/android/gradle.properties +9 -0
- package/android/src/main/AndroidManifest.xml +55 -0
- package/android/src/main/java/com/assentifysdk/AndroidProgressBarModule.kt +33 -0
- package/android/src/main/java/com/assentifysdk/AssentifySdkBaseModule.kt +39 -0
- package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +432 -0
- package/android/src/main/java/com/assentifysdk/AssentifySdkPackage.kt +19 -0
- package/android/src/main/java/com/assentifysdk/FaceMatchActivity.kt +309 -0
- package/android/src/main/java/com/assentifysdk/ImageToBase64Converter.kt +40 -0
- package/android/src/main/java/com/assentifysdk/ReactApplicationContextObject.kt +14 -0
- package/android/src/main/java/com/assentifysdk/ScanIDActivity.kt +431 -0
- package/android/src/main/java/com/assentifysdk/ScanOtherActivity.kt +328 -0
- package/android/src/main/java/com/assentifysdk/ScanPassportActivity.kt +364 -0
- package/android/src/main/java/com/assentifysdk/StepsKeys.kt +91 -0
- package/android/src/main/res/drawable/back_icon.png +0 -0
- package/android/src/main/res/drawable/button_rounded_background.xml +6 -0
- package/android/src/main/res/drawable/card.gif +0 -0
- package/android/src/main/res/drawable/expire.png +0 -0
- package/android/src/main/res/drawable/id.gif +0 -0
- package/android/src/main/res/drawable/id_warning.png +0 -0
- package/android/src/main/res/drawable/info_icon.png +0 -0
- package/android/src/main/res/drawable/info_rounded_background.xml +6 -0
- package/android/src/main/res/drawable/passport.gif +0 -0
- package/android/src/main/res/drawable/rounded_background.xml +3 -0
- package/android/src/main/res/drawable/sending.png +0 -0
- package/android/src/main/res/drawable/warning.png +0 -0
- package/android/src/main/res/drawable/zoom_in.png +0 -0
- package/android/src/main/res/drawable/zoom_out.png +0 -0
- package/android/src/main/res/layout/activity_face_scan.xml +242 -0
- package/android/src/main/res/layout/activity_scan.xml +297 -0
- package/android/src/main/res/raw/sending_video.MP4 +0 -0
- package/android/src/main/res/values/colors.xml +8 -0
- package/android/src/main/res/values/strings.xml +3 -0
- package/android/src/main/res/values/styles.xml +4 -0
- package/assentify-sdk.podspec +43 -0
- package/ios/AssentifySdkBaseModule.swift +15 -0
- package/ios/Info.plist +27 -0
- package/ios/NativeAssentifySdk-Bridging-Header.h +3 -0
- package/ios/NativeAssentifySdk.mm +45 -0
- package/ios/NativeAssentifySdk.swift +460 -0
- package/ios/Resources/card.gif +0 -0
- package/ios/Resources/expire.png +0 -0
- package/ios/Resources/id.gif +0 -0
- package/ios/Resources/id_warning.png +0 -0
- package/ios/Resources/info_icon.png +0 -0
- package/ios/Resources/passport.gif +0 -0
- package/ios/Resources/sending.png +0 -0
- package/ios/Resources/warning.png +0 -0
- package/ios/Resources/zoom_in.png +0 -0
- package/ios/Resources/zoom_out.png +0 -0
- package/ios/UIComponents/RNIOSProgressBar.h +4 -0
- package/ios/UIComponents/RNIOSProgressBar.m +34 -0
- package/ios/UIComponents/RNPassportScanner.m +26 -0
- package/ios/UIComponents/RNPassportScanner.swift +245 -0
- package/ios/UIComponents/RNTMapManager.h +4 -0
- package/ios/UIComponents/RNTMapManager.m +19 -0
- package/ios/View/DataDecoder.swift +469 -0
- package/ios/View/FaceMatchController.swift +258 -0
- package/ios/View/IDCardController.swift +360 -0
- package/ios/View/OtherController.swift +283 -0
- package/ios/View/PassportController.swift +302 -0
- package/ios/View/UI.swift +298 -0
- package/lib/commonjs/AssentifyProvider.js +202 -0
- package/lib/commonjs/AssentifyProvider.js.map +1 -0
- package/lib/commonjs/AssentifyWrapper.js +76 -0
- package/lib/commonjs/AssentifyWrapper.js.map +1 -0
- package/lib/commonjs/Language.js +27 -0
- package/lib/commonjs/Language.js.map +1 -0
- package/lib/commonjs/helpers/index.js +2 -0
- package/lib/commonjs/helpers/index.js.map +1 -0
- package/lib/commonjs/helpers/parsers/FaceMatchParser.js +27 -0
- package/lib/commonjs/helpers/parsers/FaceMatchParser.js.map +1 -0
- package/lib/commonjs/helpers/parsers/IDCardParser.js +25 -0
- package/lib/commonjs/helpers/parsers/IDCardParser.js.map +1 -0
- package/lib/commonjs/helpers/parsers/OtherIDParser.js +29 -0
- package/lib/commonjs/helpers/parsers/OtherIDParser.js.map +1 -0
- package/lib/commonjs/helpers/parsers/PassportParser.js +25 -0
- package/lib/commonjs/helpers/parsers/PassportParser.js.map +1 -0
- package/lib/commonjs/index.js +49 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/types.js +42 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/AssentifyProvider.js +193 -0
- package/lib/module/AssentifyProvider.js.map +1 -0
- package/lib/module/AssentifyWrapper.js +70 -0
- package/lib/module/AssentifyWrapper.js.map +1 -0
- package/lib/module/Language.js +21 -0
- package/lib/module/Language.js.map +1 -0
- package/lib/module/helpers/index.js +2 -0
- package/lib/module/helpers/index.js.map +1 -0
- package/lib/module/helpers/parsers/FaceMatchParser.js +21 -0
- package/lib/module/helpers/parsers/FaceMatchParser.js.map +1 -0
- package/lib/module/helpers/parsers/IDCardParser.js +19 -0
- package/lib/module/helpers/parsers/IDCardParser.js.map +1 -0
- package/lib/module/helpers/parsers/OtherIDParser.js +23 -0
- package/lib/module/helpers/parsers/OtherIDParser.js.map +1 -0
- package/lib/module/helpers/parsers/PassportParser.js +19 -0
- package/lib/module/helpers/parsers/PassportParser.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/types.js +36 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/babel.config.d.ts +3 -0
- package/lib/typescript/babel.config.d.ts.map +1 -0
- package/lib/typescript/commitlint.config.d.ts +7 -0
- package/lib/typescript/commitlint.config.d.ts.map +1 -0
- package/lib/typescript/example/babel.config.d.ts +8 -0
- package/lib/typescript/example/babel.config.d.ts.map +1 -0
- package/lib/typescript/example/index.d.ts +2 -0
- package/lib/typescript/example/index.d.ts.map +1 -0
- package/lib/typescript/example/jest.config.d.ts +2 -0
- package/lib/typescript/example/jest.config.d.ts.map +1 -0
- package/lib/typescript/example/metro.config.d.ts +3 -0
- package/lib/typescript/example/metro.config.d.ts.map +1 -0
- package/lib/typescript/example/react-native.config.d.ts +6 -0
- package/lib/typescript/example/react-native.config.d.ts.map +1 -0
- package/lib/typescript/example/src/App.d.ts +3 -0
- package/lib/typescript/example/src/App.d.ts.map +1 -0
- package/lib/typescript/example/src/Home.d.ts +4 -0
- package/lib/typescript/example/src/Home.d.ts.map +1 -0
- package/lib/typescript/example/src/navigator.d.ts +4 -0
- package/lib/typescript/example/src/navigator.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts +3 -0
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +11 -0
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Language.d.ts +22 -0
- package/lib/typescript/lib/commonjs/Language.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/helpers/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/FaceMatchParser.d.ts +12 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/IDCardParser.d.ts +11 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/IDCardParser.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/OtherIDParser.d.ts +13 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/OtherIDParser.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/PassportParser.d.ts +11 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/PassportParser.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts +2 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/types.d.ts +18 -0
- package/lib/typescript/lib/commonjs/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/AssentifyProvider.d.ts +3 -0
- package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -0
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts +10 -0
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -0
- package/lib/typescript/lib/module/Language.d.ts +21 -0
- package/lib/typescript/lib/module/Language.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/index.d.ts +1 -0
- package/lib/typescript/lib/module/helpers/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/parsers/FaceMatchParser.d.ts +11 -0
- package/lib/typescript/lib/module/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/parsers/IDCardParser.d.ts +10 -0
- package/lib/typescript/lib/module/helpers/parsers/IDCardParser.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/parsers/OtherIDParser.d.ts +12 -0
- package/lib/typescript/lib/module/helpers/parsers/OtherIDParser.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/parsers/PassportParser.d.ts +10 -0
- package/lib/typescript/lib/module/helpers/parsers/PassportParser.d.ts.map +1 -0
- package/lib/typescript/lib/module/index.d.ts +12 -0
- package/lib/typescript/lib/module/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/types.d.ts +17 -0
- package/lib/typescript/lib/module/types.d.ts.map +1 -0
- package/lib/typescript/src/AssentifyProvider.d.ts +4 -0
- package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -0
- package/lib/typescript/src/AssentifyWrapper.d.ts +12 -0
- package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -0
- package/lib/typescript/src/Language.d.ts +22 -0
- package/lib/typescript/src/Language.d.ts.map +1 -0
- package/lib/typescript/src/helpers/index.d.ts +1 -0
- package/lib/typescript/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/parsers/FaceMatchParser.d.ts +4 -0
- package/lib/typescript/src/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
- package/lib/typescript/src/helpers/parsers/IDCardParser.d.ts +4 -0
- package/lib/typescript/src/helpers/parsers/IDCardParser.d.ts.map +1 -0
- package/lib/typescript/src/helpers/parsers/OtherIDParser.d.ts +4 -0
- package/lib/typescript/src/helpers/parsers/OtherIDParser.d.ts.map +1 -0
- package/lib/typescript/src/helpers/parsers/PassportParser.d.ts +4 -0
- package/lib/typescript/src/helpers/parsers/PassportParser.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +12 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +308 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/package.json +201 -0
- package/src/AssentifyProvider.tsx +189 -0
- package/src/AssentifyWrapper.ts +142 -0
- package/src/Language.ts +22 -0
- package/src/helpers/index.ts +1 -0
- package/src/helpers/parsers/FaceMatchParser.ts +28 -0
- package/src/helpers/parsers/IDCardParser.ts +27 -0
- package/src/helpers/parsers/OtherIDParser.ts +31 -0
- package/src/helpers/parsers/PassportParser.ts +27 -0
- package/src/index.ts +6 -0
- package/src/types.ts +373 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import com.assentify.sdk.RemoteClient.Models.DocumentTokensModel
|
|
2
|
+
|
|
3
|
+
class StepsName{
|
|
4
|
+
companion object {
|
|
5
|
+
const val DocumentCapture = "IdentificationDocumentCapture"
|
|
6
|
+
const val FaceMatch = "FaceImageAcquisition"
|
|
7
|
+
const val ContextAwareSigning = "ContextAwareSigning"
|
|
8
|
+
const val WrapUp = "WrapUp"
|
|
9
|
+
const val BlockLoader = "BlockLoader"
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
class DocumentCaptureKeys{
|
|
14
|
+
companion object {
|
|
15
|
+
const val FirstName = "OnBoardMe_IdentificationDocumentCapture_name"
|
|
16
|
+
const val LastName = "OnBoardMe_IdentificationDocumentCapture_surname"
|
|
17
|
+
const val DocumentType = "OnBoardMe_IdentificationDocumentCapture_Document_Type"
|
|
18
|
+
const val BirthDate = "OnBoardMe_IdentificationDocumentCapture_Birth_Date"
|
|
19
|
+
const val ExpiryDate = "OnBoardMe_IdentificationDocumentCapture_Expiry_Date"
|
|
20
|
+
const val DocumentNumber = "IdentificationDocumentCapture_Document_Number"
|
|
21
|
+
const val Sex = "OnBoardMe_IdentificationDocumentCapture_Sex"
|
|
22
|
+
const val Country = "OnBoardMe_IdentificationDocumentCapture_Country"
|
|
23
|
+
const val Nationality = "OnBoardMe_IdentificationDocumentCapture_Nationality"
|
|
24
|
+
const val FaceCapture = "OnBoardMe_IdentificationDocumentCapture_FaceCapture"
|
|
25
|
+
const val DocumentImage = "OnBoardMe_IdentificationDocumentCapture_Image"
|
|
26
|
+
const val MothersName = "OnBoardMe_IdentificationDocumentCapture_ID_MothersName"
|
|
27
|
+
const val PlaceOfBirth = "OnBoardMe_IdentificationDocumentCapture_ID_PlaceOfBirth"
|
|
28
|
+
const val FathersName = "OnBoardMe_IdentificationDocumentCapture_ID_FathersName"
|
|
29
|
+
const val BackImage = "OnBoardMe_IdentificationDocumentCapture_ID_BackImage"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
class FaceKeys{
|
|
33
|
+
companion object {
|
|
34
|
+
const val BaseImage = "OnBoardMe_FaceImageAcquisition_BaseImage"
|
|
35
|
+
const val SecondImage = "OnBoardMe_FaceImageAcquisition_SecondImage"
|
|
36
|
+
const val Percentage = "OnBoardMe_FaceImageAcquisition_Percentage"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class ContextAwareSigningKeys{
|
|
41
|
+
companion object {
|
|
42
|
+
const val DocumentURL = "OnBoardMe_ContextAwareSigning_DocumentURL"
|
|
43
|
+
const val SignatureURL = "OnBoardMe_ContextAwareSigning_SignatureURL"
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
class WrapUpKeys{
|
|
49
|
+
companion object {
|
|
50
|
+
const val TimeEnded = "OnBoardMe_WrapUp_TimeEnded"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class BlockLoaderKeys{
|
|
55
|
+
companion object {
|
|
56
|
+
const val DeviceName = "OnBoardMe_BlockLoader_DeviceName"
|
|
57
|
+
const val FlowName = "OnBoardMe_BlockLoader_FlowName"
|
|
58
|
+
const val TimeStarted = "OnBoardMe_BlockLoader_TimeStarted"
|
|
59
|
+
const val Application = "OnBoardMe_BlockLoader_Application"
|
|
60
|
+
const val UserAgent = "OnBoardMe_BlockLoader_UserAgent"
|
|
61
|
+
const val InstanceHash = "OnBoardMe_BlockLoader_InstanceHash"
|
|
62
|
+
const val InteractionID = "OnBoardMe_BlockLoader_Interaction"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Your Pdf Flow Keys
|
|
67
|
+
class ContextAwareSigningPdfKeys{
|
|
68
|
+
companion object {
|
|
69
|
+
val firstName= DocumentTokensModel(476, 84, "firstname", "firstname", 1)
|
|
70
|
+
val motherName= DocumentTokensModel(477, 84, "mothername", "mothername", 1)
|
|
71
|
+
val familyName= DocumentTokensModel(478, 84, "family name", "family name", 1)
|
|
72
|
+
val placeOfBirth= DocumentTokensModel(479, 84, "placeofbirth", "placeofbirth", 1)
|
|
73
|
+
val fatherName= DocumentTokensModel(480, 84, "fathername", "fathername", 1)
|
|
74
|
+
val gender= DocumentTokensModel(481, 84, "gender", "gender", 1)
|
|
75
|
+
val dateOfBirth= DocumentTokensModel(482, 84, "dateofbirth", "dateofbirth",2)
|
|
76
|
+
val nationality= DocumentTokensModel(483, 84, "nationality", "nationality", 1)
|
|
77
|
+
val country= DocumentTokensModel(484, 84, "country", "country", 1)
|
|
78
|
+
val occupation= DocumentTokensModel(485, 84, "occupation", "occupation", 1)
|
|
79
|
+
val city= DocumentTokensModel(486, 84, "city", "city", 1)
|
|
80
|
+
val companyName= DocumentTokensModel(487, 84, "companyname", "companyname", 1)
|
|
81
|
+
val averageIncome= DocumentTokensModel(488, 84, "AverageIncome", "AverageIncome", 1)
|
|
82
|
+
val face= DocumentTokensModel(489, 84, "face", "face", 3);
|
|
83
|
+
val KYC= DocumentTokensModel(491, 84, "KYC", "KYC", 3)
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
android:textColor="@color/white"
|
|
8
|
+
tools:context=".FaceMatchActivity">
|
|
9
|
+
|
|
10
|
+
<androidx.appcompat.widget.Toolbar
|
|
11
|
+
android:id="@+id/toolbar"
|
|
12
|
+
android:layout_width="match_parent"
|
|
13
|
+
android:layout_height="70dp"
|
|
14
|
+
android:background="@color/transparent"
|
|
15
|
+
android:elevation="4dp"
|
|
16
|
+
tools:ignore="MissingConstraints">
|
|
17
|
+
|
|
18
|
+
<LinearLayout
|
|
19
|
+
android:layout_width="match_parent"
|
|
20
|
+
android:layout_height="wrap_content"
|
|
21
|
+
android:layout_gravity="center"
|
|
22
|
+
android:orientation="horizontal">
|
|
23
|
+
|
|
24
|
+
<LinearLayout
|
|
25
|
+
android:layout_width="wrap_content"
|
|
26
|
+
android:layout_height="wrap_content"
|
|
27
|
+
android:layout_gravity="center"
|
|
28
|
+
android:layout_weight="1"
|
|
29
|
+
android:orientation="horizontal">
|
|
30
|
+
|
|
31
|
+
<RelativeLayout
|
|
32
|
+
android:id="@+id/backButton"
|
|
33
|
+
android:layout_width="45dp"
|
|
34
|
+
android:layout_height="45dp"
|
|
35
|
+
android:elevation="4dp">
|
|
36
|
+
|
|
37
|
+
<ImageView
|
|
38
|
+
android:layout_width="23dp"
|
|
39
|
+
android:layout_height="23dp"
|
|
40
|
+
android:layout_centerHorizontal="true"
|
|
41
|
+
android:layout_centerVertical="true"
|
|
42
|
+
android:src="@drawable/back_icon" />
|
|
43
|
+
|
|
44
|
+
</RelativeLayout>
|
|
45
|
+
|
|
46
|
+
</LinearLayout>
|
|
47
|
+
|
|
48
|
+
<TextView
|
|
49
|
+
android:id="@+id/toolbar_title"
|
|
50
|
+
android:layout_width="wrap_content"
|
|
51
|
+
android:layout_height="wrap_content"
|
|
52
|
+
android:layout_weight="1"
|
|
53
|
+
android:gravity="center"
|
|
54
|
+
android:paddingTop="5dp"
|
|
55
|
+
android:text=""
|
|
56
|
+
android:textColor="@color/white"
|
|
57
|
+
android:textSize="18sp" />
|
|
58
|
+
|
|
59
|
+
<RelativeLayout
|
|
60
|
+
android:layout_width="45dp"
|
|
61
|
+
android:layout_height="45dp"
|
|
62
|
+
android:layout_weight="1"
|
|
63
|
+
android:elevation="4dp"></RelativeLayout>
|
|
64
|
+
|
|
65
|
+
</LinearLayout>
|
|
66
|
+
|
|
67
|
+
</androidx.appcompat.widget.Toolbar>
|
|
68
|
+
|
|
69
|
+
<LinearLayout
|
|
70
|
+
android:layout_width="match_parent"
|
|
71
|
+
android:layout_height="match_parent"
|
|
72
|
+
android:gravity="center_horizontal"
|
|
73
|
+
android:orientation="horizontal">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<androidx.cardview.widget.CardView
|
|
77
|
+
android:id="@+id/fragmentContainer"
|
|
78
|
+
android:layout_width="match_parent"
|
|
79
|
+
android:layout_height="match_parent"
|
|
80
|
+
android:gravity="center_horizontal"
|
|
81
|
+
app:cardBackgroundColor="@android:color/white"
|
|
82
|
+
app:elevation="0dp" />
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
</LinearLayout>
|
|
86
|
+
|
|
87
|
+
<LinearLayout
|
|
88
|
+
android:layout_width="match_parent"
|
|
89
|
+
android:layout_height="match_parent"
|
|
90
|
+
android:layout_gravity="center_vertical"
|
|
91
|
+
android:layout_marginTop="00dp"
|
|
92
|
+
android:gravity="center"
|
|
93
|
+
android:orientation="vertical"
|
|
94
|
+
android:paddingLeft="16dp"
|
|
95
|
+
android:paddingRight="16dp"
|
|
96
|
+
android:paddingBottom="2dp"
|
|
97
|
+
android:visibility="visible">
|
|
98
|
+
|
|
99
|
+
<LinearLayout
|
|
100
|
+
android:layout_width="wrap_content"
|
|
101
|
+
android:layout_height="wrap_content"
|
|
102
|
+
android:layout_gravity="center_horizontal"
|
|
103
|
+
android:gravity="center"
|
|
104
|
+
android:orientation="horizontal">
|
|
105
|
+
|
|
106
|
+
<LinearLayout
|
|
107
|
+
android:id="@+id/popUpContainer"
|
|
108
|
+
android:layout_width="wrap_content"
|
|
109
|
+
android:layout_height="wrap_content"
|
|
110
|
+
android:layout_gravity="center_horizontal"
|
|
111
|
+
android:gravity="center"
|
|
112
|
+
android:orientation="vertical">
|
|
113
|
+
|
|
114
|
+
<ImageView
|
|
115
|
+
android:id="@+id/popUpIcon"
|
|
116
|
+
android:layout_width="130dp"
|
|
117
|
+
android:layout_height="100dp"
|
|
118
|
+
android:layout_centerHorizontal="true"
|
|
119
|
+
android:layout_centerVertical="true"
|
|
120
|
+
android:paddingLeft="30dp"
|
|
121
|
+
android:paddingTop="5dp"
|
|
122
|
+
android:paddingRight="30dp"
|
|
123
|
+
android:visibility="gone" />
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
<TextView
|
|
127
|
+
android:id="@+id/popUpText"
|
|
128
|
+
android:layout_width="wrap_content"
|
|
129
|
+
android:layout_height="wrap_content"
|
|
130
|
+
android:fontFamily="sans-serif"
|
|
131
|
+
android:paddingLeft="40dp"
|
|
132
|
+
android:paddingTop="5dp"
|
|
133
|
+
android:paddingRight="40dp"
|
|
134
|
+
android:paddingBottom="20dp"
|
|
135
|
+
android:text=""
|
|
136
|
+
android:textSize="15sp" />
|
|
137
|
+
|
|
138
|
+
<TextView
|
|
139
|
+
android:id="@+id/popUpSubText"
|
|
140
|
+
android:layout_width="wrap_content"
|
|
141
|
+
android:layout_height="wrap_content"
|
|
142
|
+
android:paddingLeft="40dp"
|
|
143
|
+
android:paddingRight="40dp"
|
|
144
|
+
android:paddingBottom="20dp"
|
|
145
|
+
android:text="Let's try again"
|
|
146
|
+
android:textSize="10sp" />
|
|
147
|
+
|
|
148
|
+
<Button
|
|
149
|
+
android:id="@+id/popUpButton"
|
|
150
|
+
android:layout_width="100dp"
|
|
151
|
+
android:layout_height="35dp"
|
|
152
|
+
android:layout_gravity="center_horizontal"
|
|
153
|
+
android:layout_marginLeft="50dp"
|
|
154
|
+
android:layout_marginRight="50dp"
|
|
155
|
+
android:layout_marginBottom="20dp"
|
|
156
|
+
android:text="Retry ?"
|
|
157
|
+
android:textSize="10sp" />
|
|
158
|
+
</LinearLayout>
|
|
159
|
+
|
|
160
|
+
</LinearLayout>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
</LinearLayout>
|
|
164
|
+
|
|
165
|
+
<LinearLayout
|
|
166
|
+
android:layout_width="match_parent"
|
|
167
|
+
android:layout_height="match_parent"
|
|
168
|
+
android:gravity="center_horizontal"
|
|
169
|
+
android:paddingLeft="10dp"
|
|
170
|
+
android:paddingTop="80dp"
|
|
171
|
+
android:paddingRight="10dp">
|
|
172
|
+
|
|
173
|
+
<LinearLayout
|
|
174
|
+
android:id="@+id/face_background"
|
|
175
|
+
android:layout_width="380dp"
|
|
176
|
+
android:layout_height="560dp"
|
|
177
|
+
android:layout_centerInParent="true"
|
|
178
|
+
android:background="@drawable/face_background"
|
|
179
|
+
android:orientation="horizontal"
|
|
180
|
+
android:paddingLeft="10dp"
|
|
181
|
+
android:paddingRight="10dp"
|
|
182
|
+
android:visibility="gone"
|
|
183
|
+
app:cardBackgroundColor="@android:color/transparent"
|
|
184
|
+
tools:ignore="MissingConstraints" />
|
|
185
|
+
</LinearLayout>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
<LinearLayout
|
|
189
|
+
android:id="@+id/messageLayout"
|
|
190
|
+
android:layout_width="match_parent"
|
|
191
|
+
android:layout_height="match_parent"
|
|
192
|
+
android:layout_gravity="center"
|
|
193
|
+
android:gravity="bottom"
|
|
194
|
+
android:orientation="vertical"
|
|
195
|
+
android:visibility="visible">
|
|
196
|
+
|
|
197
|
+
<LinearLayout
|
|
198
|
+
android:layout_width="match_parent"
|
|
199
|
+
android:layout_height="wrap_content"
|
|
200
|
+
android:layout_gravity="center_vertical"
|
|
201
|
+
android:background="@color/transparent"
|
|
202
|
+
android:gravity="center"
|
|
203
|
+
android:orientation="horizontal"
|
|
204
|
+
android:paddingBottom="40px"
|
|
205
|
+
android:visibility="visible">
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
<LinearLayout
|
|
209
|
+
android:id="@+id/infoLayout"
|
|
210
|
+
android:layout_width="wrap_content"
|
|
211
|
+
android:layout_height="wrap_content"
|
|
212
|
+
android:layout_gravity="center_vertical"
|
|
213
|
+
android:gravity="center"
|
|
214
|
+
android:orientation="horizontal"
|
|
215
|
+
android:paddingLeft="15dp"
|
|
216
|
+
android:paddingTop="5dp"
|
|
217
|
+
android:paddingRight="20dp"
|
|
218
|
+
android:paddingBottom="5dp">
|
|
219
|
+
|
|
220
|
+
<ImageView
|
|
221
|
+
android:id="@+id/info_icon"
|
|
222
|
+
android:layout_width="40dp"
|
|
223
|
+
android:layout_height="40dp"
|
|
224
|
+
android:layout_centerHorizontal="true"
|
|
225
|
+
android:layout_centerVertical="true"
|
|
226
|
+
android:paddingLeft="5dp"
|
|
227
|
+
android:paddingRight="10dp" />
|
|
228
|
+
|
|
229
|
+
<TextView
|
|
230
|
+
android:id="@+id/infoText"
|
|
231
|
+
android:layout_width="wrap_content"
|
|
232
|
+
android:layout_height="wrap_content"
|
|
233
|
+
android:fontFamily="sans-serif"
|
|
234
|
+
android:text=""
|
|
235
|
+
android:textColor="@color/white"
|
|
236
|
+
android:textSize="15sp" />
|
|
237
|
+
</LinearLayout>
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
</LinearLayout>
|
|
241
|
+
</LinearLayout>
|
|
242
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
android:textColor="@color/white"
|
|
8
|
+
tools:context=".ScanPassportActivity">
|
|
9
|
+
|
|
10
|
+
<androidx.appcompat.widget.Toolbar
|
|
11
|
+
android:id="@+id/toolbar"
|
|
12
|
+
android:layout_width="match_parent"
|
|
13
|
+
android:layout_height="70dp"
|
|
14
|
+
android:background="@color/transparent"
|
|
15
|
+
android:elevation="4dp"
|
|
16
|
+
tools:ignore="MissingConstraints">
|
|
17
|
+
|
|
18
|
+
<LinearLayout
|
|
19
|
+
android:layout_width="match_parent"
|
|
20
|
+
android:layout_height="wrap_content"
|
|
21
|
+
android:orientation="horizontal"
|
|
22
|
+
android:layout_gravity="center">
|
|
23
|
+
|
|
24
|
+
<LinearLayout
|
|
25
|
+
android:layout_width="wrap_content"
|
|
26
|
+
android:layout_height="wrap_content"
|
|
27
|
+
android:orientation="horizontal"
|
|
28
|
+
android:layout_weight="1"
|
|
29
|
+
android:layout_gravity="center">
|
|
30
|
+
<RelativeLayout
|
|
31
|
+
android:id="@+id/backButton"
|
|
32
|
+
android:layout_width="45dp"
|
|
33
|
+
android:layout_height="45dp"
|
|
34
|
+
android:elevation="4dp">
|
|
35
|
+
|
|
36
|
+
<ImageView
|
|
37
|
+
android:layout_width="23dp"
|
|
38
|
+
android:layout_height="23dp"
|
|
39
|
+
android:layout_centerVertical="true"
|
|
40
|
+
android:layout_centerHorizontal="true"
|
|
41
|
+
android:src="@drawable/back_icon" />
|
|
42
|
+
|
|
43
|
+
</RelativeLayout>
|
|
44
|
+
|
|
45
|
+
</LinearLayout>
|
|
46
|
+
<TextView
|
|
47
|
+
android:id="@+id/toolbar_title"
|
|
48
|
+
android:layout_weight="1"
|
|
49
|
+
android:layout_width="wrap_content"
|
|
50
|
+
android:layout_height="wrap_content"
|
|
51
|
+
android:gravity="center"
|
|
52
|
+
android:paddingTop="5dp"
|
|
53
|
+
android:textColor="@color/white"
|
|
54
|
+
android:textSize="18sp"
|
|
55
|
+
android:text="" />
|
|
56
|
+
<RelativeLayout
|
|
57
|
+
android:layout_weight="1"
|
|
58
|
+
android:layout_width="45dp"
|
|
59
|
+
android:layout_height="45dp"
|
|
60
|
+
android:elevation="4dp">
|
|
61
|
+
</RelativeLayout>
|
|
62
|
+
|
|
63
|
+
</LinearLayout>
|
|
64
|
+
|
|
65
|
+
</androidx.appcompat.widget.Toolbar>
|
|
66
|
+
|
|
67
|
+
<LinearLayout
|
|
68
|
+
android:layout_width="match_parent"
|
|
69
|
+
android:layout_height="match_parent"
|
|
70
|
+
android:gravity="center_horizontal"
|
|
71
|
+
android:orientation="horizontal">
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
<androidx.cardview.widget.CardView
|
|
75
|
+
android:id="@+id/fragmentContainer"
|
|
76
|
+
android:layout_width="match_parent"
|
|
77
|
+
android:layout_height="match_parent"
|
|
78
|
+
android:gravity="center_horizontal"
|
|
79
|
+
app:cardBackgroundColor="@android:color/white"
|
|
80
|
+
app:elevation="0dp" />
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</LinearLayout>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<LinearLayout
|
|
87
|
+
android:layout_width="match_parent"
|
|
88
|
+
android:layout_height="match_parent"
|
|
89
|
+
android:layout_gravity="center_vertical"
|
|
90
|
+
android:layout_marginTop="00dp"
|
|
91
|
+
android:gravity="center"
|
|
92
|
+
android:orientation="vertical"
|
|
93
|
+
android:paddingLeft="10dp"
|
|
94
|
+
android:paddingRight="10dp"
|
|
95
|
+
android:paddingBottom="2dp"
|
|
96
|
+
android:visibility="visible">
|
|
97
|
+
|
|
98
|
+
<LinearLayout
|
|
99
|
+
android:layout_width="wrap_content"
|
|
100
|
+
android:layout_height="wrap_content"
|
|
101
|
+
android:orientation="horizontal"
|
|
102
|
+
android:layout_gravity="center_horizontal"
|
|
103
|
+
android:gravity="center"
|
|
104
|
+
>
|
|
105
|
+
|
|
106
|
+
<pl.droidsonroids.gif.GifImageView
|
|
107
|
+
android:id="@+id/flippingCard"
|
|
108
|
+
android:visibility="gone"
|
|
109
|
+
android:layout_width="wrap_content"
|
|
110
|
+
android:layout_height="wrap_content"
|
|
111
|
+
android:layout_centerInParent="true"
|
|
112
|
+
android:background="@null"
|
|
113
|
+
android:src="@drawable/card"
|
|
114
|
+
tools:ignore="MissingConstraints" />
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</LinearLayout>
|
|
118
|
+
</LinearLayout>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
<LinearLayout
|
|
123
|
+
android:layout_width="match_parent"
|
|
124
|
+
android:layout_height="match_parent"
|
|
125
|
+
android:layout_gravity="center_vertical"
|
|
126
|
+
android:layout_marginTop="00dp"
|
|
127
|
+
android:gravity="center"
|
|
128
|
+
android:orientation="vertical"
|
|
129
|
+
android:paddingLeft="16dp"
|
|
130
|
+
android:paddingRight="16dp"
|
|
131
|
+
android:paddingBottom="2dp"
|
|
132
|
+
android:visibility="visible">
|
|
133
|
+
|
|
134
|
+
<LinearLayout
|
|
135
|
+
android:layout_width="wrap_content"
|
|
136
|
+
android:layout_height="wrap_content"
|
|
137
|
+
android:orientation="horizontal"
|
|
138
|
+
android:layout_gravity="center_horizontal"
|
|
139
|
+
android:gravity="center"
|
|
140
|
+
>
|
|
141
|
+
<LinearLayout
|
|
142
|
+
android:id="@+id/popUpContainer"
|
|
143
|
+
android:layout_width="wrap_content"
|
|
144
|
+
android:layout_height="wrap_content"
|
|
145
|
+
android:orientation="vertical"
|
|
146
|
+
android:layout_gravity="center_horizontal"
|
|
147
|
+
android:gravity="center"
|
|
148
|
+
>
|
|
149
|
+
<ImageView
|
|
150
|
+
android:id="@+id/popUpIcon"
|
|
151
|
+
android:layout_width="130dp"
|
|
152
|
+
android:layout_height="100dp"
|
|
153
|
+
android:paddingTop="5dp"
|
|
154
|
+
android:paddingLeft="30dp"
|
|
155
|
+
android:paddingRight="30dp"
|
|
156
|
+
android:visibility="gone"
|
|
157
|
+
android:layout_centerVertical="true"
|
|
158
|
+
android:layout_centerHorizontal="true"
|
|
159
|
+
/>
|
|
160
|
+
|
|
161
|
+
<LinearLayout
|
|
162
|
+
android:id="@+id/passportGif"
|
|
163
|
+
android:layout_width="wrap_content"
|
|
164
|
+
android:layout_height="wrap_content"
|
|
165
|
+
android:layout_gravity="center_horizontal"
|
|
166
|
+
android:gravity="center"
|
|
167
|
+
android:orientation="vertical"
|
|
168
|
+
android:visibility="gone">
|
|
169
|
+
|
|
170
|
+
<pl.droidsonroids.gif.GifImageView
|
|
171
|
+
android:layout_width="100dp"
|
|
172
|
+
android:layout_height="100dp"
|
|
173
|
+
android:layout_centerInParent="true"
|
|
174
|
+
android:background="@null"
|
|
175
|
+
android:src="@drawable/passport"
|
|
176
|
+
tools:ignore="MissingConstraints" />
|
|
177
|
+
|
|
178
|
+
</LinearLayout>
|
|
179
|
+
|
|
180
|
+
<LinearLayout
|
|
181
|
+
android:id="@+id/idGif"
|
|
182
|
+
android:layout_width="wrap_content"
|
|
183
|
+
android:layout_height="wrap_content"
|
|
184
|
+
android:layout_gravity="center_horizontal"
|
|
185
|
+
android:gravity="center"
|
|
186
|
+
android:orientation="vertical"
|
|
187
|
+
android:visibility="gone">
|
|
188
|
+
|
|
189
|
+
<pl.droidsonroids.gif.GifImageView
|
|
190
|
+
android:layout_width="100dp"
|
|
191
|
+
android:layout_height="100dp"
|
|
192
|
+
android:layout_centerInParent="true"
|
|
193
|
+
android:background="@null"
|
|
194
|
+
android:src="@drawable/id"
|
|
195
|
+
tools:ignore="MissingConstraints" />
|
|
196
|
+
|
|
197
|
+
</LinearLayout>
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
<TextView
|
|
201
|
+
android:id="@+id/popUpText"
|
|
202
|
+
android:layout_width="wrap_content"
|
|
203
|
+
android:layout_height="wrap_content"
|
|
204
|
+
android:text=""
|
|
205
|
+
android:paddingTop="5dp"
|
|
206
|
+
android:paddingLeft="40dp"
|
|
207
|
+
android:paddingRight="40dp"
|
|
208
|
+
android:paddingBottom="20dp"
|
|
209
|
+
android:textSize="15sp"
|
|
210
|
+
android:fontFamily="sans-serif"
|
|
211
|
+
/>
|
|
212
|
+
<TextView
|
|
213
|
+
android:id="@+id/popUpSubText"
|
|
214
|
+
android:layout_width="wrap_content"
|
|
215
|
+
android:layout_height="wrap_content"
|
|
216
|
+
android:textSize="10sp"
|
|
217
|
+
android:paddingLeft="40dp"
|
|
218
|
+
android:paddingRight="40dp"
|
|
219
|
+
android:paddingBottom="20dp"
|
|
220
|
+
android:text="Let's try again"
|
|
221
|
+
/>
|
|
222
|
+
<Button
|
|
223
|
+
android:id="@+id/popUpButton"
|
|
224
|
+
android:layout_width="100dp"
|
|
225
|
+
android:layout_height="35dp"
|
|
226
|
+
android:layout_marginLeft="50dp"
|
|
227
|
+
android:layout_marginRight="50dp"
|
|
228
|
+
android:layout_marginBottom="20dp"
|
|
229
|
+
android:textSize="10sp"
|
|
230
|
+
android:text="Retry ?"
|
|
231
|
+
android:layout_gravity="center_horizontal"
|
|
232
|
+
/>
|
|
233
|
+
</LinearLayout>
|
|
234
|
+
|
|
235
|
+
</LinearLayout>
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
</LinearLayout>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
<LinearLayout
|
|
243
|
+
android:id="@+id/messageLayout"
|
|
244
|
+
android:layout_width="match_parent"
|
|
245
|
+
android:layout_height="match_parent"
|
|
246
|
+
android:layout_gravity="center"
|
|
247
|
+
android:gravity="bottom"
|
|
248
|
+
android:orientation="vertical"
|
|
249
|
+
android:visibility="visible">
|
|
250
|
+
|
|
251
|
+
<LinearLayout
|
|
252
|
+
android:layout_width="match_parent"
|
|
253
|
+
android:layout_height="wrap_content"
|
|
254
|
+
android:layout_gravity="center_vertical"
|
|
255
|
+
android:background="@color/transparent"
|
|
256
|
+
android:gravity="center"
|
|
257
|
+
android:orientation="horizontal"
|
|
258
|
+
android:paddingBottom="40px"
|
|
259
|
+
android:visibility="visible">
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
<LinearLayout
|
|
263
|
+
android:id="@+id/infoLayout"
|
|
264
|
+
android:layout_width="wrap_content"
|
|
265
|
+
android:layout_height="wrap_content"
|
|
266
|
+
android:orientation="horizontal"
|
|
267
|
+
android:layout_gravity="center_vertical"
|
|
268
|
+
android:paddingLeft="15dp"
|
|
269
|
+
android:paddingRight="20dp"
|
|
270
|
+
android:paddingBottom="5dp"
|
|
271
|
+
android:paddingTop="5dp"
|
|
272
|
+
android:gravity="center"
|
|
273
|
+
>
|
|
274
|
+
<ImageView
|
|
275
|
+
android:id="@+id/info_icon"
|
|
276
|
+
android:layout_width="40dp"
|
|
277
|
+
android:layout_height="40dp"
|
|
278
|
+
android:paddingLeft="5dp"
|
|
279
|
+
android:paddingRight="10dp"
|
|
280
|
+
android:layout_centerVertical="true"
|
|
281
|
+
android:layout_centerHorizontal="true"
|
|
282
|
+
/>
|
|
283
|
+
<TextView
|
|
284
|
+
android:id="@+id/infoText"
|
|
285
|
+
android:layout_width="wrap_content"
|
|
286
|
+
android:layout_height="wrap_content"
|
|
287
|
+
android:text=""
|
|
288
|
+
android:textSize="15sp"
|
|
289
|
+
android:fontFamily="sans-serif"
|
|
290
|
+
android:textColor="@color/white"
|
|
291
|
+
/>
|
|
292
|
+
</LinearLayout>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
</LinearLayout>
|
|
296
|
+
</LinearLayout>
|
|
297
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
Binary file
|