react-native-gizwits-sdk-v5 1.3.29 → 1.3.31

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.
@@ -65,10 +65,10 @@ dependencies {
65
65
 
66
66
  implementation "androidx.startup:startup-runtime:$startup_version"
67
67
 
68
- implementation("io.github.gizwits:sdk:1.0.28")
69
- implementation("io.github.gizwits:sdk-bluetooth:1.0.28")
70
- implementation("io.github.gizwits:sdk-lan:1.0.28")
71
- implementation("io.github.gizwits:sdk-mqtt:1.0.28")
68
+ implementation("io.github.gizwits:sdk:1.0.29")
69
+ implementation("io.github.gizwits:sdk-bluetooth:1.0.29")
70
+ implementation("io.github.gizwits:sdk-lan:1.0.29")
71
+ implementation("io.github.gizwits:sdk-mqtt:1.0.29")
72
72
 
73
73
  // implementation files('libs/sdk-release.aar', 'libs/sdk-bluetooth-release.aar', 'libs/sdk-lan-release.aar', 'libs/sdk-mqtt-release.aar')
74
74
 
@@ -9,12 +9,6 @@
9
9
  <uses-permission
10
10
  android:name="android.permission.BLUETOOTH_ADMIN"
11
11
  android:maxSdkVersion="30"/>
12
- <uses-permission
13
- android:name="android.permission.ACCESS_FINE_LOCATION"
14
- android:maxSdkVersion="30"/>
15
- <uses-permission
16
- android:name="android.permission.ACCESS_COARSE_LOCATION"
17
- android:maxSdkVersion="30"/>
18
12
  <uses-permission
19
13
  android:name="android.permission.BLUETOOTH_SCAN"
20
14
  android:usesPermissionFlags="neverForLocation"
@@ -107,13 +107,13 @@ class RNGizSDKManagerModule(reactContext: ReactApplicationContext) : ReactContex
107
107
  sendEvent(EventName.DeviceStateListener.name, GizRNCallbackManager.jsonObject2WriteableMap(data))
108
108
  }
109
109
  }
110
- // scope.launch {
111
- // dev.bleCapacity.subscribeModuleProfile().debounce(500).collectLatest{
112
- // if (it != null) {
113
- // emitDeviceListChange()
114
- // }
115
- // }
116
- // }
110
+ scope.launch {
111
+ dev.bleCapacity.subscribeModuleProfile().debounce(500).collectLatest{
112
+ if (it != null) {
113
+ emitDeviceListChange()
114
+ }
115
+ }
116
+ }
117
117
  scope.launch {
118
118
  dev.bleCapacity.subscribeDp().collect{
119
119
  val data = JSONObject()
@@ -134,13 +134,13 @@ class RNGizSDKManagerModule(reactContext: ReactApplicationContext) : ReactContex
134
134
  sendEvent(EventName.DeviceStateListener.name, GizRNCallbackManager.jsonObject2WriteableMap(data))
135
135
  }
136
136
  }
137
- // scope.launch {
138
- // dev.lanCapacity.subscribeModuleProfile().debounce(500).collectLatest{
139
- // if (it != null) {
140
- // emitDeviceListChange()
141
- // }
142
- // }
143
- // }
137
+ scope.launch {
138
+ dev.lanCapacity.subscribeModuleProfile().debounce(500).collectLatest{
139
+ if (it != null) {
140
+ emitDeviceListChange()
141
+ }
142
+ }
143
+ }
144
144
  scope.launch {
145
145
  dev.lanCapacity.subscribeDp().collect{
146
146
  val data = JSONObject()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gizwits-sdk-v5",
3
- "version": "1.3.29",
3
+ "version": "1.3.31",
4
4
  "description": "Gizwits",
5
5
  "homepage": "https://github.com/demchenkoalex/react-native-gizwits-sdk-v5#readme",
6
6
  "main": "lib/index.js",