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

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.
@@ -1 +1 @@
1
- React/2.0.0
1
+ React/2.0.1
@@ -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.1"
11
11
 
12
12
  @objc
13
13
  static let krvPlatform: String = "react"
@@ -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
  }
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.1",
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,9 @@
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
+ "major": "npm version major --git-tag-version false",
51
+ "minor": "npm version minor --git-tag-version false",
52
+ "patch": "npm version patch --git-tag-version false"
54
53
  },
55
54
  "keywords": [
56
55
  "react-native",