react-native-gizwits-sdk-v5 1.5.0-beta.2 → 1.5.0-beta.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.
@@ -436,9 +436,7 @@ class RNGizDeviceManagerModule: RCTEventEmitter {
436
436
  case .GizMQTTCapability:
437
437
  data = await device.mqttCapability.provideWiFiCredentials(ssid: params.ssid, password: params.password, timeout: params.timeout, processHandler: progressHandler)
438
438
  break
439
- case .GizAirLinkCapability:
440
- data = await device.baseCapability.provideWiFiCredentials(ssid: params.ssid, password: params.password, timeout: params.timeout, processHandler: progressHandler, isAirLink: true)
441
- break
439
+ }
442
440
  GizRNCallbackManager.callbackWithResult(callback: result, result:data)
443
441
  }
444
442
  } else {
@@ -448,6 +446,17 @@ class RNGizDeviceManagerModule: RCTEventEmitter {
448
446
 
449
447
  }
450
448
  }
449
+
450
+ @objc
451
+ public func provideWiFiCredentialsWithAirLink(_ options: NSDictionary, result: @escaping RCTResponseSenderBlock) {
452
+ if let params = RNGizParamsChecker.check(options: options, result: result, paramsType: ProvideWiFiCredentialsParams.self) {
453
+ Task {
454
+ var data: GizResult<GizBaseProfile?, GizActivatorException?>
455
+ data = await ESPTouchSmartConfig.sharedInstance.provideWiFiCredentialsWithAirLink(ssid: params.ssid, password: params.password, timeout: params.timeout, productKey: params.productKey, processHandler: progressHandler)
456
+ GizRNCallbackManager.callbackWithResult(callback: result, result:data)
457
+ }
458
+ }
459
+ }
451
460
 
452
461
  @objc
453
462
  public func stopProvideWiFiCredentials(_ options: NSDictionary, result: @escaping RCTResponseSenderBlock) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gizwits-sdk-v5",
3
- "version": "1.5.0-beta.2",
3
+ "version": "1.5.0-beta.3",
4
4
  "description": "Gizwits",
5
5
  "homepage": "https://github.com/demchenkoalex/react-native-gizwits-sdk-v5#readme",
6
6
  "main": "lib/index.js",
@@ -19,6 +19,6 @@ Pod::Spec.new do |s|
19
19
 
20
20
  s.dependency 'React'
21
21
  s.dependency 'CryptoSwift', '~> 1.8.0'
22
- s.dependency 'GizwitsiOSSDK', '~> 1.7.5'
22
+ s.dependency 'GizwitsiOSSDK', '~> 1.7.6'
23
23
 
24
24
  end