react-native-gizwits-sdk-v5 1.5.0-beta.35 → 1.5.0-beta.36

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.
@@ -64,11 +64,13 @@ dependencies {
64
64
  implementation "androidx.startup:startup-runtime:$startup_version"
65
65
 
66
66
  implementation 'com.github.wendykierp:JTransforms:3.1'
67
+ // ESPTouch
68
+ implementation 'com.github.EspressifApp:lib-esptouch-android:1.1.1'
67
69
 
68
- implementation("io.github.gizwits:sdk:1.3.7")
69
- implementation("io.github.gizwits:sdk-bluetooth:1.3.7")
70
- implementation("io.github.gizwits:sdk-lan:1.3.7")
71
- implementation("io.github.gizwits:sdk-mqtt:1.3.7")
70
+ implementation("io.github.gizwits:sdk:1.3.8")
71
+ implementation("io.github.gizwits:sdk-bluetooth:1.3.8")
72
+ implementation("io.github.gizwits:sdk-lan:1.3.8")
73
+ implementation("io.github.gizwits:sdk-mqtt:1.3.8")
72
74
  // implementation files('libs/sdk-release.aar', 'libs/sdk-bluetooth-release.aar', 'libs/sdk-lan-release.aar', 'libs/sdk-mqtt-release.aar')
73
75
  implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutine_version")
74
76
  // retrofit
@@ -28,6 +28,7 @@ import com.google.gson.annotations.SerializedName
28
28
  import kotlinx.coroutines.CoroutineScope
29
29
  import kotlinx.coroutines.Dispatchers
30
30
  import kotlinx.coroutines.SupervisorJob
31
+ import kotlinx.coroutines.cancel
31
32
  import kotlinx.coroutines.launch
32
33
  import org.json.JSONArray
33
34
  import org.json.JSONObject
@@ -129,7 +130,9 @@ data class GizProvideWiFiCredentialsWithAirLinkParams(
129
130
  val timeout: Long,
130
131
  @SerializedName("productKeys")
131
132
  val productKeys: List<String>,
132
- ): DeviceParams
133
+ ): DeviceParams {
134
+ override val id: String = "airlink" // AirLink 配网不需要设备ID
135
+ }
133
136
 
134
137
  data class GizStopProvideWiFiCredentialsParams(
135
138
  @SerializedName("id")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gizwits-sdk-v5",
3
- "version": "1.5.0-beta.35",
3
+ "version": "1.5.0-beta.36",
4
4
  "description": "Gizwits",
5
5
  "homepage": "https://github.com/demchenkoalex/react-native-gizwits-sdk-v5#readme",
6
6
  "main": "lib/index.js",