react-native-move-sdk 2.6.0 → 2.6.1
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import CoreBluetooth
|
|
1
2
|
import CoreMotion
|
|
2
3
|
import Foundation
|
|
3
4
|
import DolphinMoveSDK
|
|
@@ -628,7 +629,9 @@ internal class MoveSDKLauncher {
|
|
|
628
629
|
var reasons: [String] = []
|
|
629
630
|
switch warning.reason {
|
|
630
631
|
case let .missingPermission(permissions):
|
|
631
|
-
let content: [String] = permissions.
|
|
632
|
+
let content: [String] = permissions.compactMap {
|
|
633
|
+
self.permissionString($0)
|
|
634
|
+
}
|
|
632
635
|
reasons = content
|
|
633
636
|
}
|
|
634
637
|
let services = convert(service: warning.service)
|
|
@@ -654,6 +657,10 @@ internal class MoveSDKLauncher {
|
|
|
654
657
|
return "GYROSCOPE_MISSING"
|
|
655
658
|
case .accelerometer:
|
|
656
659
|
return "ACCELEROMETER_MISSING"
|
|
660
|
+
case .bluetooth:
|
|
661
|
+
return "BLUETOOTH_TURNED_OFF"
|
|
662
|
+
case .bluetoothScan:
|
|
663
|
+
return "BLUETOOTH_PERMISSION_MISSING"
|
|
657
664
|
@unknown default:
|
|
658
665
|
return "UNKNOWN"
|
|
659
666
|
}
|
package/package.json
CHANGED