@kaleyra/video-react-native-module 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +2 -2
- package/android/src/main/assets/kaleyra_video_wrapper_info.txt +1 -1
- package/android/src/main/java/com/kaleyra/video_react_native_module/VideoNativeModule.kt +12 -12
- package/ios/PluginInfo/_KaleyraVideoHybridVersionInfo.swift +1 -1
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/utils/TLSSocketFactoryCompat.kt +4 -6
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
buildscript {
|
|
5
5
|
ext {
|
|
6
6
|
gradleVersion = "8.1.1"
|
|
7
|
-
kotlinVersion = "2.
|
|
7
|
+
kotlinVersion = "2.1.20"
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
repositories {
|
|
@@ -23,7 +23,7 @@ def isNewArchitectureEnabled() {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
plugins {
|
|
26
|
-
id 'com.google.devtools.ksp' version "2.
|
|
26
|
+
id 'com.google.devtools.ksp' version "2.1.20-1.0.31"
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
apply plugin: "com.android.library"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
React/2.3.
|
|
1
|
+
React/2.3.3
|
|
@@ -62,39 +62,39 @@ class VideoNativeModule(
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
@ReactMethod
|
|
65
|
-
fun configure(payload: String)
|
|
65
|
+
fun configure(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::configureBridge.name, payload) }
|
|
66
66
|
|
|
67
67
|
@ReactMethod
|
|
68
|
-
fun connect(payload: String)
|
|
68
|
+
fun connect(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::connect.name, payload) }
|
|
69
69
|
|
|
70
70
|
@ReactMethod
|
|
71
|
-
fun setAccessTokenResponse(payload: String)
|
|
71
|
+
fun setAccessTokenResponse(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setAccessTokenResponse.name, payload) }
|
|
72
72
|
|
|
73
73
|
@ReactMethod
|
|
74
|
-
private fun disconnect()
|
|
74
|
+
private fun disconnect() { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::disconnect.name) }
|
|
75
75
|
|
|
76
76
|
@ReactMethod
|
|
77
|
-
fun reset()
|
|
77
|
+
fun reset() { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::reset.name) }
|
|
78
78
|
|
|
79
79
|
@ReactMethod
|
|
80
|
-
private fun clearUserCache()
|
|
80
|
+
private fun clearUserCache() { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::clearUserCache.name) }
|
|
81
81
|
|
|
82
82
|
@ReactMethod
|
|
83
|
-
fun setDisplayModeForCurrentCall(payload: String)
|
|
83
|
+
fun setDisplayModeForCurrentCall(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setDisplayModeForCurrentCall.name, payload) }
|
|
84
84
|
|
|
85
85
|
@ReactMethod
|
|
86
|
-
fun startCall(payload: String)
|
|
86
|
+
fun startCall(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startCall.name, payload) }
|
|
87
87
|
|
|
88
88
|
@ReactMethod
|
|
89
|
-
fun startCallUrl(payload: String)
|
|
89
|
+
fun startCallUrl(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startCallUrl.name, payload) }
|
|
90
90
|
|
|
91
91
|
@ReactMethod
|
|
92
|
-
fun startChat(payload: String)
|
|
92
|
+
fun startChat(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startChat.name, payload) }
|
|
93
93
|
|
|
94
94
|
@ReactMethod
|
|
95
|
-
fun addUsersDetails(payload: String)
|
|
95
|
+
fun addUsersDetails(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::addUsersDetails.name, payload) }
|
|
96
96
|
|
|
97
97
|
@ReactMethod
|
|
98
|
-
fun removeUsersDetails()
|
|
98
|
+
fun removeUsersDetails() { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::removeUserDetails.name) }
|
|
99
99
|
|
|
100
100
|
}
|
|
@@ -60,13 +60,11 @@ internal class TLSSocketFactoryCompat : SSLSocketFactory {
|
|
|
60
60
|
if (socket !is SSLSocket) return null
|
|
61
61
|
//Create list of supported protocols
|
|
62
62
|
val supportedProtocols = ArrayList<String>()
|
|
63
|
-
for (protocol in socket.
|
|
64
|
-
//Only add TLS protocols (don't want
|
|
65
|
-
if (protocol.
|
|
63
|
+
for (protocol in socket.supportedProtocols) {
|
|
64
|
+
//Only add TLS protocols (don't want to support older SSL versions)
|
|
65
|
+
if (protocol.uppercase().contains("TLS")) supportedProtocols.add(protocol)
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
if (!supportedProtocols.contains("TLSv1.1")) supportedProtocols.add("TLSv1.1")
|
|
69
|
-
if (!supportedProtocols.contains("TLSv1.2")) supportedProtocols.add("TLSv1.2")
|
|
67
|
+
|
|
70
68
|
val protocolArray = supportedProtocols.toTypedArray()
|
|
71
69
|
|
|
72
70
|
//enable protocols in our list
|