react-native-gizwits-sdk-v5 1.3.68 → 1.3.69
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.54")
|
|
67
|
+
implementation("io.github.gizwits:sdk-bluetooth:1.0.54")
|
|
68
|
+
implementation("io.github.gizwits:sdk-lan:1.0.54")
|
|
69
|
+
implementation("io.github.gizwits:sdk-mqtt:1.0.54")
|
|
70
70
|
|
|
71
71
|
// implementation files('libs/sdk-release.aar', 'libs/sdk-bluetooth-release.aar', 'libs/sdk-lan-release.aar', 'libs/sdk-mqtt-release.aar')
|
|
72
72
|
|
|
@@ -261,13 +261,15 @@ class RNGizSDKManagerModule(reactContext: ReactApplicationContext) : ReactContex
|
|
|
261
261
|
fun initSDK(options: ReadableMap, result: Callback) {
|
|
262
262
|
var config = RNGizParamsChecker.check(options, result, GizConfiguration::class.java)
|
|
263
263
|
config?.let {
|
|
264
|
+
CoroutineScope(Dispatchers.Main).launch {
|
|
264
265
|
try {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
GizSDKManager.setDebug(true)
|
|
267
|
+
GizSDKManager.initSDK(config)
|
|
268
|
+
GizRNCallbackManager.callbackWithResult(callback = result, result = Result.success<Number>(0))
|
|
268
269
|
} catch (e: GizException) {
|
|
269
|
-
|
|
270
|
+
GizRNCallbackManager.callbackWithResult(callback = result, result = Result.failure<Number>(e))
|
|
270
271
|
}
|
|
272
|
+
}
|
|
271
273
|
}
|
|
272
274
|
}
|
|
273
275
|
@ReactMethod
|