@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.
|
|
1
|
+
React/2.0.1
|
|
@@ -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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
private val sdk: KaleyraVideo,
|
|
21
|
+
private val repository: VideoHybridBridgeRepository,
|
|
22
|
+
private val scope: CoroutineScope
|
|
22
23
|
) : CachedSDKConfigurator {
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
override var lastConfiguration: KaleyraVideoConfiguration? = null
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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.
|
|
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 -
|
|
52
|
-
"minor": "npm version minor -
|
|
53
|
-
"patch": "npm version patch -
|
|
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",
|