react-native-move-sdk 2.8.0 → 2.8.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.
@@ -139,8 +139,9 @@ class NativeMoveSdkWrapper(private val context: Context) : MoveSdk.StateListener
139
139
  val walkingServicesToUse = mutableListOf<WalkingService>()
140
140
 
141
141
  walkingServices.toArrayList().forEach {
142
+ val serviceName = if (it == "WALKING_LOCATION") "LOCATION" else it
142
143
  try {
143
- walkingServicesToUse.add(WalkingService.valueOf(it.toString().snakeToUpperCamelCase()))
144
+ walkingServicesToUse.add(WalkingService.valueOf(serviceName.toString().snakeToUpperCamelCase()))
144
145
  } catch (t: Throwable) {
145
146
  t.printStackTrace()
146
147
  }
@@ -603,8 +604,9 @@ class NativeMoveSdkWrapper(private val context: Context) : MoveSdk.StateListener
603
604
  val walkingServicesToUse = mutableListOf<WalkingService>()
604
605
 
605
606
  walkingServices.toArrayList().forEach {
607
+ val serviceName = if (it == "WALKING_LOCATION") "LOCATION" else it
606
608
  try {
607
- walkingServicesToUse.add(WalkingService.valueOf(it.toString().snakeToUpperCamelCase()))
609
+ walkingServicesToUse.add(WalkingService.valueOf(serviceName.toString().snakeToUpperCamelCase()))
608
610
  } catch (t: Throwable) {
609
611
  t.printStackTrace()
610
612
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-move-sdk",
3
- "version": "2.8.0",
3
+ "version": "2.8.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.8.0.290'
21
+ s.dependency 'MoveSDK', '2.8.1.293'
22
22
  end