-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jefflinwood/master
Android PhoneGap Plugin for Twilio Client
- Loading branch information
Showing
8 changed files
with
1,151 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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> |
Oops, something went wrong.