react-native-gizwits-sdk-v5 1.4.8 → 1.4.10

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.74")
67
- implementation("io.github.gizwits:sdk-bluetooth:1.0.74")
68
- implementation("io.github.gizwits:sdk-lan:1.0.74")
69
- implementation("io.github.gizwits:sdk-mqtt:1.0.74")
66
+ implementation("io.github.gizwits:sdk:1.0.75")
67
+ implementation("io.github.gizwits:sdk-bluetooth:1.0.75")
68
+ implementation("io.github.gizwits:sdk-lan:1.0.75")
69
+ implementation("io.github.gizwits:sdk-mqtt:1.0.75")
70
70
  // implementation files('libs/sdk-release.aar', 'libs/sdk-bluetooth-release.aar', 'libs/sdk-lan-release.aar', 'libs/sdk-mqtt-release.aar')
71
71
  implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutine_version")
72
72
  // retrofit
@@ -26,6 +26,11 @@ class RNGizSDKManagerModule: RCTEventEmitter, GizSdkEventHandlerDelegate {
26
26
  override func supportedEvents() -> [String]! {
27
27
  return ["DeviceDataListener", "DeviceListListener", "DeviceStateListener", "DeviceBindStateListener"]
28
28
  }
29
+
30
+ override init() {
31
+ super.init()
32
+ GizSDKManager.sharedInstance.setDelegate(delegate: self)
33
+ }
29
34
 
30
35
  func onDeviceListUpdate(devices: Array<GizwitsiOSSDK.GizDevice>) {
31
36
  DispatchQueue.main.async { [self] in
@@ -71,7 +76,6 @@ class RNGizSDKManagerModule: RCTEventEmitter, GizSdkEventHandlerDelegate {
71
76
  public func initSDK(_ options: NSDictionary, result: @escaping RCTResponseSenderBlock) {
72
77
  if let config = RNGizParamsChecker.check(options: options, result: result, paramsType: GizConfigStruct.self) {
73
78
  GizSDKManager.sharedInstance.initSDK(config: config)
74
- GizSDKManager.sharedInstance.setDelegate(delegate: self)
75
79
  GizRNCallbackManager.callbackWithResult(callback: result, result: GizResult<Int?, GizAPIException?>(data: nil, success: true))
76
80
  }
77
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gizwits-sdk-v5",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "description": "Gizwits",
5
5
  "homepage": "https://github.com/demchenkoalex/react-native-gizwits-sdk-v5#readme",
6
6
  "main": "lib/index.js",