forked from jefflinwood/twilio_client_phonegap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
82 lines (66 loc) · 3.94 KB
/
plugin.xml
File metadata and controls
82 lines (66 loc) · 3.94 KB
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
<?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.2">
<name>TwilioClient</name>
<description>Use the native Twilio Client for iOS or Android wtih 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>
<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" />
<info>
This plugin also uses the Android Support Library V4. You only need one copy of this library (a JAR file) in your libs directory. See http://developer.android.com/tools/support-library/index.html for information about how to download this library to your computer. Then copy android-support-v4.jar to your libs folder.
You need to download __Twilio Client for Android__ from https://www.twilio.com/docs/client/android. Uncompress the download - you will need to follow one step that plugman can not do yet:
* Add the Twilio Client Java libraries (everything in the libs folder) to your project's libs folder - (platforms/android/libs)
</info>
</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>