@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 +1 -1
- package/android/src/main/assets/kaleyra_video_wrapper_info.txt +1 -1
- package/ios/PluginInfo/_KaleyraVideoHybridVersionInfo.swift +1 -1
- package/native-bridge/android/bridge.gradle +1 -1
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/configurator/VideoSDKConfigurator.kt +27 -25
- package/native-bridge/iOS/Podfile +1 -1
- package/native-bridge/iOS/Podfile.lock +9 -9
- package/package.json +5 -5
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
|
-
|
|
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.
|
|
1
|
+
React/2.0.2
|
|
@@ -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
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- KaleyraVideoSDK (4.0.
|
|
3
|
-
- KaleyraVideoSDK/Core (= 4.0.
|
|
4
|
-
- KaleyraVideoSDK/WebRTC (= 4.0.
|
|
5
|
-
- KaleyraVideoSDK/Core (4.0.
|
|
6
|
-
- KaleyraVideoSDK/WebRTC (4.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.
|
|
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:
|
|
19
|
+
KaleyraVideoSDK: 8d8948f7488d0b28c662c8173798d8e71eab0cad
|
|
20
20
|
SwiftHamcrest: a45dd878978049c0953259aa01c34fd7258d0340
|
|
21
21
|
|
|
22
|
-
PODFILE CHECKSUM:
|
|
22
|
+
PODFILE CHECKSUM: 4c7f0a671df53cdb8811a4de9e750fcffba5a30c
|
|
23
23
|
|
|
24
|
-
COCOAPODS: 1.
|
|
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.
|
|
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
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
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",
|