Skip to content

Commit a019368

Browse files
committed
Release 5.7.0
1 parent d158e26 commit a019368

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,43 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [5.7.0] - 2024-08-21
9+
10+
### Added
11+
12+
- Support for on-device geofencing via new `HyperTrack.orders["my_order"].isInsideGeofence` property
13+
- To learn more about how to best use this new feature see our guide here: https://developer.hypertrack.com/docs/clock-in-out-tagging#verify-shift-presence-before-starting-work
14+
15+
Example use for worker clock in:
16+
17+
```
18+
func handlePresence(
19+
_ isInsideResult: Result<Bool, HyperTrackLocationError>
20+
) {
21+
switch isInsideResult {
22+
case .success(let isInside):
23+
if isInside {
24+
// allow worker to clock in for the shift
25+
} else {
26+
// "to clock in you must be at order destination"
27+
}
28+
case .failure(let error):
29+
// resolve any tracking errors to obtain geofence presence
30+
}
31+
32+
// check if a worker is inside an order's geofence
33+
handlePresence(HyperTrack.orders["my_order"].isInsideGeofence)
34+
35+
// or, listen to order.isInsideGeofence changes
36+
HyperTrack.subscribeToOrders { orders in
37+
handlePresence(orders["my_order"].isInsideGeofence)
38+
}
39+
```
40+
41+
### Changed
42+
43+
- Changed the `OrderStatus` enum to a struct to support future cases without introducing API breaking changes
44+
845
## [5.6.0] - 2024-06-05
946

1047
### Added

HyperTrack.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |spec|
22

33
# Root specification
44
spec.name = "HyperTrack"
5-
spec.version = "5.6.0"
5+
spec.version = "5.7.0"
66
spec.summary = "A Movement tracking SDK for iOS"
77
spec.description = "HyperTrack is a Movement tracking SDK"
88
spec.license = { :type => "Copyright", :text => "Copyright (c) 2024 HyperTrack, Inc. (https://www.hypertrack.com)" }

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import PackageDescription
44

55
let name = "HyperTrack"
6-
let version = "5.6.0"
6+
let version = "5.7.0"
77

88
let package = Package(
99
name: name,
@@ -13,7 +13,7 @@ let package = Package(
1313
.binaryTarget(
1414
name: name,
1515
url: "https://github.com/hypertrack/sdk-ios/releases/download/\(version)/\(name).xcframework.zip",
16-
checksum: "6877a2e963f3e80b05280799c3453766a1470775cd1c7c61ec04bfd57b4ddd3f"
16+
checksum: "803979d6d4faf364e253e3ef51c5b251c49ac74aeae121753f2c0a90df23f404"
1717
)
1818
],
1919
swiftLanguageVersions: [.v5]

0 commit comments

Comments
 (0)