Skip to content

Commit

Permalink
Update HyperTrack SDK iOS to 5.4.0 and Android to 7.4.0 (#95)
Browse files Browse the repository at this point in the history
Fix adding release links to CHANHELOG on automatic SDK version update.
Hide private just recipes.
  • Loading branch information
pavel-kuznetsov-hypertrack authored Jan 29, 2024
1 parent 082c0d0 commit 769891c
Show file tree
Hide file tree
Showing 26 changed files with 65 additions and 57 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [13.1.0] - 2024-01-29

### Changed

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

## [13.0.0] - 2024-01-24

### Added
Expand All @@ -13,8 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

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

### Fixed

Expand Down Expand Up @@ -770,3 +777,4 @@ Initial release.
[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
[13.0.0]: https://github.com/hypertrack/sdk-react-native/releases/tag/13.0.0
[13.1.0]: https://github.com/hypertrack/sdk-react-native/releases/tag/13.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.3.0-brightgreen.svg)](https://github.com/hypertrack/sdk-ios)
[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.3.0-brightgreen.svg)](https://github.com/hypertrack/sdk-android)
[![iOS SDK](https://img.shields.io/badge/iOS%20SDK-5.4.0-brightgreen.svg)](https://github.com/hypertrack/sdk-ios)
[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.4.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.

50 changes: 25 additions & 25 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# do not create a shorcut for `publlish` command to avoid accidental publishing
alias b := build
alias cnm := clear-node-modules
alias cnm := _clear-node-modules
alias d := docs
alias gd := get-dependencies
alias od := open-docs
Expand Down Expand Up @@ -31,9 +31,9 @@ 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
clean: _clear-node-modules

clear-node-modules:
_clear-node-modules:
rm -rf sdk/node_modules
rm -rf plugin_android_location_services_google/node_modules
rm -rf plugin_android_location_services_google_19_0_1/node_modules
Expand All @@ -48,10 +48,10 @@ get-dependencies:
yarn --cwd plugin_android_location_services_google_19_0_1
yarn --cwd plugin_android_push_service_firebase

latest-android:
_latest-android:
@curl -s https://s3-us-west-2.amazonaws.com/m2.hypertrack.com/com/hypertrack/sdk-android/maven-metadata-sdk-android.xml | grep latest | grep -o -E '{{SEMVER_REGEX}}' | head -n 1

latest-ios:
_latest-ios:
@curl -s https://cocoapods.org/pods/HyperTrack | grep -m 1 -o -E "HyperTrack <span>{{SEMVER_REGEX}}" | grep -o -E '{{SEMVER_REGEX}}' | head -n 1

open-docs: docs
Expand Down Expand Up @@ -94,29 +94,29 @@ release publish="dry-run": build
setup: get-dependencies

update-readme-android android_version:
_update-readme-android android_version:
./scripts/update_file.sh README.md 'Android\%20SDK-.*-brightgreen.svg' 'Android%20SDK-{{android_version}}-brightgreen.svg'

update-readme-ios ios_version:
_update-readme-ios ios_version:
./scripts/update_file.sh README.md 'iOS\%20SDK-.*-brightgreen.svg' 'iOS%20SDK-{{ios_version}}-brightgreen.svg'

update-sdk-latest wrapper_version commit="true" branch="true":
#!/usr/bin/env sh
set -euo pipefail
LATEST_IOS=$(just latest-ios)
LATEST_ANDROID=$(just latest-android)
LATEST_IOS=$(just _latest-ios)
LATEST_ANDROID=$(just _latest-android)
just update-sdk {{wrapper_version}} $LATEST_IOS $LATEST_ANDROID {{commit}} {{branch}}
update-sdk-android-latest wrapper_version commit="true" branch="true":
#!/usr/bin/env sh
set -euo pipefail
LATEST_ANDROID=$(just latest-android)
LATEST_ANDROID=$(just _latest-android)
just update-sdk-android {{wrapper_version}} $LATEST_ANDROID {{commit}} {{branch}}
update-sdk-ios-latest wrapper_version commit="true" branch="true":
#!/usr/bin/env sh
set -euo pipefail
LATEST_IOS=$(just latest-ios)
LATEST_IOS=$(just _latest-ios)
just update-sdk-ios {{wrapper_version}} $LATEST_IOS {{commit}} {{branch}}
update-sdk wrapper_version ios_version android_version commit="true" branch="true": build
Expand All @@ -127,14 +127,14 @@ update-sdk wrapper_version ios_version android_version commit="true" branch="tru
fi
just version
echo "New version is {{wrapper_version}}"
just update-wrapper-version-file {{wrapper_version}}
just _update-wrapper-version-file {{wrapper_version}}
./scripts/update_changelog.sh -w {{wrapper_version}} -i {{ios_version}} -a {{android_version}}
echo "Updating HyperTrack SDK iOS to {{ios_version}}"
just update-sdk-ios-version-file {{ios_version}}
just update-readme-ios {{ios_version}}
just _update-sdk-ios-version-file {{ios_version}}
just _update-readme-ios {{ios_version}}
echo "Updating HyperTrack SDK Android to {{android_version}}"
just update-sdk-android-version-file {{android_version}}
just update-readme-android {{android_version}}
just _update-sdk-android-version-file {{android_version}}
just _update-readme-android {{android_version}}
just docs
if [ "{{commit}}" = "true" ] ; then
git add .
Expand All @@ -149,9 +149,9 @@ update-sdk-android wrapper_version android_version commit="true" branch="true":
fi
just version
echo "Updating HyperTrack SDK Android to {{android_version}} on {{wrapper_version}}"
just update-wrapper-version-file {{wrapper_version}}
just update-sdk-android-version-file {{android_version}}
just update-readme-android {{android_version}}
just _update-wrapper-version-file {{wrapper_version}}
just _update-sdk-android-version-file {{android_version}}
just _update-readme-android {{android_version}}
./scripts/update_changelog.sh -w {{wrapper_version}} -a {{android_version}}
just docs
if [ "{{commit}}" = "true" ] ; then
Expand All @@ -167,26 +167,26 @@ update-sdk-ios wrapper_version ios_version commit="true" branch="true": build
fi
just version
echo "Updating HyperTrack SDK iOS to {{ios_version}} on {{wrapper_version}}"
just update-wrapper-version-file {{wrapper_version}}
just update-sdk-ios-version-file {{ios_version}}
just update-readme-ios {{ios_version}}
just _update-wrapper-version-file {{wrapper_version}}
just _update-sdk-ios-version-file {{ios_version}}
just _update-readme-ios {{ios_version}}
./scripts/update_changelog.sh -w {{wrapper_version}} -i {{ios_version}}
just docs
if [ "{{commit}}" = "true" ] ; then
git add .
git commit -m "Update HyperTrack SDK iOS to {{ios_version}}"
fi
update-sdk-android-version-file android_version:
_update-sdk-android-version-file android_version:
./scripts/update_file.sh sdk/android/gradle.properties 'HyperTrackSdk_HyperTrackSDKVersion=.*' 'HyperTrackSdk_HyperTrackSDKVersion={{android_version}}'
./scripts/update_file.sh plugin_android_location_services_google/android/gradle.properties 'PluginAndroidLocationServicesGoogle_HyperTrackSDKVersion=.*' 'PluginAndroidLocationServicesGoogle_HyperTrackSDKVersion={{android_version}}'
./scripts/update_file.sh plugin_android_location_services_google_19_0_1/android/gradle.properties 'PluginAndroidLocationServicesGoogle1901_HyperTrackSDKVersion=.*' 'PluginAndroidLocationServicesGoogle1901_HyperTrackSDKVersion={{android_version}}'
./scripts/update_file.sh plugin_android_push_service_firebase/android/gradle.properties 'PluginAndroidPushServiceFirebase_HyperTrackSDKVersion=.*' 'PluginAndroidPushServiceFirebase_HyperTrackSDKVersion={{android_version}}'

update-sdk-ios-version-file ios_version:
_update-sdk-ios-version-file ios_version:
./scripts/update_file.sh sdk/hypertrack-sdk-react-native.podspec "'HyperTrack', '.*'" "'HyperTrack', '{{ios_version}}'"

update-wrapper-version-file wrapper_version:
_update-wrapper-version-file wrapper_version:
./scripts/update_file.sh sdk/package.json '"version": ".*"' '"version": "{{wrapper_version}}"'
./scripts/update_file.sh plugin_android_location_services_google/package.json '"version": ".*"' '"version": "{{wrapper_version}}"'
./scripts/update_file.sh plugin_android_location_services_google_19_0_1/package.json '"version": ".*"' '"version": "{{wrapper_version}}"'
Expand Down
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.3.0
PluginAndroidLocationServicesGoogle_HyperTrackSDKVersion=7.4.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": "13.0.0",
"version": "13.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.3.0
PluginAndroidLocationServicesGoogle1901_HyperTrackSDKVersion=7.4.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": "13.0.0",
"version": "13.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.3.0
PluginAndroidPushServiceFirebase_HyperTrackSDKVersion=7.4.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": "13.0.0",
"version": "13.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
4 changes: 2 additions & 2 deletions scripts/update_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ sed -i '' -e "11 i\\

if [ -n "$android_version" ]; then
sed -i '' -e "12 i\\
- Updated HyperTrack SDK Android to $android_version" $changelog_file
- Updated HyperTrack SDK Android to [$android_version](https://github.com/hypertrack/sdk-android/releases/tag/$android_version)" $changelog_file
fi

if [ -n "$ios_version" ]; then
sed -i '' -e "12 i\\
- Updated HyperTrack SDK iOS to $ios_version" $changelog_file
- Updated HyperTrack SDK iOS to [$ios_version](https://github.com/hypertrack/sdk-ios/releases/tag/$ios_version)" $changelog_file
fi
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.3.0
HyperTrackSdk_HyperTrackSDKVersion=7.4.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.3.0'
s.dependency 'HyperTrack', '5.4.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": "13.0.0",
"version": "13.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 769891c

Please sign in to comment.