-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
157 lines (130 loc) · 10.2 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-accura-kyc"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
version="0.1.0">
<name>ACCURAService</name>
<description>A Cordova plugin for ACCURAService</description>
<license>BSD-3</license>
<!--<dependency id="cordova-plugin-file" url="https://github.com/apache/cordova-plugin-file.git"/>-->
<dependency id="cordova-plugin-screen-orientation" url="https://github.com/apache/cordova-plugin-screen-orientation.git"/>
<dependency id="cordova-plugin-streaming-media" url="https://github.com/nchutchind/cordova-plugin-streaming-media.git"/>
<js-module name="Promise" src="www/Promise.js">
<clobbers target="Promise" />
</js-module>
<js-module name="ACCURAService" src="www/ACCURA.js">
<clobbers target="cordova.plugins.ACCURAService" />
</js-module>
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
</config-file>
<framework src="androidx.appcompat:appcompat:1.3.0" />
<framework src="androidx.constraintlayout:constraintlayout:2.0.4" />
<lib-file src="src/android/accura_kyc.aar"/>
<framework src="com.google.android.gms:play-services-mlkit-text-recognition:16.3.0" />
<framework src="com.google.android.gms:play-services-mlkit-face-detection:16.2.0" />
<framework src="com.google.android.gms:play-services-vision:20.1.3" />
<framework src="com.scottyab:rootbeer-lib:0.1.0" />
<framework src="com.google.code.gson:gson:2.8.6" />
<framework src="com.amitshekhar.android:android-networking:1.0.2" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="accura.kyc.plugin.OcrActivity" android:screenOrientation="locked" android:theme="@style/AppTheme" />
<activity android:name="accura.kyc.plugin.FaceMatchActivity" android:screenOrientation="locked" android:theme="@style/AppTheme" />
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="ACCURAService">
<param name="android-package" value="accura.kyc.plugin.ACCURAService"/>
</feature>
<access origin="http://localhost/*" />
</config-file>
<source-file src="src/android/accura-OCR/ACCURAService.java" target-dir="src/accura/kyc/plugin/" />
<source-file src="src/android/accura-OCR/FaceMatchActivity.java" target-dir="src/accura/kyc/plugin/" />
<source-file src="src/android/accura-OCR/OcrActivity.java" target-dir="src/accura/kyc/plugin/" />
<resource-file src="src/android/accura-OCR/layout/activity_face_match.xml" target="res/layout/activity_face_match.xml"/>
<resource-file src="src/android/accura-OCR/layout/custom_frame_layout.xml" target="res/layout/custom_frame_layout.xml"/>
<resource-file src="src/android/accura-OCR/layout/ocr_activity.xml" target="res/layout/ocr_activity.xml"/>
<resource-file src="src/android/accura-OCR/values/accura_strings.xml" target="res/values/accura_strings.xml"/>
<resource-file src="src/android/accura-OCR/values/accura_colors.xml" target="res/values/accura_colors.xml"/>
<resource-file src="src/android/accura-OCR/values/accura_styles.xml" target="res/values/accura_styles.xml"/>
<resource-file src="src/android/configs/accura_error_titles_configs.xml" target="res/values/accura_error_titles_configs.xml"/>
<resource-file src="src/android/configs/accura_scan_titles_configs.xml" target="res/values/accura_scan_titles_configs.xml"/>
<resource-file src="src/android/configs/face_match_config.xml" target="res/values/face_match_config.xml"/>
<resource-file src="src/android/configs/liveness_config.xml" target="res/values/liveness_config.xml"/>
<resource-file src="src/android/configs/recog_engine_config.xml" target="res/values/recog_engine_config.xml"/>
<source-file src="src/android/accura-OCR/drawables/drawable/flip_camera_icon.png" target-dir="res/drawable/"/>
<source-file src="src/android/accura-OCR/drawables/layout-land/custom_frame_layout.xml" target-dir="res/layout-land/"/>
<source-file src="src/android/accura-OCR/drawables/layout-land/ocr_activity.xml" target-dir="res/layout-land/"/>
<hook type="after_plugin_install" src="scripts/afterBuild.js" />
<hook type="before_plugin_rm" src="scripts/afterRemove.js" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="ACCURAService">
<param name="ios-package" value="ACCURAService"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>App needs to access camera to scan your document and provide you with accurate result</string>
</config-file>
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>App needs to photo library to save your document</string>
</config-file>
<config-file target="*-Info.plist" parent="NSPhotoLibraryAddUsageDescription">
<string>App needs to access camera to scan your document and provide you with accurate result</string>
</config-file>
<config-file target="*-Info.plist" parent="UIFileSharingEnabled">
<true/>
</config-file>
<config-file target="*-Info.plist" parent="LSSupportsOpeningDocumentsInPlace">
<true/>
</config-file>
<config-file target="*-Info.plist" parent="UISupportsDocumentBrowser">
<true/>
</config-file>
<!-- <podspec>-->
<!-- <config>-->
<!-- <source url="https://github.com/CocoaPods/Specs.git"/>-->
<!-- </config>-->
<!-- <pods use-frameworks="true">-->
<!-- <pod name="AFNetworking" spec="~> 3.2.1" />-->
<!-- </pods>-->
<!-- </podspec>-->
<framework src="src/ios/AccuraKYC.framework" custom="true" embed="true" />
<!-- <header-file src="src/ios/accura-OCR/cordova-accura-bridge-header.h" type="BridgingHeader" />-->
<source-file src="src/ios/accura-OCR/resources/back.imageset/back480.png" target-dir="../../Images.xcassets/back.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/back.imageset/back720.png" target-dir="../../Images.xcassets/back.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/back.imageset/back1080.png" target-dir="../../Images.xcassets/back.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/back.imageset/Contents.json" target-dir="../../Images.xcassets/back.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/flip.imageset/flip.png" target-dir="../../Images.xcassets/flip.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/flip.imageset/[email protected]" target-dir="../../Images.xcassets/flip.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/flip.imageset/[email protected]" target-dir="../../Images.xcassets/flip.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/flip.imageset/Contents.json" target-dir="../../Images.xcassets/flip.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/icn_flip.imageset/50.png" target-dir="../../Images.xcassets/icn_flip.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/icn_flip.imageset/100.png" target-dir="../../Images.xcassets/icn_flip.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/icn_flip.imageset/100-1.png" target-dir="../../Images.xcassets/icn_flip.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/icn_flip.imageset/Contents.json" target-dir="../../Images.xcassets/icn_flip.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/accuraScanLogo.imageset/reg_logo.png" target-dir="../../Images.xcassets/accuraScanLogo.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/accuraScanLogo.imageset/reg_logo-1.png" target-dir="../../Images.xcassets/accuraScanLogo.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/accuraScanLogo.imageset/reg_logo-2.png" target-dir="../../Images.xcassets/accuraScanLogo.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/accuraScanLogo.imageset/Contents.json" target-dir="../../Images.xcassets/accuraScanLogo.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/logo.imageset/Contents.json" target-dir="../../Images.xcassets/logo.imageset/"/>
<source-file src="src/ios/accura-OCR/resources/logo.imageset/logo.png" target-dir="../../Images.xcassets/logo.imageset/"/>
<source-file src="src/ios/accura-OCR/ACCURAService.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/accura-OCR/ViewController.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/accura-OCR/FMController.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/accura-OCR/LVController.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/configs/accura_error_configs.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/configs/accura_scan_configs.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/configs/accura_titles.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/configs/face_match_configs.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/configs/liveness_config.swift" target-dir="accura-kyc/"/>
<source-file src="src/ios/configs/recog_engin_configs.swift" target-dir="accura-kyc/"/>
<resource-file src="src/ios/accuraface.license" target="AccuraScan/accuraface.license"/>
<resource-file src="src/ios/key.license" target="AccuraScan/key.license"/>
<resource-file src="src/ios/accura-OCR/MainStoryboard_iPhone.storyboard" target="MainStoryboard_iPhone.storyboard"/>
</platform>
</plugin>