Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
sdk(react-native-sdk): fixes (#13525)
Calinteodor9e48943daf12
diff --git a/react-native-sdk/update_dependencies.js b/react-native-sdk/update_dependencies.jsindex 70fd12026c..f106a124de 100644--- a/react-native-sdk/update_dependencies.js+++ b/react-native-sdk/update_dependencies.js@@ -1,10 +1,14 @@/* eslint-disable guard-for-in */+/* global __dirname */const fs = require('fs');+const path = require('path');-const packageJSON = require('../../package.json');+const pathToPackageJSON = path.resolve(__dirname, '../../../package.json');-const RNSDKpackageJSON = require('./package.json');+const packageJSON = require(pathToPackageJSON);++const RNSDKpackageJSON = require(path.resolve(__dirname, './package.json'));/*** Updates dependencies from the app package.json with the peer dependencies of the RNSDK package.json.@@ -14,8 +18,7 @@ function updateDependencies() {for (const key in RNSDKpackageJSON.peerDependencies) {if (!packageJSON.dependencies.hasOwnProperty(key)) {- packageJSON.dependencies[key]- = '*' || RNSDKpackageJSON.peerDependencies[key];+ packageJSON.dependencies[key] = RNSDKpackageJSON.peerDependencies[key];updated = true;}}@@ -24,6 +27,17 @@ function updateDependencies() {return;}+ console.log(`+=========================+The following dependencies were added to your package.json:+\n+${Object.keys(packageJSON.dependencies)}+\n+Make sure you run npm install+If you are building for ios run cd ios && pod install to link them.+=========================+`);+packageJSON.dependencies = Object.keys(packageJSON.dependencies).sort().reduce((item, itemKey) => {@@ -32,14 +46,9 @@ function updateDependencies() {return item;}, {});- console.log(- 'Updating dependencies:',- Object.keys(packageJSON.dependencies)- );-const data = JSON.stringify(packageJSON, null, 2);- fs.writeFileSync('../../package.json', data);+ fs.writeFileSync(pathToPackageJSON, data);console.log('All needed dependencies have been updated. \nPlease run npm install.'