@100mslive/react-native-hms 0.8.2 → 0.8.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.
@@ -29,9 +29,14 @@ class HmsSDK(
29
29
  private var self = this
30
30
 
31
31
  init {
32
- var useHardwareEchoCancellation = data?.getBoolean("useHardwareEchoCancellation")
33
- if (useHardwareEchoCancellation == null) {
34
- useHardwareEchoCancellation = false
32
+ val requiredKeys =
33
+ HmsHelper.areAllRequiredKeysAvailable(
34
+ data,
35
+ arrayOf(Pair("useHardwareEchoCancellation", "Boolean"))
36
+ )
37
+ var useHardwareEchoCancellation = false
38
+ if (requiredKeys && data !== null) {
39
+ useHardwareEchoCancellation = data.getBoolean("useHardwareEchoCancellation")
35
40
  }
36
41
  val videoSettings = HmsHelper.getVideoTrackSettings(data?.getMap("video"))
37
42
  val audioSettings =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@100mslive/react-native-hms",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "The React Native package for 100ms SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",