-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathplugin.xml
More file actions
116 lines (102 loc) · 4.69 KB
/
plugin.xml
File metadata and controls
116 lines (102 loc) · 4.69 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?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.bettervoice.phonertc"
version="2.0.0">
<name>PhoneRTC</name>
<description></description>
<license></license>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="phonertc.js" name="PhoneRTC">
<clobbers target="cordova.plugins.phonertc" />
</js-module>
<js-module name="mediahandler" src="mediaHandler.js" />
<js-module name="mediahandlerlegacy" src="mediaHandlerLegacy-0.6.4.js" />
<platform name="ios">
<info>
---------------------
PhoneRTC Installation
---------------------
In order to install PhoneRTC on iOS, please follow these steps:
1) Go platforms/ios and click on [ProjectName].xcodeproj to open it with XCode
2) Go to your project settings
3) In `General`, change `Deployment Target` to 7.0 or above
4) Go to `Build Settings` and change:
`Valid Architectures` => armv7 + arm64 (no armv7s)
`Build Active Architecture Only` => No
`Objective-C Bridging Header` =>
[ProjectName]/Plugins/com.bettervoice.phonertc/Bridging-Header.h
`Swift Optimization Level` => -Onone
`Runpath Search Paths` =>
$(inherited) @executable_path/Frameworks
`Enable Bitcode` => No
5) Repeat step #4 for the CordovaLib project
6) Download the WebRTC unified (32 & 64 bit) framework lib from:
http://s3.bettervoice.com/webrtclibs/webrtc-ios-unified.a (x86+arm)
7) Add the downloaded library as a framework to your iOS Xcode project.
8) Enable Audio + VoIP Background Modes
---------------------
</info>
<config-file target="config.xml" parent="/*">
<feature name="PhoneRTCPlugin">
<param name="ios-package" value="PhoneRTCPlugin" />
</feature>
</config-file>
<header-file src="ios/RTCAudioSource.h" />
<header-file src="ios/RTCAudioTrack.h" />
<header-file src="ios/RTCDataChannel.h" />
<header-file src="ios/RTCEAGLVideoView.h" />
<header-file src="ios/RTCI420Frame.h" />
<header-file src="ios/RTCICECandidate.h" />
<header-file src="ios/RTCICEServer.h" />
<header-file src="ios/RTCMediaConstraints.h" />
<header-file src="ios/RTCMediaSource.h" />
<header-file src="ios/RTCMediaStream.h" />
<header-file src="ios/RTCMediaStreamTrack.h" />
<header-file src="ios/RTCNSGLVideoView.h" />
<header-file src="ios/RTCOpenGLVideoRenderer.h" />
<header-file src="ios/RTCPair.h" />
<header-file src="ios/RTCPeerConnection.h" />
<header-file src="ios/RTCPeerConnectionDelegate.h" />
<header-file src="ios/RTCPeerConnectionFactory.h" />
<header-file src="ios/RTCSessionDescription.h" />
<header-file src="ios/RTCSessionDescriptionDelegate.h" />
<header-file src="ios/RTCStatsDelegate.h" />
<header-file src="ios/RTCStatsReport.h" />
<header-file src="ios/RTCTypes.h" />
<header-file src="ios/RTCVideoCapturer.h" />
<header-file src="ios/RTCVideoRenderer.h" />
<header-file src="ios/RTCVideoSource.h" />
<header-file src="ios/RTCVideoTrack.h" />
<header-file src="ios/SRWebSocket.h" />
<header-file src="ios/Bridging-Header.h" />
<source-file src="ios/PhoneRTCPlugin.swift" />
<source-file src="ios/PCObserver.swift" />
<source-file src="ios/Session.swift" />
<source-file src="ios/Config.swift" />
<source-file src="ios/SessionDescriptionDelegate.swift" />
<source-file src="ios/WebSocket.swift" />
<source-file src="ios/WebSocketDelegate.swift" />
<framework src="libc++.dylib" />
<framework src="libstdc++.dylib" />
<framework src="libsqlite3.0.dylib" />
<framework src="libicucore.dylib" />
<framework src="OpenGLES.framework" />
<framework src="CoreVideo.framework" />
<framework src="CoreMedia.framework" />
<framework src="CoreAudio.framework" />
<framework src="CFNetwork.framework" />
<framework src="Security.framework" />
<framework src="Foundation.framework" />
<framework src="AVFoundation.framework" />
<framework src="QuartzCore.framework" />
<framework src="AssetsLibrary.framework" />
<framework src="CoreGraphics.framework" />
<framework src="MobileCoreServices.framework" />
<framework src="CoreLocation.framework" />
<framework src="AudioToolbox.framework" />
<framework src="GLKit.framework" />
</platform>
</plugin>