Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

react-native-sdk(android): screen share updates (#14440)

Calinteodor0c45d87d1a44
diff --git a/.gitignore b/.gitignore
index ef258c0118..23c6e23b36 100644
--- a/.gitignore
+++ b/.gitignore
@@ -99,10 +99,6 @@ tsconfig.json
#
react-native-sdk/*.tgz
react-native-sdk/android/src
-!react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java
-!react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetReactNativePackage.java
-!react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java
-!react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/RNOngoingNotification.java
react-native-sdk/images
react-native-sdk/ios
react-native-sdk/lang
diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/ReactInstanceManagerHolder.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/ReactInstanceManagerHolder.java
index d04147c017..b39cf1dcfb 100644
--- a/android/sdk/src/main/java/org/jitsi/meet/sdk/ReactInstanceManagerHolder.java
+++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/ReactInstanceManagerHolder.java
@@ -242,7 +242,7 @@ class ReactInstanceManagerHolder {
options.videoDecoderFactory = new H264AndSoftwareVideoDecoderFactory(eglContext);
options.videoEncoderFactory = new H264AndSoftwareVideoEncoderFactory(eglContext);
options.enableMediaProjectionService = true;
-// options.loggingSeverity = Logging.Severity.LS_INFO;
+// options.loggingSeverity = Logging.Severity.LS_INFO;
Log.d(TAG, "initializing RN with Activity");
diff --git a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java b/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java
deleted file mode 100644
index f817318a4a..0000000000
--- a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.jitsi.meet.sdk;
-
-import android.app.Activity;
-import android.content.Context;
-
-import androidx.annotation.NonNull;
-
-import com.facebook.react.bridge.ReactApplicationContext;
-import com.facebook.react.bridge.ReactContextBaseJavaModule;
-import com.facebook.react.bridge.ReactMethod;
-import com.facebook.react.module.annotations.ReactModule;
-
-
-@ReactModule(name = JMOngoingConferenceModule.NAME)
-class JMOngoingConferenceModule
- extends ReactContextBaseJavaModule {
-
- public static final String NAME = "JMOngoingConference";
-
- public JMOngoingConferenceModule(ReactApplicationContext reactContext) {
- super(reactContext);
- }
-
- @ReactMethod
- public void launch() {
- Context context = getReactApplicationContext();
- Activity currentActivity = getCurrentActivity();
-
- JitsiMeetOngoingConferenceService.launch(context, currentActivity);
- }
-
- @ReactMethod
- public void abort() {
- Context context = getReactApplicationContext();
-
- JitsiMeetOngoingConferenceService.abort(context);
- }
-
- @NonNull
- @Override
- public String getName() {
- return NAME;
- }
-}
diff --git a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java b/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java
deleted file mode 100644
index 20900c3cea..0000000000
--- a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Copyright @ 2019-present 8x8, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jitsi.meet.sdk;
-
-import android.app.Activity;
-import android.app.Notification;
-import android.app.NotificationManager;
-import android.app.Service;
-import android.content.ComponentName;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.os.Build;
-import android.os.Bundle;
-import android.os.IBinder;
-
-import org.jitsi.meet.sdk.log.JitsiMeetLogger;
-
-import java.util.HashMap;
-
-/**
- * This class implements an Android {@link Service}, a foreground one specifically, and it's
- * responsible for presenting an ongoing notification when a conference is in progress.
- * The service will help keep the app running while in the background.
- *
- * See: https://developer.android.com/guide/components/services
- */
-public class JitsiMeetOngoingConferenceService extends Service {
- private static final String TAG = JitsiMeetOngoingConferenceService.class.getSimpleName();
-
- public static void launch(Context context, Activity currentActivity) {
-
- RNOngoingNotification.createOngoingConferenceNotificationChannel(currentActivity);
-
- Intent intent = new Intent(context, JitsiMeetOngoingConferenceService.class);
-
- ComponentName componentName;
-
- try {
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
- componentName = context.startForegroundService(intent);
- } else {
- componentName = context.startService(intent);
- }
- } catch (RuntimeException e) {
- // Avoid crashing due to ForegroundServiceStartNotAllowedException (API level 31).
- // See: https://developer.android.com/guide/components/foreground-services#background-start-restrictions
- JitsiMeetLogger.w(TAG + " Ongoing conference service not started", e);
- return;
- }
-
- if (componentName == null) {
- JitsiMeetLogger.w(TAG + " Ongoing conference service not started");
- }
- }
-
- public static void abort(Context context) {
- Intent intent = new Intent(context, JitsiMeetOngoingConferenceService.class);
- context.stopService(intent);
- }
-
- @Override
- public void onCreate() {
- super.onCreate();
-
- Notification notification = RNOngoingNotification.buildOngoingConferenceNotification(this);
-
- if (notification == null) {
- stopSelf();
- JitsiMeetLogger.w(TAG + " Couldn't start service, notification is null");
- } else {
- startForeground(RNOngoingNotification.NOTIFICATION_ID, notification);
- JitsiMeetLogger.i(TAG + " Service started");
- }
- }
-
- @Override
- public IBinder onBind(Intent intent) {
- return null;
- }
-
- @Override
- public int onStartCommand(Intent intent, int flags, int startId) {
-
- return START_NOT_STICKY;
- }
-}
diff --git a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetReactNativePackage.java b/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetReactNativePackage.java
deleted file mode 100644
index ff2c86f681..0000000000
--- a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetReactNativePackage.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.jitsi.meet.sdk;
-
-import androidx.annotation.NonNull;
-
-import com.facebook.react.ReactPackage;
-import com.facebook.react.bridge.NativeModule;
-import com.facebook.react.bridge.ReactApplicationContext;
-import com.facebook.react.uimanager.ViewManager;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-public class JitsiMeetReactNativePackage implements ReactPackage {
- @NonNull
- @Override
- public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
- List<NativeModule> modules
- = new ArrayList<>(Arrays.<NativeModule>asList(
- new AndroidSettingsModule(reactContext),
- new AppInfoModule(reactContext),
- new AudioModeModule(reactContext),
- new JMOngoingConferenceModule(reactContext),
- new JavaScriptSandboxModule(reactContext),
- new LocaleDetector(reactContext),
- new LogBridgeModule(reactContext),
- new PictureInPictureModule(reactContext),
- new ProximityModule(reactContext),
- new org.jitsi.meet.sdk.net.NAT64AddrInfoModule(reactContext)
- ));
- return modules;
- }
-
- @NonNull
- @Override
- public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
- return Collections.emptyList();
- }
-}
diff --git a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/RNOngoingNotification.java b/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/RNOngoingNotification.java
deleted file mode 100644
index 868c81a852..0000000000
--- a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/RNOngoingNotification.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright @ 2019-present 8x8, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jitsi.meet.sdk;
-
-import android.app.Activity;
-import android.app.Notification;
-import android.app.NotificationChannel;
-import android.app.NotificationManager;
-import android.app.PendingIntent;
-import android.content.Context;
-import android.content.Intent;
-import android.os.Build;
-
-import androidx.annotation.StringRes;
-import androidx.core.app.NotificationCompat;
-
-import org.jitsi.meet.sdk.log.JitsiMeetLogger;
-
-import java.util.Random;
-
-/**
- * Helper class for creating the ongoing notification which is used with
- * {@link JitsiMeetOngoingConferenceService}. It allows the user to easily get back to the app
- * and to hangup from within the notification itself.
- */
-class RNOngoingNotification {
- private static final String TAG = RNOngoingNotification.class.getSimpleName();
-
- static final int NOTIFICATION_ID = new Random().nextInt(99999) + 10000;
-
- static void createOngoingConferenceNotificationChannel(Activity currentActivity) {
-
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
- return;
- }
-
- if (currentActivity == null) {
- JitsiMeetLogger.w(TAG + " Cannot create notification channel: no current context");
- return;
- }
-
- NotificationManager notificationManager
- = (NotificationManager) currentActivity.getSystemService(Context.NOTIFICATION_SERVICE);
-
- NotificationChannel channel
- = notificationManager.getNotificationChannel("JitsiOngoingConferenceChannel");
- if (channel != null) {
- // The channel was already created, no need to do it again.
- return;
- }
-
- channel = new NotificationChannel("JitsiOngoingConferenceChannel", currentActivity.getString(R.string.ongoing_notification_channel_name), NotificationManager.IMPORTANCE_DEFAULT);
- channel.enableLights(false);
- channel.enableVibration(false);
- channel.setShowBadge(false);
-
- notificationManager.createNotificationChannel(channel);
- }
-
- static Notification buildOngoingConferenceNotification(Context context) {
-
- if (context == null) {
- JitsiMeetLogger.w(TAG + " Cannot create notification: no current context");
- return null;
- }
-
- NotificationCompat.Builder builder = new NotificationCompat.Builder(context, "JitsiOngoingConferenceChannel");
-
- builder
- .setCategory(NotificationCompat.CATEGORY_CALL)
- .setContentTitle(context.getString(R.string.ongoing_notification_title))
- .setContentText(context.getString(R.string.ongoing_notification_text))
- .setPriority(NotificationCompat.PRIORITY_DEFAULT)
- .setOngoing(true)
- .setWhen(System.currentTimeMillis())
- .setUsesChronometer(true)
- .setAutoCancel(false)
- .setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
- .setOnlyAlertOnce(true)
- .setSmallIcon(context.getResources().getIdentifier("ic_notification", "drawable", context.getPackageName()));
-
- return builder.build();
- }
-}
diff --git a/react-native-sdk/package-lock.json b/react-native-sdk/package-lock.json
index fb763b7a17..b068733b69 100644
--- a/react-native-sdk/package-lock.json
+++ b/react-native-sdk/package-lock.json
@@ -10,7 +10,7 @@
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
- "@jitsi/js-utils": "2.1.3",
+ "@jitsi/js-utils": "2.2.1",
"@jitsi/logger": "2.0.2",
"@jitsi/rtcstats": "9.5.1",
"@react-navigation/bottom-tabs": "6.5.8",
@@ -19,7 +19,7 @@
"@react-navigation/native": "6.1.7",
"@react-navigation/stack": "6.3.17",
"@xmldom/xmldom": "0.8.7",
- "base64-js": "1.3.1",
+ "base64-js": "1.5.1",
"grapheme-splitter": "1.0.4",
"i18n-iso-countries": "6.8.0",
"i18next": "17.0.6",
@@ -27,7 +27,7 @@
"js-md5": "0.6.1",
"js-sha512": "0.8.0",
"jwt-decode": "2.2.0",
- "lib-jitsi-meet": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1687.0.0+cafe30d7/lib-jitsi-meet.tgz",
+ "lib-jitsi-meet": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1789.0.0+a8f8666b/lib-jitsi-meet.tgz",
"lodash": "4.17.21",
"moment": "2.29.4",
"moment-duration-format": "2.2.2",
@@ -37,7 +37,6 @@
"react-emoji-render": "1.2.4",
"react-i18next": "10.11.4",
"react-linkify": "1.0.0-alpha",
- "react-native-callstats": "3.73.22",
"react-native-dialog": "https://github.com/jitsi/react-native-dialog/releases/download/v9.2.2-jitsi.1/react-native-dialog-9.2.2.tgz",
"react-native-svg-transformer": "1.1.0",
"react-native-tab-view": "3.5.2",
@@ -53,12 +52,13 @@
},
"peerDependencies": {
"@amplitude/react-native": "2.7.0",
+ "@braintree/sanitize-url": "7.0.0",
"@giphy/react-native-sdk": "2.3.0",
- "@react-native-async-storage/async-storage": "1.19.3",
+ "@react-native-async-storage/async-storage": "1.19.4",
"@react-native-community/clipboard": "1.5.1",
- "@react-native-community/netinfo": "9.4.1",
+ "@react-native-community/netinfo": "11.1.0",
"@react-native-community/slider": "4.4.3",
- "@react-native-google-signin/google-signin": "10.0.1",
+ "@react-native-google-signin/google-signin": "10.1.0",
"react": "*",
"react-native": "*",
"react-native-background-timer": "2.4.1",
@@ -69,7 +69,7 @@
"react-native-get-random-values": "1.9.0",
"react-native-immersive-mode": "2.0.1",
"react-native-keep-awake": "4.0.0",
- "react-native-orientation-locker": "1.5.0",
+ "react-native-orientation-locker": "1.6.0",
"react-native-pager-view": "6.2.0",
"react-native-paper": "5.10.3",
"react-native-performance": "5.0.0",
@@ -78,10 +78,11 @@
"react-native-sound": "0.11.2",
"react-native-splash-screen": "3.3.0",
"react-native-svg": "13.13.0",
- "react-native-video": "6.0.0-alpha.7",
+ "react-native-video": "6.0.0-alpha.11",
"react-native-watch-connectivity": "1.1.0",
- "react-native-webrtc": "111.0.3",
- "react-native-webview": "13.5.1"
+ "react-native-webrtc": "118.0.2",
+ "react-native-webview": "13.5.1",
+ "text-encoding": "0.7.0"
}
},
"node_modules/@ampproject/remapping": {
@@ -396,13 +397,13 @@
"integrity": "sha512-Waj1cwPXJDucOib4a3bAISsKJVb15MKi9IvmTI/7ssVEm6sywXGjVJDhl6/umt1pK1ZS7PacXU3A1PmFKHEZ2w=="
},
"node_modules/@jitsi/js-utils": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/@jitsi/js-utils/-/js-utils-2.1.3.tgz",
- "integrity": "sha512-fXoNLu2JHQGPgzjCDG5qWPPStiXI+AxSzu1JIVY4dMULIFsw4a+doMgcjTIlSfB393J2xccKQYwZSejZUn9MEw==",
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/@jitsi/js-utils/-/js-utils-2.2.1.tgz",
+ "integrity": "sha512-4Ia4hWO7aTMGbYftzeBr+IHIu5YxiWwTlhsSK34z6925oNAUNI863WgYYGTcXkW/1yuM6LBZrnuZBySDqosISA==",
"dependencies": {
"@hapi/bourne": "^3.0.0",
- "bowser": "2.7.0",
- "js-md5": "0.7.3"
+ "js-md5": "0.7.3",
+ "ua-parser-js": "1.0.35"
}
},
"node_modules/@jitsi/js-utils/node_modules/js-md5": {
@@ -443,14 +444,6 @@
"sdp-verify": "checker.js"
}
},
- "node_modules/@jitsi/sdp-simulcast": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/@jitsi/sdp-simulcast/-/sdp-simulcast-0.4.0.tgz",
- "integrity": "sha512-jXJM3/XM853UwPlxhSJx5Fc13G4158RIeTgjis3lA286Y7lp18GOR0xFlRvx/5UyhtE3qT2NzSmAwR+CpJohFw==",
- "dependencies": {
- "sdp-transform": "2.3.0"
- }
- },
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
@@ -987,15 +980,24 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
},
- "node_modules/base-64": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz",
- "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA=="
- },
"node_modules/base64-js": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
- "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
},
"node_modules/binary-extensions": {
"version": "2.2.0",
@@ -1010,11 +1012,6 @@
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
"integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="
},
- "node_modules/bowser": {
- "version": "2.7.0",
- "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.7.0.tgz",
- "integrity": "sha512-aIlMvstvu8x+34KEiOHD3AsBgdrzg6sxALYiukOWhFvGMbQI6TRP/iY0LMhUrHs56aD6P1G0Z7h45PUJaa5m9w=="
- },
"node_modules/brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
@@ -2443,14 +2440,6 @@
"graceful-fs": "^4.1.6"
}
},
- "node_modules/jssha": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/jssha/-/jssha-3.3.0.tgz",
- "integrity": "sha512-w9OtT4ALL+fbbwG3gw7erAO0jvS5nfvrukGPMWIAoea359B26ALXGpzy4YJSp9yGnpUvuvOw1nSjSoHDfWSr1w==",
- "engines": {
- "node": "*"
- }
- },
"node_modules/jwt-decode": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-2.2.0.tgz",
@@ -2481,16 +2470,15 @@
},
"node_modules/lib-jitsi-meet": {
"version": "0.0.0",
- "resolved": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1687.0.0+cafe30d7/lib-jitsi-meet.tgz",
- "integrity": "sha512-ky3q5gLeLDHFtenXe7+QlxAh33opz0a3bqEp8svA9urR1AICUi0QthOwmUerTdfSRFU3wfVObF9axlX1fbHZ3A==",
+ "resolved": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1789.0.0+a8f8666b/lib-jitsi-meet.tgz",
+ "integrity": "sha512-nWHUC16US3x9dHz8/auJk8qAsiyvisWr954e5LcaFIImwR8ArD8ZVgyMMeQcnH+a8tFmzSB2NEZR4o/v0lKV9Q==",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
- "@jitsi/js-utils": "2.1.3",
+ "@jitsi/js-utils": "2.2.1",
"@jitsi/logger": "2.0.2",
- "@jitsi/rtcstats": "9.5.1",
+ "@jitsi/rtcstats": "9.7.0",
"@jitsi/sdp-interop": "git+https://github.com/jitsi/sdp-interop#3d49eb4aa26863a3f8d32d7581cdb4321244266b",
- "@jitsi/sdp-simulcast": "0.4.0",
"@testrtc/watchrtc-sdk": "1.36.3",
"async-es": "3.2.4",
"base64-js": "1.3.1",
@@ -2509,6 +2497,30 @@
"webrtc-adapter": "8.1.1"
}
},
+ "node_modules/lib-jitsi-meet/node_modules/@jitsi/rtcstats": {
+ "version": "9.7.0",
+ "resolved": "https://registry.npmjs.org/@jitsi/rtcstats/-/rtcstats-9.7.0.tgz",
+ "integrity": "sha512-OPURb3GO7zciPYoF/5IWLl2VVd90GD9KFlOnLQPalI2gUQDfxYNqn7JqeKAug1peTgml6I2o55lWYINuzPETWQ==",
+ "dependencies": {
+ "@jitsi/js-utils": "^2.2.0",
+ "@jitsi/logger": "2.0.2",
+ "sdp": "^3.0.3",
+ "uuid": "^8.3.2"
+ }
+ },
+ "node_modules/lib-jitsi-meet/node_modules/@jitsi/rtcstats/node_modules/uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/lib-jitsi-meet/node_modules/base64-js": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
+ "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="
+ },
"node_modules/lib-jitsi-meet/node_modules/uuid": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.1.0.tgz",
@@ -3054,15 +3066,6 @@
"tlds": "^1.199.0"
}
},
- "node_modules/react-native-callstats": {
- "version": "3.73.22",
- "resolved": "https://registry.npmjs.org/react-native-callstats/-/react-native-callstats-3.73.22.tgz",
- "integrity": "sha512-1l1n9XIca8VT7Vp/xaQY8grPDmgVp++nx0cYhelOWyn4TwBrWxIOPU1Ok4ODrNiYtnsh+/Dyqq+lSSwZksr7LA==",
- "dependencies": {
- "base-64": "0.1.0",
- "jssha": "^3.2.0"
- }
- },
"node_modules/react-native-dialog": {
"version": "9.2.2",
"resolved": "https://github.com/jitsi/react-native-dialog/releases/download/v9.2.2-jitsi.1/react-native-dialog-9.2.2.tgz",
@@ -3570,6 +3573,24 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/ua-parser-js": {
+ "version": "1.0.35",
+ "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.35.tgz",
+ "integrity": "sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ua-parser-js"
+ },
+ {
+ "type": "paypal",
+ "url": "https://paypal.me/faisalman"
+ }
+ ],
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/uc.micro": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
@@ -4044,13 +4065,13 @@
"integrity": "sha512-Waj1cwPXJDucOib4a3bAISsKJVb15MKi9IvmTI/7ssVEm6sywXGjVJDhl6/umt1pK1ZS7PacXU3A1PmFKHEZ2w=="
},
"@jitsi/js-utils": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/@jitsi/js-utils/-/js-utils-2.1.3.tgz",
- "integrity": "sha512-fXoNLu2JHQGPgzjCDG5qWPPStiXI+AxSzu1JIVY4dMULIFsw4a+doMgcjTIlSfB393J2xccKQYwZSejZUn9MEw==",
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/@jitsi/js-utils/-/js-utils-2.2.1.tgz",
+ "integrity": "sha512-4Ia4hWO7aTMGbYftzeBr+IHIu5YxiWwTlhsSK34z6925oNAUNI863WgYYGTcXkW/1yuM6LBZrnuZBySDqosISA==",
"requires": {
"@hapi/bourne": "^3.0.0",
- "bowser": "2.7.0",
- "js-md5": "0.7.3"
+ "js-md5": "0.7.3",
+ "ua-parser-js": "1.0.35"
},
"dependencies": {
"js-md5": {
@@ -4091,14 +4112,6 @@
}
}
},
- "@jitsi/sdp-simulcast": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/@jitsi/sdp-simulcast/-/sdp-simulcast-0.4.0.tgz",
- "integrity": "sha512-jXJM3/XM853UwPlxhSJx5Fc13G4158RIeTgjis3lA286Y7lp18GOR0xFlRvx/5UyhtE3qT2NzSmAwR+CpJohFw==",
- "requires": {
- "sdp-transform": "2.3.0"
- }
- },
"@jridgewell/gen-mapping": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
@@ -4439,15 +4452,10 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
},
- "base-64": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz",
- "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA=="
- },
"base64-js": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
- "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
},
"binary-extensions": {
"version": "2.2.0",
@@ -4459,11 +4467,6 @@
"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
"integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="
},
- "bowser": {
- "version": "2.7.0",
- "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.7.0.tgz",
- "integrity": "sha512-aIlMvstvu8x+34KEiOHD3AsBgdrzg6sxALYiukOWhFvGMbQI6TRP/iY0LMhUrHs56aD6P1G0Z7h45PUJaa5m9w=="
- },
"brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
@@ -5448,11 +5451,6 @@
"universalify": "^2.0.0"
}
},
- "jssha": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/jssha/-/jssha-3.3.0.tgz",
- "integrity": "sha512-w9OtT4ALL+fbbwG3gw7erAO0jvS5nfvrukGPMWIAoea359B26ALXGpzy4YJSp9yGnpUvuvOw1nSjSoHDfWSr1w=="
- },
"jwt-decode": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-2.2.0.tgz",
@@ -5476,14 +5474,13 @@
}
},
"lib-jitsi-meet": {
- "version": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1687.0.0+cafe30d7/lib-jitsi-meet.tgz",
- "integrity": "sha512-ky3q5gLeLDHFtenXe7+QlxAh33opz0a3bqEp8svA9urR1AICUi0QthOwmUerTdfSRFU3wfVObF9axlX1fbHZ3A==",
+ "version": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1789.0.0+a8f8666b/lib-jitsi-meet.tgz",
+ "integrity": "sha512-nWHUC16US3x9dHz8/auJk8qAsiyvisWr954e5LcaFIImwR8ArD8ZVgyMMeQcnH+a8tFmzSB2NEZR4o/v0lKV9Q==",
"requires": {
- "@jitsi/js-utils": "2.1.3",
+ "@jitsi/js-utils": "2.2.1",
"@jitsi/logger": "2.0.2",
- "@jitsi/rtcstats": "9.5.1",
+ "@jitsi/rtcstats": "9.7.0",
"@jitsi/sdp-interop": "git+https://github.com/jitsi/sdp-interop#3d49eb4aa26863a3f8d32d7581cdb4321244266b",
- "@jitsi/sdp-simulcast": "0.4.0",
"@testrtc/watchrtc-sdk": "1.36.3",
"async-es": "3.2.4",
"base64-js": "1.3.1",
@@ -5502,6 +5499,29 @@
"webrtc-adapter": "8.1.1"
},
"dependencies": {
+ "@jitsi/rtcstats": {
+ "version": "9.7.0",
+ "resolved": "https://registry.npmjs.org/@jitsi/rtcstats/-/rtcstats-9.7.0.tgz",
+ "integrity": "sha512-OPURb3GO7zciPYoF/5IWLl2VVd90GD9KFlOnLQPalI2gUQDfxYNqn7JqeKAug1peTgml6I2o55lWYINuzPETWQ==",
+ "requires": {
+ "@jitsi/js-utils": "^2.2.0",
+ "@jitsi/logger": "2.0.2",
+ "sdp": "^3.0.3",
+ "uuid": "^8.3.2"
+ },
+ "dependencies": {
+ "uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
+ }
+ }
+ },
+ "base64-js": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
+ "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="
+ },
"uuid": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.1.0.tgz",
@@ -5902,15 +5922,6 @@
"tlds": "^1.199.0"
}
},
- "react-native-callstats": {
- "version": "3.73.22",
- "resolved": "https://registry.npmjs.org/react-native-callstats/-/react-native-callstats-3.73.22.tgz",
- "integrity": "sha512-1l1n9XIca8VT7Vp/xaQY8grPDmgVp++nx0cYhelOWyn4TwBrWxIOPU1Ok4ODrNiYtnsh+/Dyqq+lSSwZksr7LA==",
- "requires": {
- "base-64": "0.1.0",
- "jssha": "^3.2.0"
- }
- },
"react-native-dialog": {
"version": "https://github.com/jitsi/react-native-dialog/releases/download/v9.2.2-jitsi.1/react-native-dialog-9.2.2.tgz",
"integrity": "sha512-MKbuBbovO8eGiAM9i6o0nrdBXivhRpzPQ+aVBXGJEPMH7RrCSNUKaCoEpkjfGHlTxjZimi6WjDCjjzCRSHlV1A=="
@@ -6263,6 +6274,11 @@
"is-typed-array": "^1.1.9"
}
},
+ "ua-parser-js": {
+ "version": "1.0.35",
+ "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.35.tgz",
+ "integrity": "sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA=="
+ },
"uc.micro": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
diff --git a/react-native-sdk/package.json b/react-native-sdk/package.json
index cf9a5b7005..0fd873bf34 100644
--- a/react-native-sdk/package.json
+++ b/react-native-sdk/package.json
@@ -11,7 +11,7 @@
"url": "git+https://github.com/jitsi/jitsi-meet.git"
},
"dependencies": {
- "@jitsi/js-utils": "2.1.3",
+ "@jitsi/js-utils": "2.2.1",
"@jitsi/logger": "2.0.2",
"@jitsi/rtcstats": "9.5.1",
"@react-navigation/bottom-tabs": "6.5.8",
@@ -20,7 +20,7 @@
"@react-navigation/native": "6.1.7",
"@react-navigation/stack": "6.3.17",
"@xmldom/xmldom": "0.8.7",
- "base64-js": "1.3.1",
+ "base64-js": "1.5.1",
"grapheme-splitter": "1.0.4",
"i18n-iso-countries": "6.8.0",
"i18next": "17.0.6",
@@ -28,7 +28,7 @@
"i18next-http-backend": "^2.2.1",
"js-sha512": "0.8.0",
"jwt-decode": "2.2.0",
- "lib-jitsi-meet": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1687.0.0+cafe30d7/lib-jitsi-meet.tgz",
+ "lib-jitsi-meet": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1789.0.0+a8f8666b/lib-jitsi-meet.tgz",
"lodash": "4.17.21",
"moment": "2.29.4",
"moment-duration-format": "2.2.2",
@@ -53,12 +53,13 @@
},
"peerDependencies": {
"@amplitude/react-native": "2.7.0",
+ "@braintree/sanitize-url": "7.0.0",
"@giphy/react-native-sdk": "2.3.0",
- "@react-native-async-storage/async-storage": "1.19.3",
+ "@react-native-async-storage/async-storage": "1.19.4",
"@react-native-community/clipboard": "1.5.1",
- "@react-native-community/netinfo": "9.4.1",
+ "@react-native-community/netinfo": "11.1.0",
"@react-native-community/slider": "4.4.3",
- "@react-native-google-signin/google-signin": "10.0.1",
+ "@react-native-google-signin/google-signin": "10.1.0",
"react-native": "*",
"react": "*",
"react-native-background-timer": "2.4.1",
@@ -72,16 +73,17 @@
"react-native-pager-view": "6.2.0",
"react-native-paper": "5.10.3",
"react-native-performance": "5.0.0",
- "react-native-orientation-locker": "1.5.0",
+ "react-native-orientation-locker": "1.6.0",
"react-native-safe-area-context": "4.7.1",
"react-native-screens": "3.24.0",
"react-native-sound": "0.11.2",
"react-native-splash-screen": "3.3.0",
"react-native-svg": "13.13.0",
- "react-native-video": "6.0.0-alpha.7",
+ "react-native-video": "6.0.0-alpha.11",
"react-native-watch-connectivity": "1.1.0",
- "react-native-webrtc": "111.0.3",
- "react-native-webview": "13.5.1"
+ "react-native-webrtc": "118.0.2",
+ "react-native-webview": "13.5.1",
+ "text-encoding": "0.7.0"
},
"overrides": {
"@xmldom/xmldom": "0.8.7"
@@ -96,4 +98,4 @@
"keywords": [
"react-native"
]
-}
+}
\ No newline at end of file
diff --git a/react/features/mobile/react-native-sdk/middleware.js b/react/features/mobile/react-native-sdk/middleware.js
index 21b2f34d10..ab742892da 100644
--- a/react/features/mobile/react-native-sdk/middleware.js
+++ b/react/features/mobile/react-native-sdk/middleware.js
@@ -1,5 +1,3 @@
-import { NativeModules, Platform } from 'react-native';
-
import { getAppProp } from '../../base/app/functions';
import {
CONFERENCE_BLURRED,
@@ -11,7 +9,6 @@ import {
import { SET_AUDIO_MUTED, SET_VIDEO_MUTED } from '../../base/media/actionTypes';
import { PARTICIPANT_JOINED, PARTICIPANT_LEFT } from '../../base/participants/actionTypes';
import MiddlewareRegistry from '../../base/redux/MiddlewareRegistry';
-import StateListenerRegistry from '../../base/redux/StateListenerRegistry';
import { READY_TO_CLOSE } from '../external-api/actionTypes';
import { participantToParticipantInfo } from '../external-api/functions';
import { ENTER_PICTURE_IN_PICTURE } from '../picture-in-picture/actionTypes';
@@ -19,7 +16,6 @@ import { ENTER_PICTURE_IN_PICTURE } from '../picture-in-picture/actionTypes';
import { isExternalAPIAvailable } from './functions';
const externalAPIEnabled = isExternalAPIAvailable();
-const { JMOngoingConference } = NativeModules;
/**
@@ -78,21 +74,3 @@ const { JMOngoingConference } = NativeModules;
return result;
});
-
-/**
- * Before enabling media projection service control on Android,
- * we need to check if native modules are being used or not.
- */
-Platform.OS === 'android' && !externalAPIEnabled && StateListenerRegistry.register(
- state => state['features/base/conference'].conference,
- (conference, previousConference) => {
- if (!conference) {
- JMOngoingConference.abort();
- } else if (conference && !previousConference) {
- JMOngoingConference.launch();
- } else if (conference !== previousConference) {
- JMOngoingConference.abort();
- JMOngoingConference.launch();
- }
- }
-);