Skip to content

Commit

Permalink
Release 12.1.0 (#91)
Browse files Browse the repository at this point in the history
### Fixed

- Mitigates SDK cache file corruption that led to some Android devices
loading to `device_id` values with all zeroes.
- [iOS] Optimized querying the Location Manager to reduce impact on
battery life and main thread performance.
- Reduced network traffic.

### Changed

- Updated HyperTrack Android SDK to
[7.2.0](https://github.com/hypertrack/sdk-android/releases/tag/7.2.0)
- Updated HyperTrack iOS SDK to
[5.2.0](https://github.com/hypertrack/sdk-ios/releases/tag/5.2.0)
  • Loading branch information
ferologics authored Jan 17, 2024
1 parent 5afad0f commit f245c3d
Show file tree
Hide file tree
Showing 25 changed files with 57 additions and 37 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
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).

## [Unreleased]

## [12.1.0] - 2024-01-17

### Fixed

- Mitigates SDK cache file corruption that led to some Android devices loading to `device_id` values with all zeroes.
- [iOS] Optimized querying the Location Manager to reduce impact on battery life and main thread performance.
- Reduced network traffic.

### Changed

- Updated HyperTrack Android SDK to [7.2.0](https://github.com/hypertrack/sdk-android/releases/tag/7.2.0)
- Updated HyperTrack iOS SDK to [5.2.0](https://github.com/hypertrack/sdk-ios/releases/tag/5.2.0)

## [12.0.0] - 2023-12-12

### Changed
Expand Down Expand Up @@ -738,3 +753,4 @@ Initial release.
[11.0.10]: https://github.com/hypertrack/sdk-react-native/releases/tag/11.0.10
[11.0.11]: https://github.com/hypertrack/sdk-react-native/releases/tag/11.0.11
[12.0.0]: https://github.com/hypertrack/sdk-react-native/releases/tag/12.0.0
[12.1.0]: https://github.com/hypertrack/sdk-react-native/releases/tag/12.1.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[![GitHub](https://img.shields.io/github/license/hypertrack/sdk-react-native?color=orange)](./LICENSE)
[![npm](https://img.shields.io/npm/v/hypertrack-sdk-react-native.svg)](https://www.npmjs.com/package/hypertrack-sdk-react-native)
[![iOS SDK](https://img.shields.io/badge/iOS%20SDK-5.0.8-brightgreen.svg)](https://github.com/hypertrack/sdk-ios)
[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.0.11-brightgreen.svg)](https://github.com/hypertrack/sdk-android)
[![iOS SDK](https://img.shields.io/badge/iOS%20SDK-5.2.0-brightgreen.svg)](https://github.com/hypertrack/sdk-ios)
[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.2.0-brightgreen.svg)](https://github.com/hypertrack/sdk-android)

[HyperTrack](https://www.hypertrack.com) lets you add live location tracking to your mobile app. Live location is made available along with ongoing activity, tracking controls and tracking outage with reasons.

Expand Down
4 changes: 2 additions & 2 deletions docs/classes/HyperTrack.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/HyperTrackError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/modules.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Errors.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Failure.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Location.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/LocationError.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/LocationWithDeviation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/NotRunning.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Result.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Starting.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Success.html

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ alias od := open-docs
# \ are escaped
SEMVER_REGEX := "(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?"

# MAKE SURE YOU HAVE
# MAKE SURE YOU HAVE
# #!/usr/bin/env sh
# set -e
# AT THE TOP OF YOUR RECIPE
Expand All @@ -22,6 +22,8 @@ build: get-dependencies docs
yarn --cwd plugin_android_location_services_google_19_0_1 prepare
yarn --cwd plugin_android_push_service_firebase prepare

clean: clear-node-modules

clear-node-modules:
rm -rf sdk/node_modules
rm -rf plugin_android_location_services_google/node_modules
Expand Down Expand Up @@ -52,17 +54,19 @@ release publish="dry-run": build
fi
echo "Are you sure you want to publish version $VERSION? (y/N)"
just _ask-confirm
npm publish sdk
npm publish plugin_android_location_services_google
npm publish plugin_android_location_services_google_19_0_1
npm publish plugin_android_push_service_firebase
cd sdk && npm publish && cd ..
cd plugin_android_location_services_google && npm publish && cd ..
cd plugin_android_location_services_google_19_0_1 && npm publish && cd ..
cd plugin_android_push_service_firebase && npm publish && cd ..
open "https://www.npmjs.com/package/hypertrack-sdk-react-native/v/$VERSION"
else
npm publish --dry-run sdk
npm publish --dry-run plugin_android_location_services_google
npm publish --dry-run plugin_android_location_services_google_19_0_1
npm publish --dry-run plugin_android_push_service_firebase
cd sdk && npm publish --dry-run && cd ..
cd plugin_android_location_services_google && npm publish --dry-run && cd ..
cd plugin_android_location_services_google_19_0_1 && npm publish --dry-run && cd ..
cd plugin_android_push_service_firebase && npm publish --dry-run && cd ..
fi
setup: get-dependencies

version:
@cat sdk/package.json | grep version | head -n 1 | grep -o -E '{{SEMVER_REGEX}}'
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ PluginAndroidLocationServicesGoogle_minSdkVersion=21
PluginAndroidLocationServicesGoogle_targetSdkVersion=31
PluginAndroidLocationServicesGoogle_compileSdkVersion=31
PluginAndroidLocationServicesGoogle_ndkversion=21.4.7075529
PluginAndroidLocationServicesGoogle_HyperTrackSDKVersion=7.0.11
PluginAndroidLocationServicesGoogle_HyperTrackSDKVersion=7.2.0
2 changes: 1 addition & 1 deletion plugin_android_location_services_google/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypertrack-sdk-react-native-plugin-android-location-services-google",
"version": "12.0.0",
"version": "12.1.0",
"description": "A wrapper around `Location Services Google` plugin for HyperTrack SDK Android that is used with `hypertrack-sdk-react-native`",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ PluginAndroidLocationServicesGoogle1901_minSdkVersion=21
PluginAndroidLocationServicesGoogle1901_targetSdkVersion=31
PluginAndroidLocationServicesGoogle1901_compileSdkVersion=31
PluginAndroidLocationServicesGoogle1901_ndkversion=21.4.7075529
PluginAndroidLocationServicesGoogle1901_HyperTrackSDKVersion=7.0.11
PluginAndroidLocationServicesGoogle1901_HyperTrackSDKVersion=7.2.0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypertrack-sdk-react-native-plugin-android-location-services-google-19-0-1",
"version": "12.0.0",
"version": "12.1.0",
"description": "A wrapper around `Location Services Google 19.0.1` plugin for HyperTrack SDK Android that is used with `hypertrack-sdk-react-native`",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ PluginAndroidPushServiceFirebase_minSdkVersion=21
PluginAndroidPushServiceFirebase_targetSdkVersion=31
PluginAndroidPushServiceFirebase_compileSdkVersion=31
PluginAndroidPushServiceFirebase_ndkversion=21.4.7075529
PluginAndroidPushServiceFirebase_HyperTrackSDKVersion=7.0.11
PluginAndroidPushServiceFirebase_HyperTrackSDKVersion=7.2.0
2 changes: 1 addition & 1 deletion plugin_android_push_service_firebase/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypertrack-sdk-react-native-plugin-android-push-service-firebase",
"version": "12.0.0",
"version": "12.1.0",
"description": "A wrapper around `Push Service Firebase` plugin for HyperTrack SDK Android that is used with `hypertrack-sdk-react-native`",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion sdk/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
HyperTrackSdk_kotlinVersion=1.6.21
HyperTrackSdk_HyperTrackSDKVersion=7.0.11
HyperTrackSdk_HyperTrackSDKVersion=7.2.0
android.useAndroidX=true
2 changes: 1 addition & 1 deletion sdk/hypertrack-sdk-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Pod::Spec.new do |s|
s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "React-Core"
s.dependency 'HyperTrack', '5.0.8'
s.dependency 'HyperTrack', '5.2.0'

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypertrack-sdk-react-native",
"version": "12.0.0",
"version": "12.1.0",
"description": "React Native HyperTrack SDK is a wrapper around native iOS and Android SDKs that allows to integrate HyperTrack into React Native apps.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit f245c3d

Please sign in to comment.