Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  3. id="com.tokbox.cordova.opentok"
  4. version="1.0.2">
  5.  
  6. <name>OpenTokCordovaPlugin</name>
  7. <description>Add live video streaming to your Cordova Application</description>
  8. <license>Apache 2.0</license>
  9. <keywords>opentok,tokbox</keywords>
  10.  
  11. <platform name="android">
  12. <asset src="www/opentok.js" target="opentok.js" />
  13.  
  14. <source-file src="src/android/com/tokbox/cordova/OpenTokAndroidPlugin.java"
  15. target-dir="src/com/tokbox/cordova/" />
  16.  
  17. <config-file target="AndroidManifest.xml" parent="/manifest">
  18. <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="17" />
  19. <uses-permission android:name="android.permission.CAMERA" />
  20. <uses-permission android:name="android.permission.INTERNET" />
  21. <uses-permission android:name="android.permission.RECORD_AUDIO" />
  22. <uses-permission android:name="android.permission.WAKE_LOCK" />
  23. <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
  24. <uses-feature android:name="android.hardware.camera" android:required="true" />
  25. <uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />
  26. </config-file>
  27.  
  28. <!-- copy opentok sdk -->
  29. <source-file src="src/android/libs/opentok-android-sdk-2.2.1.jar" target-dir="libs/" />
  30. <source-file src="src/android/libs/armeabi/libopentok.so" target-dir="libs/armeabi" />
  31.  
  32. <config-file target="config.xml" parent="/*">
  33. <feature name="OpenTokPlugin">
  34. <param name="android-package" value="com.tokbox.cordova.OpenTokAndroidPlugin"/>
  35. </feature>
  36. </config-file>
  37.  
  38. </platform>
  39.  
  40. <!-- ios -->
  41. <platform name="ios">
  42. <asset src="www/opentok.js" target="opentok.js" />
  43.  
  44. <header-file src="src/ios/OpenTokPlugin.h" />
  45. <source-file src="src/ios/OpenTokPlugin.m" />
  46.  
  47. <framework src="src/ios/Opentok.framework" custom="true" />
  48. <framework src="Foundation.framework" />
  49. <framework src="UIKit.framework" />
  50. <framework src="AVFoundation.framework" />
  51. <framework src="QuartzCore.framework" />
  52. <framework src="OpenGLES.framework" />
  53. <framework src="CoreVideo.framework" />
  54. <framework src="AudioToolbox.framework" />
  55. <framework src="Security.framework" />
  56. <framework src="CoreMedia.framework" />
  57. <framework src="SystemConfiguration.framework" />
  58. <framework src="CFNetwork.framework" />
  59. <framework src="CoreTelephony.framework" />
  60. <framework src="libstdc++.6.0.9.dylib" />
  61. <framework src="libz.dylib" />
  62. <framework src="libsqlite3.dylib" />
  63. <framework src="libxml2.dylib" />
  64.  
  65. <!-- Adopts project's config.xml to include the OpenTokPlugin and domain whitelists -->
  66. <config-file target="config.xml" parent="/*/plugins">
  67. <feature name="OpenTokPlugin">
  68. <param name="ios-package" value="OpenTokPlugin"/>
  69. </feature>
  70. </config-file>
  71. <config-file target="config.xml" parent="/*">
  72. <access origin="*" />
  73. </config-file>
  74. </platform>
  75. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement