-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
76 lines (60 loc) · 3.07 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
<?xml version="1.0" encoding="utf-8" ?>
<plugin id="cordova-plugin-veriff" version="2.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-veriff</name>
<description>Cordova plugin exposing Veriff SDK</description>
<keywords>cordova,phonegap,ecosystem:cordova,cordova-android,cordova-ios,android,ios,ionic,veriff</keywords>
<js-module name="veriff" src="dist/veriff.js">
<clobbers target="VERIFF" />
</js-module>
<platform name="android">
<!-- Android X support -->
<dependency id="cordova-plugin-androidx" />
<dependency id="cordova-plugin-androidx-adapter" />
<!-- config-file -->
<config-file parent="/*" target="res/xml/config.xml">
<feature name="VeriffCordovaPlugin">
<param name="android-package" value="org.apache.cordova.csantosm.VeriffCordovaPlugin" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
</config-file>
<config-file parent="/*" target="AndroidManifest.xml" />
<!-- source-file -->
<source-file src="src/android/VeriffCordovaPlugin.java" target-dir="src/com/csantosm/veriff/cordova/" />
<!-- framework h -->
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
</platform>
<platform name="ios">
<hook type="after_prepare" src="hooks/veriff-swift-support.js" />
<!-- config-file -->
<config-file parent="/*" target="config.xml">
<feature name="VeriffCordovaPlugin">
<param name="ios-package" value="VeriffCordovaPlugin" />
</feature>
</config-file>
<!-- source-file -->
<source-file src="src/ios/VeriffCordovaPlugin.swift" />
<source-file src="src/ios/Utils.swift" />
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git" />
</config>
<pods use-frameworks="true">
<pod name="VeriffSDK" swift-version="4.1.0" />
</pods>
</podspec>
<config-file parent="NSCameraUsageDescription" target="*-Info.plist">
<string>App needs access to your camera</string>
</config-file>
<config-file parent="NSMicrophoneUsageDescription" target="*-Info.plist">
<string>App needs access to your microphone</string>
</config-file>
</platform>
</plugin>