forked from hit0907/cordova-plugin-callkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
102 lines (93 loc) · 3.53 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
<?xml version='1.0' encoding='utf-8' ?>
<plugin
id="cordova-plugin-callkit"
version="1.1.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<name>Cordova CallKit</name>
<js-module name="VoIPPushNotification" src="www/VoIPPushNotification.js">
<clobbers target="VoIPPushNotification" />
</js-module>
<js-module name="CordovaCall" src="www/CordovaCall.js">
<clobbers target="cordova.plugins.CordovaCall" />
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="CordovaCall">
<param
name="android-package"
value="com.dmarc.cordovacall.CordovaCall"
/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission
android:name="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
/>
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission
android:name="android.permission.MANAGE_OWN_CALLS"
/>
<!-- Grants the READ_PHONE_STATE permission only on devices that run
Android 10 (API level 29) and lower. -->
<uses-permission
android:name="android.permission.READ_PHONE_STATE"
android:maxSdkVersion="29"
/>
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</config-file>
<config-file
parent="/manifest/application"
target="AndroidManifest.xml"
>
<service
android:name="com.dmarc.cordovacall.MyConnectionService"
android:label="MyConnectionService"
android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
android:exported="true"
>
<intent-filter>
<action android:name="android.telecom.ConnectionService" />
</intent-filter>
</service>
</config-file>
<source-file
src="src/android/CordovaCall.java"
target-dir="src/com/dmarc/cordovacall"
/>
<source-file
src="src/android/MyConnectionService.java"
target-dir="src/com/dmarc/cordovacall"
/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="CordovaCall">
<param name="ios-package" value="CordovaCall" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>fetch</string>
<string>remote-notification</string>
<string>voip</string>
</array>
</config-file>
<config-file target="*-Debug.plist" parent="aps-environment">
<string>development</string>
</config-file>
<config-file target="*-Release.plist" parent="aps-environment">
<string>production</string>
</config-file>
<header-file src="src/ios/CordovaCall.h" />
<source-file src="src/ios/CordovaCall.m" />
<source-file src="src/ios/AppDelegateCordovaCall.m" />
<framework src="PushKit.framework" />
<framework src="CallKit.framework" />
</platform>
</plugin>