Skip to content

Commit 6d05f9b

Browse files
Add Motion activity (#61)
Co-authored-by: Pavel Kuznetsov <pavel@hypertrack.io>
1 parent c9fd040 commit 6d05f9b

File tree

116 files changed

+156
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+156
-178
lines changed

CHANGELOG.md

Lines changed: 39 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## [Unreleased]
77

8+
## [2.5.0] - 2024-09-04
9+
10+
### Added
11+
12+
- Support for Motion & Activity detection
13+
- If your app asks for permission and the user grants it, you will have better activity detection in polylines
14+
15+
### Changed
16+
17+
- Updated HyperTrack SDK iOS to [5.8.0](https://github.com/hypertrack/sdk-ios/releases/tag/5.8.0)
18+
- Updated HyperTrack SDK Android to [7.8.2](https://github.com/hypertrack/sdk-android/releases/tag/7.8.2)
19+
820
## [2.4.0] - 2024-08-27
921

1022
### Added
1123

1224
- 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
14-
here: [Verify shift presence before starting work](https://developer.hypertrack.com/docs/clock-in-out-tagging#verify-shift-presence-before-starting-work)
25+
- To learn more about how to best use this new feature see our guide
26+
here: [Verify shift presence before starting work](https://developer.hypertrack.com/docs/clock-in-out-tagging#verify-shift-presence-before-starting-work)
1527

1628
```dart
1729
// check worker presence synchronously
@@ -61,10 +73,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6173
### Added
6274

6375
- New `setWorkerHandle` and `getWorkerHandle` can be used to identify workers
64-
- We observed our customers identify worker devices via `HyperTrack.metadata`, so we decided to
65-
make it a first class citizen in our API.
66-
- If you previously used `metadata` to identify workers, we suggest using `workerHandle` for
67-
this purpose instead.
76+
- We observed our customers identify worker devices via `HyperTrack.metadata`, so we decided to
77+
make it a first class citizen in our API.
78+
- If you previously used `metadata` to identify workers, we suggest using `workerHandle` for
79+
this purpose instead.
6880

6981
### Changed
7082

@@ -176,8 +188,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
176188
- `name` getter
177189
- `metadata` getter
178190
- HyperTrackError types:
179-
- `noExemptionFromBackgroundStartRestrictions`
180-
- `permissionsNotificationsDenied`
191+
- `noExemptionFromBackgroundStartRestrictions`
192+
- `permissionsNotificationsDenied`
181193

182194
### Changed
183195

@@ -187,17 +199,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
187199
- Updated HyperTrack iOS SDK to [5.0.2](https://github.com/hypertrack/sdk-ios/releases/tag/5.0.2)
188200
- The whole HyperTrack API is now static
189201
- Changed the way to provide publishableKey (
190-
- You need to add `HyperTrackPublishableKey` `meta-data` item to your `AndroidManifest.xml` and
191-
the same entry to `Info.plist`)
202+
- You need to add `HyperTrackPublishableKey` `meta-data` item to your `AndroidManifest.xml` and
203+
the same entry to `Info.plist`)
192204
- Renamed HyperTrackError types:
193-
- `gpsSignalLost` to `locationSignalLost`
194-
- `locationPermissionsDenied` to `permissionsLocationDenied`
195-
- `locationPermissionsInsufficientForBackground`
196-
to `permissionsLocationInsufficientForBackground`
197-
- `locationPermissionsNotDetermined` to `permissionsLocationNotDetermined`
198-
- `locationPermissionsProvisional` to `locationPermissionsProvisional`
199-
- `locationPermissionsReducedAccuracy` to `permissionsLocationReducedAccuracy`
200-
- `locationPermissionsRestricted` to `permissionsLocationRestricted`
205+
- `gpsSignalLost` to `locationSignalLost`
206+
- `locationPermissionsDenied` to `permissionsLocationDenied`
207+
- `locationPermissionsInsufficientForBackground`
208+
to `permissionsLocationInsufficientForBackground`
209+
- `locationPermissionsNotDetermined` to `permissionsLocationNotDetermined`
210+
- `locationPermissionsProvisional` to `locationPermissionsProvisional`
211+
- `locationPermissionsReducedAccuracy` to `permissionsLocationReducedAccuracy`
212+
- `locationPermissionsRestricted` to `permissionsLocationRestricted`
201213
- Renamed `setAvailability()` to `setIsAvailable(boolean)`
202214
- Changed `startTracking()` and `stopTracking()` to `setIsTracking(boolean)`
203215
- Renamed `onTrackingChanged` to `isTrackingSubscription`
@@ -210,11 +222,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
210222
- `initialize()` method (the API is now static)
211223
- Motion Activity permissions are not required for tracking anymore
212224
- HyperTrackError types:
213-
- `motionActivityPermissionsDenied`
214-
- `motionActivityServicesDisabled`
215-
- `motionActivityServicesUnavailable`
216-
- `motionActivityPermissionsRestricted`
217-
- `networkConnectionUnavailable`
225+
- `motionActivityPermissionsDenied`
226+
- `motionActivityServicesDisabled`
227+
- `motionActivityServicesUnavailable`
228+
- `motionActivityPermissionsRestricted`
229+
- `networkConnectionUnavailable`
218230
- `sync()` method
219231

220232
## [1.1.3] - 2023-06-16
@@ -267,9 +279,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
267279
### Added
268280

269281
- `initialize()` configuration params for
270-
- Debug logging
271-
- Background location permissions request for Android
272-
- Mock locations
282+
- Debug logging
283+
- Background location permissions request for Android
284+
- Mock locations
273285
- `onAvailabilityChanged` stream
274286
- `onError` stream
275287
- Location result for `addGeotag`
@@ -406,75 +418,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
406418
- Initial release.
407419

408420
[0.1.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.0
409-
410421
[0.1.1]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.1
411-
412422
[0.1.2]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.2
413-
414423
[0.1.3]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.3
415-
416424
[0.1.4]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.4
417-
418425
[0.1.5]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.5
419-
420426
[0.1.6]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.6
421-
422427
[0.1.7]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.7
423-
424428
[0.1.8]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.8
425-
426429
[0.1.9]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.1.9
427-
428430
[0.2.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.2.0
429-
430431
[0.2.1]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.2.1
431-
432432
[0.3.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.3.0
433-
434433
[0.3.1]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.3.1
435-
436434
[0.4.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.4.0
437-
438435
[0.4.1]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.4.1
439-
440436
[0.4.2]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.4.2
441-
442437
[0.4.3]: https://github.com/hypertrack/sdk-flutter/releases/tag/0.4.3
443-
444438
[1.0.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/1.0.0
445-
446439
[1.1.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/1.1.0
447-
448440
[1.1.1]: https://github.com/hypertrack/sdk-flutter/releases/tag/1.1.1
449-
450441
[1.1.2]: https://github.com/hypertrack/sdk-flutter/releases/tag/1.1.2
451-
452442
[1.1.3]: https://github.com/hypertrack/sdk-flutter/releases/tag/1.1.3
453-
454443
[2.0.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.0.0
455-
456444
[2.0.1]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.0.1
457-
458445
[2.0.2]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.0.2
459-
460446
[2.0.3]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.0.3
461-
462447
[2.0.4]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.0.4
463-
464448
[2.1.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.1.0
465-
466449
[2.1.1]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.1.1
467-
468450
[2.1.2]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.1.2
469-
470451
[2.2.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.2.0
471-
472452
[2.2.1]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.2.1
473-
474453
[2.2.2]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.2.2
475-
476454
[2.2.3]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.2.3
477-
478455
[2.3.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.3.0
479-
480456
[2.4.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.4.0
457+
[2.5.0]: https://github.com/hypertrack/sdk-flutter/releases/tag/2.5.0

android/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ android {
4343
disable 'InvalidPackage'
4444
}
4545
dependencies {
46-
def hyperTrackVersion = "7.7.0"
46+
def hyperTrackVersion = "7.8.2"
4747
implementation "com.hypertrack:sdk-android:${hyperTrackVersion}"
48+
implementation "com.hypertrack:activity-service-google:${hyperTrackVersion}"
4849
implementation "com.hypertrack:location-services-google:${hyperTrackVersion}"
4950
implementation "com.hypertrack:push-service-firebase:${hyperTrackVersion}"
5051
}

docs/__404error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h5><span class="package-name">hypertrack_plugin</span> <span class="package-kin
100100
<footer>
101101
<span class="no-break">
102102
hypertrack_plugin
103-
2.4.0
103+
2.5.0
104104
</span>
105105

106106

docs/data_types_hypertrack_error/HyperTrackError.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ <h5>hypertrack_error library</h5>
383383
<footer>
384384
<span class="no-break">
385385
hypertrack_plugin
386-
2.4.0
386+
2.5.0
387387
</span>
388388

389389

docs/data_types_hypertrack_error/HyperTrackError/HyperTrackError.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h5>HyperTrackError enum</h5>
101101
<footer>
102102
<span class="no-break">
103103
hypertrack_plugin
104-
2.4.0
104+
2.5.0
105105
</span>
106106

107107

docs/data_types_hypertrack_error/HyperTrackError/values-constant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h5>HyperTrackError enum</h5>
105105
<footer>
106106
<span class="no-break">
107107
hypertrack_plugin
108-
2.4.0
108+
2.5.0
109109
</span>
110110

111111

docs/data_types_hypertrack_error/data_types_hypertrack_error-library.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ <h5>hypertrack_error library</h5>
134134
<footer>
135135
<span class="no-break">
136136
hypertrack_plugin
137-
2.4.0
137+
2.5.0
138138
</span>
139139

140140

docs/data_types_json/JSON-class.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ <h5>json library</h5>
189189
<footer>
190190
<span class="no-break">
191191
hypertrack_plugin
192-
2.4.0
192+
2.5.0
193193
</span>
194194

195195

docs/data_types_json/JSON/JSON.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h5>JSON class</h5>
101101
<footer>
102102
<span class="no-break">
103103
hypertrack_plugin
104-
2.4.0
104+
2.5.0
105105
</span>
106106

107107

docs/data_types_json/JSON/fromMap.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h5>JSON class</h5>
116116
<footer>
117117
<span class="no-break">
118118
hypertrack_plugin
119-
2.4.0
119+
2.5.0
120120
</span>
121121

122122

0 commit comments

Comments
 (0)