@kaleyra/video-react-native-module 2.0.0 → 2.0.2

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/README.md CHANGED
@@ -315,7 +315,7 @@ You will need to set the **voipHandlingStrategy** and subscribe to **iOSVoipPush
315
315
  > Be aware that notifications VOIP notifications are different compared to push. They must be always handled by ensuring the invocation of the configure and connect methods in index.js or App.js.
316
316
 
317
317
  ## Android Notifications
318
- Supports automatically **on_call_incoming** and **on_message_sent** notification types.
318
+ When recevied a **on_call_incoming** or **on_message_sent** notification you just need to configure and connect the plugin and it will automatically show the notification.
319
319
 
320
320
  ## Proguard
321
321
  ```groovy
@@ -1 +1 @@
1
- React/2.0.0
1
+ React/2.0.2
@@ -7,7 +7,7 @@ import Foundation
7
7
  class _KaleyraVideoHybridVersionInfo: NSObject {
8
8
 
9
9
  @objc
10
- static let krvVersion: String = "2.0.0"
10
+ static let krvVersion: String = "2.0.2"
11
11
 
12
12
  @objc
13
13
  static let krvPlatform: String = "react"
@@ -1,4 +1,4 @@
1
- def kaleyraVideoSdkVersion = "4.2.1"
1
+ def kaleyraVideoSdkVersion = "4.3.0"
2
2
 
3
3
  def gsonVersion = "2.9.1"
4
4
  def kotlinVersionVersion = "1.9.0"
@@ -6,6 +6,7 @@ package com.kaleyra.video_hybrid_native_bridge.configurator
6
6
  import com.kaleyra.video_common_ui.CallUI
7
7
  import com.kaleyra.video_common_ui.ChatUI
8
8
  import com.kaleyra.video_common_ui.KaleyraVideo
9
+ import com.kaleyra.video_common_ui.PushNotificationHandlingStrategy
9
10
  import com.kaleyra.video_hybrid_native_bridge.KaleyraVideoConfiguration
10
11
  import com.kaleyra.video_hybrid_native_bridge.extensions.toCallActions
11
12
  import com.kaleyra.video_hybrid_native_bridge.extensions.toChatActions
@@ -16,37 +17,38 @@ import kotlinx.coroutines.CoroutineScope
16
17
  import kotlinx.coroutines.launch
17
18
 
18
19
  internal class VideoSDKConfigurator(
19
- private val sdk: KaleyraVideo,
20
- private val repository: VideoHybridBridgeRepository,
21
- private val scope: CoroutineScope
20
+ private val sdk: KaleyraVideo,
21
+ private val repository: VideoHybridBridgeRepository,
22
+ private val scope: CoroutineScope
22
23
  ) : CachedSDKConfigurator {
23
24
 
24
- override var lastConfiguration: KaleyraVideoConfiguration? = null
25
+ override var lastConfiguration: KaleyraVideoConfiguration? = null
25
26
 
26
- override fun configureBridge(configuration: KaleyraVideoConfiguration) {
27
- scope.launch {
28
- repository.configurationDao().insert(ConfigurationEntity(configuration))
29
- sdk.configure(configuration.toSDK())
30
- sdk.conference.callActions = configuration.tools?.toCallActions() ?: CallUI.Action.default
31
- sdk.conversation.chatActions = configuration.tools?.toChatActions() ?: ChatUI.Action.default
32
- lastConfiguration = configuration
33
- }
27
+ override fun configureBridge(configuration: KaleyraVideoConfiguration) {
28
+ scope.launch {
29
+ repository.configurationDao().insert(ConfigurationEntity(configuration))
30
+ sdk.configure(configuration.toSDK())
31
+ sdk.conference.callActions = configuration.tools?.toCallActions() ?: CallUI.Action.default
32
+ sdk.conversation.chatActions = configuration.tools?.toChatActions() ?: ChatUI.Action.default
33
+ lastConfiguration = configuration
34
+ sdk.pushNotificationHandlingStrategy = PushNotificationHandlingStrategy.Manual
34
35
  }
35
-
36
- override fun reset() {
37
- scope.launch {
38
- repository.clearAllTables()
39
- sdk.reset()
40
- KaleyraVideo.conference.callActions = CallUI.Action.default
41
- KaleyraVideo.conversation.chatActions = ChatUI.Action.default
42
- lastConfiguration = null
43
- }
36
+ }
37
+
38
+ override fun reset() {
39
+ scope.launch {
40
+ repository.clearAllTables()
41
+ sdk.reset()
42
+ KaleyraVideo.conference.callActions = CallUI.Action.default
43
+ KaleyraVideo.conversation.chatActions = ChatUI.Action.default
44
+ lastConfiguration = null
44
45
  }
46
+ }
45
47
 
46
- init {
47
- scope.launch {
48
- lastConfiguration = repository.configurationDao().configuration?.plugin
49
- }
48
+ init {
49
+ scope.launch {
50
+ lastConfiguration = repository.configurationDao().configuration?.plugin
50
51
  }
52
+ }
51
53
 
52
54
  }
@@ -6,7 +6,7 @@ platform :ios, '15.0'
6
6
  target 'KaleyraVideoHybridNativeBridge' do
7
7
  use_frameworks!
8
8
 
9
- pod 'KaleyraVideoSDK', '~> 4.0.0'
9
+ pod 'KaleyraVideoSDK', '~> 4.0.1'
10
10
 
11
11
  target 'KaleyraVideoHybridNativeBridgeTests' do
12
12
  use_frameworks!
@@ -1,13 +1,13 @@
1
1
  PODS:
2
- - KaleyraVideoSDK (4.0.0):
3
- - KaleyraVideoSDK/Core (= 4.0.0)
4
- - KaleyraVideoSDK/WebRTC (= 4.0.0)
5
- - KaleyraVideoSDK/Core (4.0.0)
6
- - KaleyraVideoSDK/WebRTC (4.0.0)
2
+ - KaleyraVideoSDK (4.0.1):
3
+ - KaleyraVideoSDK/Core (= 4.0.1)
4
+ - KaleyraVideoSDK/WebRTC (= 4.0.1)
5
+ - KaleyraVideoSDK/Core (4.0.1)
6
+ - KaleyraVideoSDK/WebRTC (4.0.1)
7
7
  - SwiftHamcrest (2.2.4)
8
8
 
9
9
  DEPENDENCIES:
10
- - KaleyraVideoSDK (~> 4.0.0)
10
+ - KaleyraVideoSDK (~> 4.0.1)
11
11
  - SwiftHamcrest (~> 2.2)
12
12
 
13
13
  SPEC REPOS:
@@ -16,9 +16,9 @@ SPEC REPOS:
16
16
  - SwiftHamcrest
17
17
 
18
18
  SPEC CHECKSUMS:
19
- KaleyraVideoSDK: 2350e37e969a0b69bc36f0ea77c4c580b1579fa9
19
+ KaleyraVideoSDK: 8d8948f7488d0b28c662c8173798d8e71eab0cad
20
20
  SwiftHamcrest: a45dd878978049c0953259aa01c34fd7258d0340
21
21
 
22
- PODFILE CHECKSUM: b048d01ca8b52521a6098cef14d564781e2b7242
22
+ PODFILE CHECKSUM: 4c7f0a671df53cdb8811a4de9e750fcffba5a30c
23
23
 
24
- COCOAPODS: 1.15.2
24
+ COCOAPODS: 1.16.2
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@kaleyra/video-react-native-module",
3
- "version": "2.0.0",
4
- "private": false,
3
+ "version": "2.0.2",
5
4
  "description": "Kaleyra Video module for react native.",
6
5
  "main": "lib/commonjs/index.js",
7
6
  "module": "lib/module/index.js",
@@ -48,9 +47,10 @@
48
47
  "doc": "typedoc",
49
48
  "openDoc": "open ./docs/index.html",
50
49
  "version": "npm run doc && python3 update_plugin_version.py && npm run buildJs && git add . ",
51
- "major": "npm version major -m \"chore: updated to version %s\"",
52
- "minor": "npm version minor -m \"chore: updated to version %s\"",
53
- "patch": "npm version patch -m \"chore: updated to version %s\""
50
+ "postversion": "git push && git push --tags",
51
+ "major": "npm version major -m \"Updated to version %s\"",
52
+ "minor": "npm version minor -m \"Updated to version %s\"",
53
+ "patch": "npm version patch -m \"Updated to version %s\""
54
54
  },
55
55
  "keywords": [
56
56
  "react-native",