forked from opentok/cordova-plugin-opentok
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
90 lines (76 loc) · 3.48 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-opentok"
version="3.4.3">
<name>OpenTokCordovaPlugin</name>
<description>Add live video streaming to your Cordova Application</description>
<license>Apache 2.0</license>
<keywords>opentok,tokbox</keywords>
<js-module src="www/opentok.js" name="opentok">
<runs />
</js-module>
<engines>
<engine name="cordova" version=">=6.4.0" />
<engine name="cordova-ios" version=">=4.3.0" />
</engines>
<platform name="android">
<framework src="build-extras.gradle" custom="true" type="gradleReference" />
<framework src="com.android.support:appcompat-v7:23.1.0" />
<framework src="com.android.support:design:23.0.0" />
<framework src="com.android.volley:volley:1.1.0" />
<asset src="www/opentok.js" target="opentok.js" />
<source-file src="src/android/OpenTokAndroidPlugin.java" target-dir="src/com/tokbox/cordova/" />
<source-file src="src/android/OpenTokCustomVideoRenderer.java" target-dir="src/com/tokbox/cordova/" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
</config-file>
<!-- copy opentok sdk -->
<config-file target="config.xml" parent="/*">
<feature name="OpenTokPlugin">
<param name="android-package" value="com.tokbox.cordova.OpenTokAndroidPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
</platform>
<!-- ios -->
<platform name="ios">
<asset src="www/opentok.js" target="opentok.js" />
<header-file src="src/ios/UIView+Category.h" />
<source-file src="src/ios/UIView+Category.m" />
<header-file src="src/ios/OpenTokPlugin.h" />
<source-file src="src/ios/OpenTokPlugin.m" />
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods>
<pod name="OpenTok" spec="2.18.1" />
</pods>
</podspec>
<!-- Add support for background audio to the plist -->
<!-- https://tokbox.com/developer/sdks/ios/background-state.html -->
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>audio</string>
</array>
</config-file>
<!-- Adopts project's config.xml to include the OpenTokPlugin and domain whitelists -->
<config-file target="config.xml" parent="/*">
<feature name="OpenTokPlugin">
<param name="ios-package" value="OpenTokPlugin"/>
<param name="onload" value="true"/>
</feature>
</config-file>
</platform>
<platform name="browser">
<hook type="before_plugin_install" src="scripts/downloadJSSDK.js" />
<asset src="node_modules/@opentok/client/dist/js/opentok.min.js" target="opentok.js"/>
</platform>
</plugin>