@kaleyra/video-react-native-module 2.3.1 → 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.
@@ -4,7 +4,7 @@
4
4
  buildscript {
5
5
  ext {
6
6
  gradleVersion = "8.1.1"
7
- kotlinVersion = "1.9.0"
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 "1.9.0-1.0.13"
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
1
+ React/2.3.3
@@ -62,39 +62,39 @@ class VideoNativeModule(
62
62
  }
63
63
 
64
64
  @ReactMethod
65
- fun configure(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::configureBridge.name, payload)
65
+ fun configure(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::configureBridge.name, payload) }
66
66
 
67
67
  @ReactMethod
68
- fun connect(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::connect.name, payload)
68
+ fun connect(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::connect.name, payload) }
69
69
 
70
70
  @ReactMethod
71
- fun setAccessTokenResponse(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setAccessTokenResponse.name, payload)
71
+ fun setAccessTokenResponse(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setAccessTokenResponse.name, payload) }
72
72
 
73
73
  @ReactMethod
74
- private fun disconnect() = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::disconnect.name)
74
+ private fun disconnect() { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::disconnect.name) }
75
75
 
76
76
  @ReactMethod
77
- fun reset() = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::reset.name)
77
+ fun reset() { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::reset.name) }
78
78
 
79
79
  @ReactMethod
80
- private fun clearUserCache() = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::clearUserCache.name)
80
+ private fun clearUserCache() { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::clearUserCache.name) }
81
81
 
82
82
  @ReactMethod
83
- fun setDisplayModeForCurrentCall(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setDisplayModeForCurrentCall.name, payload)
83
+ fun setDisplayModeForCurrentCall(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setDisplayModeForCurrentCall.name, payload) }
84
84
 
85
85
  @ReactMethod
86
- fun startCall(payload: String)= reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startCall.name, payload)
86
+ fun startCall(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startCall.name, payload) }
87
87
 
88
88
  @ReactMethod
89
- fun startCallUrl(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startCallUrl.name, payload)
89
+ fun startCallUrl(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startCallUrl.name, payload) }
90
90
 
91
91
  @ReactMethod
92
- fun startChat(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startChat.name, payload)
92
+ fun startChat(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startChat.name, payload) }
93
93
 
94
94
  @ReactMethod
95
- fun addUsersDetails(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::addUsersDetails.name, payload)
95
+ fun addUsersDetails(payload: String) { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::addUsersDetails.name, payload) }
96
96
 
97
97
  @ReactMethod
98
- fun removeUsersDetails() = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::removeUserDetails.name)
98
+ fun removeUsersDetails() { reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::removeUserDetails.name) }
99
99
 
100
100
  }
@@ -7,7 +7,7 @@ import Foundation
7
7
  class _KaleyraVideoHybridVersionInfo: NSObject {
8
8
 
9
9
  @objc
10
- static let krvVersion: String = "2.3.1"
10
+ static let krvVersion: String = "2.3.3"
11
11
 
12
12
  @objc
13
13
  static let krvPlatform: String = "react"
@@ -1,8 +1,8 @@
1
1
  def kaleyraVideoSdkVersion = "4.10.1"
2
2
 
3
3
  def gsonVersion = "2.9.1"
4
- def kotlinVersionVersion = "1.9.0"
5
- def jsonSerializationVersionVersion = "1.6.0"
4
+ def kotlinVersion = "1.9.0"
5
+ def jsonSerializationVersion = "1.6.0"
6
6
  def roomVersion = "2.5.2"
7
7
 
8
8
  def junitVersion = "4.13.2"
@@ -57,8 +57,8 @@ dependencies {
57
57
  implementation "com.kaleyra:video-extension-external-camera"
58
58
 
59
59
  implementation "com.google.code.gson:gson:$gsonVersion"
60
- implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersionVersion"
61
- implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$jsonSerializationVersionVersion"
60
+ implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
61
+ implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$jsonSerializationVersion"
62
62
  implementation "androidx.room:room-runtime:$roomVersion"
63
63
  ksp "androidx.room:room-compiler:$roomVersion"
64
64
 
@@ -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.enabledProtocols) {
64
- //Only add TLS protocols (don't want ot support older SSL versions)
65
- if (protocol.toUpperCase().contains("TLS")) supportedProtocols.add(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
- //Force add TLSv1.1 and 1.2 if not already added
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaleyra/video-react-native-module",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "Kaleyra Video module for react native.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",