react-native-gizwits-sdk-v5 1.3.69 → 1.3.71

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.
@@ -63,10 +63,10 @@ dependencies {
63
63
 
64
64
  implementation "androidx.startup:startup-runtime:$startup_version"
65
65
 
66
- implementation("io.github.gizwits:sdk:1.0.54")
67
- implementation("io.github.gizwits:sdk-bluetooth:1.0.54")
68
- implementation("io.github.gizwits:sdk-lan:1.0.54")
69
- implementation("io.github.gizwits:sdk-mqtt:1.0.54")
66
+ implementation("io.github.gizwits:sdk:1.0.56")
67
+ implementation("io.github.gizwits:sdk-bluetooth:1.0.56")
68
+ implementation("io.github.gizwits:sdk-lan:1.0.56")
69
+ implementation("io.github.gizwits:sdk-mqtt:1.0.56")
70
70
 
71
71
  // implementation files('libs/sdk-release.aar', 'libs/sdk-bluetooth-release.aar', 'libs/sdk-lan-release.aar', 'libs/sdk-mqtt-release.aar')
72
72
 
@@ -33,6 +33,7 @@ import kotlinx.coroutines.flow.collectLatest
33
33
  import kotlinx.coroutines.flow.combine
34
34
  import kotlinx.coroutines.flow.debounce
35
35
  import kotlinx.coroutines.flow.first
36
+ import kotlinx.coroutines.flow.last
36
37
  import kotlinx.coroutines.flow.mapLatest
37
38
  import kotlinx.coroutines.flow.take
38
39
  import kotlinx.coroutines.launch
@@ -121,7 +122,7 @@ class RNGizSDKManagerModule(reactContext: ReactApplicationContext) : ReactContex
121
122
  }
122
123
  }
123
124
  CoroutineScope(Dispatchers.IO).launch {
124
- deviceListState.debounce(500).collect { deviceList ->
125
+ deviceListState.debounce(500).collectLatest { deviceList ->
125
126
  val newDevices = deviceList - devices
126
127
  devices = deviceList
127
128
  newDevices.forEach{dev ->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gizwits-sdk-v5",
3
- "version": "1.3.69",
3
+ "version": "1.3.71",
4
4
  "description": "Gizwits",
5
5
  "homepage": "https://github.com/demchenkoalex/react-native-gizwits-sdk-v5#readme",
6
6
  "main": "lib/index.js",