react-native-move-sdk 2.11.1 → 2.12.0
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
|
@@ -144,7 +144,7 @@ dependencies {
|
|
|
144
144
|
// noinspection GradleDynamicVersion
|
|
145
145
|
|
|
146
146
|
implementation "com.facebook.react:react-native:+"
|
|
147
|
-
api "io.dolphin.move:move-sdk:2.
|
|
147
|
+
api "io.dolphin.move:move-sdk:2.12.0.92"
|
|
148
148
|
|
|
149
149
|
testImplementation 'junit:junit:4.13.2'
|
|
150
150
|
testImplementation "androidx.test:core:1.4.0"
|
|
@@ -607,11 +607,13 @@ class RCTMoveSdk: RCTEventEmitter {
|
|
|
607
607
|
/// - manufacturerId: iBeacon manufacturerId. Unused.
|
|
608
608
|
@objc
|
|
609
609
|
func startScanningDevices(_ filter: [String], uuid: String?, manufacturerId: Any?) {
|
|
610
|
-
|
|
611
|
-
scanner
|
|
610
|
+
DispatchQueue.main.async {
|
|
611
|
+
if self.scanner == nil {
|
|
612
|
+
self.scanner = MoveSdkDeviceScanner()
|
|
613
|
+
}
|
|
614
|
+
self.scanner?.delegate = self
|
|
615
|
+
self.scanner?.startScanning(filter: filter, uuid: uuid)
|
|
612
616
|
}
|
|
613
|
-
scanner?.delegate = self
|
|
614
|
-
scanner?.startScanning(filter: filter, uuid: uuid)
|
|
615
617
|
}
|
|
616
618
|
|
|
617
619
|
/// Wrapper for `MoveSDK.register(devices)`.
|
|
@@ -645,7 +647,9 @@ class RCTMoveSdk: RCTEventEmitter {
|
|
|
645
647
|
/// Device scanner stop scanning.
|
|
646
648
|
@objc
|
|
647
649
|
func stopScanningDevices() {
|
|
648
|
-
|
|
650
|
+
DispatchQueue.main.async {
|
|
651
|
+
self.scanner?.stopScanning()
|
|
652
|
+
}
|
|
649
653
|
}
|
|
650
654
|
|
|
651
655
|
/// Wrapper for `MoveSDK.resolveSDKStateError()`.
|
package/package.json
CHANGED