Socket
Socket
Sign inDemoInstall

cordova-plugin-iosrtc

Package Overview
Dependencies
17
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.0 to 8.0.1

5

CHANGELOG.md

@@ -0,4 +1,7 @@

#### Version 8.0.1
* fix RTCPeerConnection.removeTrack support for sender without track
* add support for local description rollback #704 via @slavchev
#### Version 8.0.0
* implement RTCPeerConnection.addTransceiver #589 via @agelito
* add support for local description rollback #704 via @slavchev
* fix RtpSenders inconsistency after removeTrack call #702 via @RSATom

@@ -5,0 +8,0 @@ * fix RTCRtpSender MediaStreamTrack replace #699 via @RSATom

@@ -92,38 +92,1 @@ # Building

When adding ios support using `npx cap add ios` the bitcode setting mentioned above will need to be set to 'NO' for the App project. Also see above for CocoaPods concerns since `pod install` will run every time you do `npx cap sync ios`
#### Apple Store Submission
You should strip simulator (i386/x86_64) archs from WebRTC binary before submit to Apple Store.
We provide a handy script to do it easily. see below sections.
credit: The script is originally provided via `react-native-webrtc` by [@besarthoxhaj](https://github.com/besarthoxhaj) in [#141](https://github.com/react-native-webrtc/react-native-webrtc/issues/141), thanks!
##### Strip Simulator Archs Usage
The script and example are here: https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/extra/ios_arch.js
1. go to `plugins/cordova-plugin-iosrtc/extra` folder
2. extract all archs first: `node ios_arch.js --extract`
3. re-package device related archs only: `node ios_arch.js --device`
4. delete files generated from `step 2` under `plugins/cordova-plugin-iosrtc/lib/WebRTC.framework/` (e.g. with a command `node ios_arch.js --clean` or manualy `rm plugins/cordova-plugin-iosrtc/lib/WebRTC.framework/WebRTC-*` from application root)
5. you can check current arch use this command `node ios_arch.js --list` or manualy `file plugins/cordova-plugin-iosrtc/lib/WebRTC.framework/WebRTC`
6. Remove ios cordova platform if already added and add ios platform again (e.g. with a command `cordova platform remove ios && cordova platform add ios`) or remove and add only the plugin at your own risk.
###### Capacitor
Using Capacitor; The plugins will be in the node_modules folder so ios_arch will be run in `node_modules/cordova-plugin-iosrtc/extra`
> node node_modules/cordova-plugin-iosrtc/extraios_arch.js --list
> node node_modules/cordova-plugin-iosrtc/extraios_arch.js --simulator
You will need to remove and add ios platform again.
###### Meteor
Using Meteor; The plugins will be in the node_modules folder so ios_arch.js will be run in `.meteor/local/cordova-build/node_modules/cordova-plugin-iosrtc/extra/`
> node .meteor/local/cordova-build/node_modules/cordova-plugin-iosrtc/extra/ios_arch.js --list
> node .meteor/local/cordova-build/node_modules/cordova-plugin-iosrtc/extra/ios_arch.js --simulator
You will need to copy manually the updated WebRTC file, since remove/add platform does not work like cordova:
> cp .meteor/local/cordova-build/node_modules/cordova-plugin-iosrtc/lib/WebRTC.framework/WebRTC .meteor/local/cordova-build/platforms/ios/*/Plugins/cordova-plugin-iosrtc/WebRTC.framework/WebRTC

@@ -9,1 +9,11 @@ # Build *libwebrtc* for cordova-plugin-iosrtc

Once you have WebRTC.framework copy the build into [lib](https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/lib/)
#### Generate xcframework
Once you have WebRTC.framework into [lib](https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/lib/), you need to generate WebRTC.xcframework
The script is here: https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/extra/ios_arch.js
1. go to `plugins/cordova-plugin-iosrtc/extra` folder
2. generate xcframework using: `node ios_arch.js --xcframework`

@@ -558,2 +558,7 @@ /**

// No sender track found
if (!track) {
return;
}
function matchLocalTrack(localTrack) {

@@ -560,0 +565,0 @@ return localTrack.id === track.id;

2

package.json
{
"name": "cordova-plugin-iosrtc",
"version": "8.0.0",
"version": "8.0.1",
"description": "Cordova iOS plugin exposing the full WebRTC W3C JavaScript APIs",

@@ -5,0 +5,0 @@ "author": "Iñaki Baz Castillo (https://inakibaz.me)",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc