Skip to content

Commit

Permalink
Fix LocationWithDeviation serialization (#24)
Browse files Browse the repository at this point in the history
Remove dot from justfile name.
  • Loading branch information
pavel-kuznetsov-hypertrack authored Dec 27, 2023
1 parent 29a763d commit 963b01e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.1] - 2023-12-27

### Fixed

- Undefined latitude and longitude in `addGeotagWithExpectedLocation()` response

## [2.0.0] - 2023-11-29

We are excited to announce the release of HyperTrack Cordova SDK 2.0.0, a major update to our location tracking SDK. This release ensures highest tracking performance, reduces deployed app sizes and comes with an improved API to simplify the integrations. We highly recommend upgrading, but please note that there are a few breaking changes. Check the [Migration Guide](https://hypertrack.com/docs/migration-guide).
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.0",
"version": "2.0.1",
"name": "cordova-plugin-hypertrack-v3",
"cordova_name": "Cordova HyperTrack Plugin",
"description": "Cordova Plugin for native HyperTrack SDKs",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-hypertrack-v3"
version="2.0.0">
version="2.0.1">
<name>HyperTrackPlugin</name>
<description>Cordova HyperTrack Plugin is a wrapper around native iOS and Android SDKs that allows to integrate HyperTrack into Cordova apps.</description>
<license>MIT</license>
Expand Down
10 changes: 8 additions & 2 deletions www/Serialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ module.exports = {
if (response.type == "success") {
return {
type: "success",
value: response.value.value,
value: {
latitude: response.value.value.latitude,
longitude: response.value.value.longitude,
},
};
} else {
return {
Expand All @@ -69,7 +72,10 @@ module.exports = {
return {
type: "success",
value: {
location: response.value.value.location,
location: {
latitude: response.value.value.location.value.latitude,
longitude: response.value.value.location.value.longitude,
},
deviation: response.value.value.deviation,
},
};
Expand Down

0 comments on commit 963b01e

Please sign in to comment.