react-native-gizwits-sdk-v5 1.4.13 → 1.4.14
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.
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
67
|
-
implementation("io.github.gizwits:sdk-bluetooth:1.0.
|
|
68
|
-
implementation("io.github.gizwits:sdk-lan:1.0.
|
|
69
|
-
implementation("io.github.gizwits:sdk-mqtt:1.0.
|
|
66
|
+
implementation("io.github.gizwits:sdk:1.0.79")
|
|
67
|
+
implementation("io.github.gizwits:sdk-bluetooth:1.0.79")
|
|
68
|
+
implementation("io.github.gizwits:sdk-lan:1.0.79")
|
|
69
|
+
implementation("io.github.gizwits:sdk-mqtt:1.0.79")
|
|
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
|
|
@@ -416,7 +416,7 @@ class RNGizDeviceManagerModule: RCTEventEmitter {
|
|
|
416
416
|
sendEvent(withName: "GizProvideWiFiCredentialsEvent", body: data)
|
|
417
417
|
}
|
|
418
418
|
Task {
|
|
419
|
-
var data: GizResult<GizBaseProfile?,
|
|
419
|
+
var data: GizResult<GizBaseProfile?, GizActivatorException?>
|
|
420
420
|
switch(params.type) {
|
|
421
421
|
case .GizBleCapability:
|
|
422
422
|
data = await device.bleCapability.provideWiFiCredentials(ssid: params.ssid, password: params.password, timeout: params.timeout, processHandler: progressHandler)
|
|
@@ -445,7 +445,7 @@ class RNGizDeviceManagerModule: RCTEventEmitter {
|
|
|
445
445
|
// 先找到设备
|
|
446
446
|
if let device = findDevice(id: params.id) {
|
|
447
447
|
Task {
|
|
448
|
-
var data: GizResult<Int?,
|
|
448
|
+
var data: GizResult<Int?, GizActivatorException?>
|
|
449
449
|
switch(params.type) {
|
|
450
450
|
case .GizBleCapability:
|
|
451
451
|
data = await device.bleCapability.stopProvideWiFiCredentials()
|
package/package.json
CHANGED