Merge branch 'mediasoup'

This commit is contained in:
CSantos 2021-04-05 15:50:01 +02:00
commit 7950340909
8 changed files with 25313 additions and 3156 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,64 +13,64 @@
},
"private": true,
"dependencies": {
"@angular/common": "11.0.2",
"@angular/core": "11.0.2",
"@angular/forms": "11.0.2",
"@angular/platform-browser": "11.0.2",
"@angular/platform-browser-dynamic": "11.0.2",
"@angular/router": "11.0.2",
"@ionic-native/android-permissions": "5.30.0",
"@ionic-native/core": "5.30.0",
"@ionic-native/splash-screen": "5.30.0",
"@ionic-native/status-bar": "5.30.0",
"@ionic/angular": "5.5.1",
"@angular/common": "11.2.5",
"@angular/core": "11.2.5",
"@angular/forms": "11.2.5",
"@angular/platform-browser": "11.2.5",
"@angular/platform-browser-dynamic": "11.2.5",
"@angular/router": "11.2.5",
"@ionic-native/android-permissions": "5.31.1",
"@ionic-native/core": "5.31.1",
"@ionic-native/splash-screen": "5.31.1",
"@ionic-native/status-bar": "5.31.1",
"@ionic/angular": "5.6.0",
"compare-func": "2.0.0",
"cordova-android": "9.0.0",
"cordova-browser": "6.0.0",
"cordova-ios": "6.1.1",
"cordova-ios": "6.2.0",
"cordova-plugin-android-permissions": "1.1.2",
"cordova-plugin-device": "2.0.3",
"cordova-plugin-ionic-keyboard": "2.2.0",
"cordova-plugin-ionic-webview": "5.0.0",
"cordova-plugin-iosrtc": "6.0.16",
"cordova-plugin-iosrtc": "6.0.20",
"cordova-plugin-splashscreen": "6.0.0",
"cordova-plugin-statusbar": "2.4.3",
"cordova-plugin-whitelist": "1.3.4",
"core-js": "3.6.5",
"core-js": "3.9.1",
"openvidu-browser": "2.17.0",
"rxjs": "6.6.3",
"rxjs": "6.6.6",
"xcode": "3.0.1",
"zone.js": "0.11.3"
"zone.js": "0.11.4"
},
"optionalDependencies": {
"ios-deploy": "1.11.3"
"ios-deploy": "1.11.4"
},
"devDependencies": {
"@angular-devkit/architect": "0.1100.2",
"@angular-devkit/build-angular": "0.1100.2",
"@angular-devkit/core": "11.0.2",
"@angular-devkit/schematics": "11.0.2",
"@angular/cli": "11.0.2",
"@angular/compiler": "11.0.2",
"@angular/compiler-cli": "11.0.2",
"@angular/language-service": "11.0.2",
"@ionic/angular-toolkit": "3.0.0",
"@ionic/schematics-angular": "1.0.7",
"@types/jasmine": "3.5.12",
"@angular-devkit/architect": "0.1101.4",
"@angular-devkit/build-angular": "0.1101.4",
"@angular-devkit/core": "11.1.4",
"@angular-devkit/schematics": "11.1.4",
"@angular/cli": "11.1.4",
"@angular/compiler": "11.2.5",
"@angular/compiler-cli": "11.2.5",
"@angular/language-service": "11.2.5",
"@ionic/angular-toolkit": "3.1.0",
"@types/jasmine": "3.6.6",
"@types/jasminewd2": "2.0.8",
"@types/node": "14.0.27",
"codelyzer": "6.0.0",
"@types/node": "14.14.35",
"codelyzer": "6.0.1",
"jasmine-core": "3.6.0",
"jasmine-spec-reporter": "5.0.2",
"karma": "5.1.1",
"jasmine-spec-reporter": "6.0.0",
"karma": "5.2.0",
"karma-chrome-launcher": "3.1.0",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-jasmine": "4.0.0",
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.5.4",
"protractor": "7.0.0",
"ts-node": "8.10.2",
"tslib": "1.11.1",
"tslint": "6.1.0",
"typescript": "4.0.5"
"ts-node": "9.1.1",
"tslib": "2.1.0",
"tslint": "6.1.3",
"typescript": "4.1.5"
},
"description": "An Ionic project",
"cordova": {

View File

@ -168,7 +168,7 @@ export class AppComponent implements OnDestroy {
}
}
private checkAndroidPermissions(): Promise<any> {
private checkAndroidPermissions(): Promise<void> {
return new Promise((resolve, reject) => {
this.platform.ready().then(() => {
this.androidPermissions

View File

@ -5,5 +5,6 @@
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import 'react-native-get-random-values';
AppRegistry.registerComponent(appName, () => App);

View File

@ -1,46 +1,53 @@
platform :ios, '11.0'
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
install! 'cocoapods', :deterministic_uuids => false
platform :ios, '11.0'
target 'openvidu_react_native' do
# Pods for openvidu_react_native
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
pod 'React', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
config = use_native_modules!
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/callinvoker', :path => '../node_modules/react-native/ReactCommon'
pod 'ReactCommon/turbomodule/core', :path => '../node_modules/react-native/ReactCommon'
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
use_react_native!(:path => config["reactNativePath"])
pod 'react-native-webrtc', :path => '../node_modules/react-native-webrtc'
# pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
# pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
# pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
# pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
# pod 'React', :path => '../node_modules/react-native/'
# pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
# pod 'React-Core', :path => '../node_modules/react-native/'
# pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
# pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
# pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
# pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
# pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
# pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
# pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
# pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
# pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
# pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
# pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
#
# pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
# pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
# pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
# pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
# pod 'ReactCommon/callinvoker', :path => '../node_modules/react-native/ReactCommon'
# pod 'ReactCommon/turbomodule/core', :path => '../node_modules/react-native/ReactCommon'
# pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true
#
# pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
# pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
# pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
# pod 'react-native-webrtc', :path => '../node_modules/react-native-webrtc'
target 'openvidu_react_nativeTests' do
inherit! :complete
# Pods for testing
end
use_native_modules!
end
target 'openvidu_react_native-tvOS' do

File diff suppressed because it is too large Load Diff

View File

@ -229,7 +229,8 @@
00E356EA1AD99517003FC87E /* Sources */,
00E356EB1AD99517003FC87E /* Frameworks */,
00E356EC1AD99517003FC87E /* Resources */,
5F5514A97C0CE59053805E4A /* [CP] Embed Pods Frameworks */,
5CAC88432291D2BF770D7980 /* [CP] Copy Pods Resources */,
0B4D7B04328DA9B7B1714B24 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
@ -251,7 +252,8 @@
13B07F8C1A680F5B00A75B9A /* Frameworks */,
13B07F8E1A680F5B00A75B9A /* Resources */,
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
BE58697D43F3830957D87470 /* [CP] Embed Pods Frameworks */,
C5E4BF76846FD2A73E9575F4 /* [CP] Copy Pods Resources */,
32EE43FECA11B2146EBAAA80 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
@ -437,6 +439,24 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
0B4D7B04328DA9B7B1714B24 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native-openvidu_react_nativeTests/Pods-openvidu_react_native-openvidu_react_nativeTests-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/WebRTC/WebRTC.framework/WebRTC",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WebRTC.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native-openvidu_react_nativeTests/Pods-openvidu_react_native-openvidu_react_nativeTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
0D047C7F700B758D842D987A /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@ -473,13 +493,13 @@
shellPath = /bin/sh;
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
};
5F5514A97C0CE59053805E4A /* [CP] Embed Pods Frameworks */ = {
32EE43FECA11B2146EBAAA80 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native-openvidu_react_nativeTests/Pods-openvidu_react_native-openvidu_react_nativeTests-frameworks.sh",
"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native/Pods-openvidu_react_native-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/WebRTC/WebRTC.framework/WebRTC",
);
name = "[CP] Embed Pods Frameworks";
@ -488,7 +508,25 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native-openvidu_react_nativeTests/Pods-openvidu_react_native-openvidu_react_nativeTests-frameworks.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native/Pods-openvidu_react_native-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
5CAC88432291D2BF770D7980 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native-openvidu_react_nativeTests/Pods-openvidu_react_native-openvidu_react_nativeTests-resources.sh",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native-openvidu_react_nativeTests/Pods-openvidu_react_native-openvidu_react_nativeTests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
612E987CF352FFCDBD6FAD88 /* [CP] Check Pods Manifest.lock */ = {
@ -513,22 +551,22 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
BE58697D43F3830957D87470 /* [CP] Embed Pods Frameworks */ = {
C5E4BF76846FD2A73E9575F4 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native/Pods-openvidu_react_native-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/WebRTC/WebRTC.framework/WebRTC",
"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native/Pods-openvidu_react_native-resources.sh",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
);
name = "[CP] Embed Pods Frameworks";
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WebRTC.framework",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native/Pods-openvidu_react_native-frameworks.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-openvidu_react_native/Pods-openvidu_react_native-resources.sh\"\n";
showEnvVarsInLog = 0;
};
C62DE0BA9862DB5812338011 /* [CP] Check Pods Manifest.lock */ = {
@ -716,7 +754,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.openvidu-react-";
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.openvidu-react";
PRODUCT_NAME = openvidu_react_native;
VERSIONING_SYSTEM = "apple-generic";
};
@ -739,7 +777,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.openvidu-react-";
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.openvidu-react";
PRODUCT_NAME = openvidu_react_native;
VERSIONING_SYSTEM = "apple-generic";
};

View File

@ -8,24 +8,25 @@
"android": "react-native run-android",
"ios": "react-native run-ios",
"clean": "rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules && rm package-lock.json",
"install-ov": "npm i openvidu-react-native-adapter-*.tgz && npm install",
"install-ov": "npm i openvidu-react-native-adapter-*.tgz",
"test": "jest"
},
"dependencies": {
"axios": "0.21.1",
"events": "3.2.0",
"events": "3.3.0",
"openvidu-react-native-adapter": "file:openvidu-react-native-adapter-2.17.0.tgz",
"react": "16.13.1",
"react-native": "0.62.2"
"react": "17.0.1",
"react-native": "0.64.0",
"react-native-get-random-values": "1.6.0"
},
"devDependencies": {
"@babel/core": "7.8.6",
"@babel/runtime": "7.8.4",
"@react-native-community/eslint-config": "0.0.7",
"babel-jest": "25.1.0",
"jest": "25.1.0",
"metro-react-native-babel-preset": "0.58.0",
"react-test-renderer": "16.13.0"
"@babel/core": "7.13.10",
"@babel/runtime": "7.13.10",
"@react-native-community/eslint-config": "2.0.0",
"babel-jest": "26.6.3",
"jest": "26.6.3",
"metro-react-native-babel-preset": "0.65.2",
"react-test-renderer": "17.0.1"
},
"jest": {
"preset": "react-native"