-
Notifications
You must be signed in to change notification settings - Fork 73
/
plugin.xml
78 lines (63 loc) · 3.4 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.phonegap.plugins.twilioclient"
version="1.0.7">
<name>TwilioClient</name>
<description>Use the native Twilio Client for iOS or Android with Cordova/PhoneGap and the Twilio Client JavaScript API</description>
<author>Stevie Graham/Lyle Pratt/Jeff Linwood</author>
<license>Apache</license>
<asset src="www/tcPlugin.js" target="js/tcPlugin.js" />
<!-- android -->
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.phonegap.plugins.twilioclient.IncomingConnectionActivity" android:theme="@android:style/Theme.NoDisplay"/>
<service android:name="com.twilio.client.TwilioClientService" android:exported="false" />
</config-file>
<config-file target="res/xml/config.xml" parent="/widget">
<feature name="TCPlugin">
<param name="android-package" value="com.phonegap.plugins.twilioclient.TCPlugin"/>
</feature>
</config-file>
<framework src="com.android.support:support-v4:+" />
<framework src="com.twilio:client-android:1.2.17"/>
<source-file src="src/android/com/phonegap/plugins/twilioclient/IncomingConnectionActivity.java"
target-dir="src/com/phonegap/plugins/twilioclient" />
<source-file src="src/android/com/phonegap/plugins/twilioclient/TCPlugin.java"
target-dir="src/com/phonegap/plugins/twilioclient" />
</platform>
<!-- ios -->
<platform name="ios">
<!-- Add the Twilio Client plugin to the iOS app's config.xml -->
<config-file target="config.xml" parent="widget">
<feature name="TCPlugin">
<param name="ios-package"
value="TCPlugin"/>
</feature>
</config-file>
<!-- Add support for background VOIP and audio to the plist -->
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>voip</string>
<string>audio</string>
</array>
</config-file>
<framework src="AudioToolbox.framework" />
<framework src="AVFoundation.framework" />
<framework src="CFNetwork.framework" />
<framework src="SystemConfiguration.framework" />
<header-file src="src/ios/TCPlugin.h" />
<source-file src="src/ios/TCPlugin.m" />
<info>
You need to download __Twilio Client for iOS__ from https://www.twilio.com/docs/client/ios. Uncompress the download - you will need to follow a few steps that plugman can not do yet:
* Add the Twilio Client static libraries (the .a files in the Libraries folder) to your Xcode project
* Add the Twilio Client headers files (the .h files in the Headers folder) to your Xcode project
</info>
</platform>
</plugin>