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.map { self.permissionString($0) }
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-move-sdk",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "React Native library for MOVE SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18
18
  s.source_files = "ios/**/*.{h,m,mm,swift}"
19
19
 
20
20
  s.dependency 'React'
21
- s.dependency 'DolphinMoveSDK', '2.6.0.265'
21
+ s.dependency 'DolphinMoveSDK', '2.6.3.270'
22
22
  end