react-native-gizwits-sdk-v5 1.3.29 → 1.3.30
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.
|
@@ -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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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()
|