react-native-gizwits-sdk-v5 1.3.21 → 1.3.23

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.
@@ -65,10 +65,10 @@ dependencies {
65
65
 
66
66
  implementation "androidx.startup:startup-runtime:$startup_version"
67
67
 
68
- implementation("io.github.gizwits:sdk:1.0.23")
69
- implementation("io.github.gizwits:sdk-bluetooth:1.0.23")
70
- implementation("io.github.gizwits:sdk-lan:1.0.23")
71
- implementation("io.github.gizwits:sdk-mqtt:1.0.23")
68
+ implementation("io.github.gizwits:sdk:1.0.24")
69
+ implementation("io.github.gizwits:sdk-bluetooth:1.0.24")
70
+ implementation("io.github.gizwits:sdk-lan:1.0.24")
71
+ implementation("io.github.gizwits:sdk-mqtt:1.0.24")
72
72
 
73
73
  // implementation files('libs/sdk-release.aar', 'libs/sdk-bluetooth-release.aar', 'libs/sdk-lan-release.aar', 'libs/sdk-mqtt-release.aar')
74
74
 
@@ -28,7 +28,7 @@ import org.json.JSONObject
28
28
 
29
29
  data class GizBindParams(
30
30
  @SerializedName("id")
31
- override val id: Int,
31
+ override val id: String,
32
32
  @SerializedName("alias")
33
33
  val alias: String,
34
34
  @SerializedName("remark")
@@ -37,7 +37,7 @@ data class GizBindParams(
37
37
 
38
38
  data class GizGetDPParams(
39
39
  @SerializedName("id")
40
- override val id: Int,
40
+ override val id: String,
41
41
  @SerializedName("type")
42
42
  val type: CapacityTypes,
43
43
  @SerializedName("attrs")
@@ -46,7 +46,7 @@ data class GizGetDPParams(
46
46
 
47
47
  data class GizSendDPParams(
48
48
  @SerializedName("id")
49
- override val id: Int,
49
+ override val id: String,
50
50
  @SerializedName("type")
51
51
  val type: CapacityTypes,
52
52
  @SerializedName("data")
@@ -55,30 +55,30 @@ data class GizSendDPParams(
55
55
 
56
56
  data class GizUnBindParams(
57
57
  @SerializedName("id")
58
- override val id: Int,
58
+ override val id: String,
59
59
  ): DeviceParams
60
60
 
61
61
  data class GizConnectParams(
62
62
  @SerializedName("id")
63
- override val id: Int,
63
+ override val id: String,
64
64
  @SerializedName("type")
65
65
  val type: CapacityTypes
66
66
  ): DeviceParams
67
67
  data class GizDisConnectParams(
68
68
  @SerializedName("id")
69
- override val id: Int,
69
+ override val id: String,
70
70
  @SerializedName("type")
71
71
  val type: CapacityTypes
72
72
  ): DeviceParams
73
73
 
74
74
  data class GizRegisterDeviceParams(
75
75
  @SerializedName("id")
76
- override val id: Int,
76
+ override val id: String,
77
77
  ): DeviceParams
78
78
 
79
79
  data class GizProvideWiFiCredentialsParams(
80
80
  @SerializedName("id")
81
- override val id: Int,
81
+ override val id: String,
82
82
  @SerializedName("type")
83
83
  val type: CapacityTypes,
84
84
  @SerializedName("ssid")
@@ -90,20 +90,20 @@ data class GizProvideWiFiCredentialsParams(
90
90
  ): DeviceParams
91
91
  data class GizStopProvideWiFiCredentialsParams(
92
92
  @SerializedName("id")
93
- override val id: Int,
93
+ override val id: String,
94
94
  @SerializedName("type")
95
95
  val type: CapacityTypes,
96
96
  ): DeviceParams
97
97
 
98
98
  data class GizGetDeviceInfoParams(
99
99
  @SerializedName("id")
100
- override val id: Int,
100
+ override val id: String,
101
101
  @SerializedName("type")
102
102
  val type: CapacityTypes
103
103
  ): DeviceParams
104
104
  data class GizCheckUpdateParams(
105
105
  @SerializedName("id")
106
- override val id: Int,
106
+ override val id: String,
107
107
  @SerializedName("type")
108
108
  val type: CapacityTypes,
109
109
  @SerializedName("firmwareType")
@@ -111,7 +111,7 @@ data class GizCheckUpdateParams(
111
111
  ): DeviceParams
112
112
  data class StopUpgradeParams(
113
113
  @SerializedName("id")
114
- override val id: Int,
114
+ override val id: String,
115
115
  @SerializedName("type")
116
116
  val type: CapacityTypes,
117
117
  ): DeviceParams
@@ -11,7 +11,7 @@ import com.google.gson.JsonSyntaxException
11
11
  import com.google.gson.annotations.SerializedName
12
12
 
13
13
  interface DeviceParams{
14
- val id: Int
14
+ val id: String
15
15
  }
16
16
  class RNGizParamsChecker {
17
17
  companion object {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gizwits-sdk-v5",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
4
4
  "description": "Gizwits",
5
5
  "homepage": "https://github.com/demchenkoalex/react-native-gizwits-sdk-v5#readme",
6
6
  "main": "lib/index.js",