hypertrack-sdk-react-native 14.0.4 → 14.0.6

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.
@@ -68,7 +68,9 @@ class HyperTrackReactNativePlugin(
68
68
  )
69
69
  }
70
70
 
71
- else -> Unit
71
+ else -> {
72
+ Unit
73
+ }
72
74
  }
73
75
  // Keep: Required for RN built in Event Emitter Calls.
74
76
  }
@@ -283,14 +283,23 @@ internal object Serialization {
283
283
  private fun deserializeOrderStatus(map: Serialized): WrapperResult<HyperTrack.OrderStatus> =
284
284
  parse(map) {
285
285
  when (it.get<String>(KEY_TYPE).getOrThrow()) {
286
- TYPE_GEOTAG_ORDER_STATUS_CLOCK_IN -> HyperTrack.OrderStatus.ClockIn
287
- TYPE_GEOTAG_ORDER_STATUS_CLOCK_OUT -> HyperTrack.OrderStatus.ClockOut
288
- TYPE_GEOTAG_ORDER_STATUS_CUSTOM ->
286
+ TYPE_GEOTAG_ORDER_STATUS_CLOCK_IN -> {
287
+ HyperTrack.OrderStatus.ClockIn
288
+ }
289
+
290
+ TYPE_GEOTAG_ORDER_STATUS_CLOCK_OUT -> {
291
+ HyperTrack.OrderStatus.ClockOut
292
+ }
293
+
294
+ TYPE_GEOTAG_ORDER_STATUS_CUSTOM -> {
289
295
  HyperTrack.OrderStatus.Custom(
290
296
  it.get<String>(KEY_VALUE).getOrThrow(),
291
297
  )
298
+ }
292
299
 
293
- else -> throw Error("Unknown order status: $map")
300
+ else -> {
301
+ throw Error("Unknown order status: $map")
302
+ }
294
303
  }
295
304
  }
296
305
 
@@ -26,6 +26,7 @@ internal sealed class WrapperResult<SuccessType> {
26
26
  fun getOrThrow(): SuccessType =
27
27
  when (this) {
28
28
  is Success -> this.success
29
+
29
30
  is Failure -> throw Exception(
30
31
  "Result unwrapping failed: ${this.failure}",
31
32
  this.failure,
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency 'HyperTrack', '5.11.4'
20
+ s.dependency 'HyperTrack', '5.12.1'
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypertrack-sdk-react-native",
3
- "version": "14.0.4",
3
+ "version": "14.0.6",
4
4
  "description": "React Native HyperTrack SDK is a wrapper around native iOS and Android SDKs that allows to integrate HyperTrack into React Native apps.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",