From 7b35022e586e55b38b7233036b7a13c3e041d392 Mon Sep 17 00:00:00 2001 From: pavel-kuznetsov-hypertrack <78730314+pavel-kuznetsov-hypertrack@users.noreply.github.com> Date: Fri, 24 May 2024 19:37:52 +0300 Subject: [PATCH] Update HyperTrack SDK Android to 7.5.5 (#33) Add opening PRs to justfile. --- CHANGELOG.md | 7 +++++++ README.md | 2 +- android/build.gradle | 2 +- docs/classes/HyperTrack.html | 7 ++++--- docs/enums/HyperTrackError.html | 4 ++-- docs/index.html | 4 ++-- docs/interfaces/Subscription.html | 4 ++-- docs/types/Errors.html | 2 +- docs/types/Failure.html | 2 +- docs/types/Location.html | 2 +- docs/types/LocationError.html | 2 +- docs/types/LocationWithDeviation.html | 2 +- docs/types/NotRunning.html | 2 +- docs/types/OrderStatus.html | 2 +- docs/types/Result.html | 2 +- docs/types/Starting.html | 2 +- docs/types/Success.html | 2 +- justfile | 22 ++++++++++++++++++++++ package.json | 2 +- 19 files changed, 52 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7f4d3a..35c51db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.3.1] - 2024-05-24 + +### Changed + +- Updated HyperTrack SDK Android to [7.5.5](https://github.com/hypertrack/sdk-android/releases/tag/7.5.5) + ## [3.3.0] - 2024-05-13 ### Added @@ -208,3 +214,4 @@ We are excited to announce the release of HyperTrack Ionic Capacitor SDK 2.0.0, [3.2.1]: https://github.com/hypertrack/sdk-ionic-capacitor/releases/tag/3.2.1 [3.2.2]: https://github.com/hypertrack/sdk-ionic-capacitor/releases/tag/3.2.2 [3.3.0]: https://github.com/hypertrack/sdk-ionic-capacitor/releases/tag/3.3.0 +[3.3.1]: https://github.com/hypertrack/sdk-ionic-capacitor/releases/tag/3.3.1 diff --git a/README.md b/README.md index c580b41..0ac7e05 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![GitHub](https://img.shields.io/github/license/hypertrack/sdk-ionic-capacitor.svg?color=orange)](./LICENSE) [![npm](https://img.shields.io/npm/v/hypertrack-sdk-ionic-capacitor.svg)](https://www.npmjs.com/package/hypertrack-sdk-ionic-capacitor) [![iOS SDK](https://img.shields.io/badge/iOS%20SDK-5.5.4-brightgreen.svg)](https://github.com/hypertrack/sdk-ios) -[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.5.4-brightgreen.svg)](https://github.com/hypertrack/sdk-android) +[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.5.5-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. diff --git a/android/build.gradle b/android/build.gradle index 91e8b10..8e18c33 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -7,7 +7,7 @@ ext { buildscript { ext.kotlin_version = project.hasProperty('kotlin_version') ? rootProject.ext.kotlin_version : '1.9.10' - ext.hypertrack_sdk_version = "7.5.4" + ext.hypertrack_sdk_version = "7.5.5" ext.firebase_messaging_version = "23.1.1" repositories { diff --git a/docs/classes/HyperTrack.html b/docs/classes/HyperTrack.html index c3f51ec..6fc5f0b 100644 --- a/docs/classes/HyperTrack.html +++ b/docs/classes/HyperTrack.html @@ -1,4 +1,4 @@ -HyperTrack | HyperTrack Ionic Capacitor SDK API - v3.3.0

Constructors

constructor +HyperTrack | HyperTrack Ionic Capacitor SDK API - v3.3.1

Constructors

Properties

Methods

addGeotag getDeviceId @@ -58,7 +58,8 @@

Example

const subscription = HyperTrack.locate(location => {
...
})

// to unsubscribe
subscription.remove()
  • Sets the availability of the device for the Nearby search

    -

    Parameters

    • isAvailable: boolean

    Returns Promise<void>

  • Sets the tracking intent for the device

    +

    Parameters

    • isAvailable: boolean

      true when is available or false when unavailable

      +

    Returns Promise<void>

  • Sets the tracking intent for the device

    Parameters

    • isTracking: boolean

    Returns Promise<void>

  • Sets the metadata for the device

    Parameters

    • data: Object

      Metadata JSON

    Returns Promise<void>

  • Sets the name for the device

    @@ -78,4 +79,4 @@

    Parameters

    Returns Subscription

    Subscription

    Example

    const subscription = HyperTrack.subscribeToLocation(location => {
    ...
    })

    // later, to stop listening
    subscription.remove()
    -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/enums/HyperTrackError.html b/docs/enums/HyperTrackError.html index bbbd231..3496ff4 100644 --- a/docs/enums/HyperTrackError.html +++ b/docs/enums/HyperTrackError.html @@ -1,4 +1,4 @@ -HyperTrackError | HyperTrack Ionic Capacitor SDK API - v3.3.0

Enumeration Members

blockedFromRunning +HyperTrackError | HyperTrack Ionic Capacitor SDK API - v3.3.1

Enumeration Members

permissionsLocationRestricted: "permissions.location.restricted"

[iOS only] The app is not authorized to use location services.

permissionsNotificationsDenied: "permissions.notifications.denied"

[Android only] The user denied notification permissions needed to display a persistent notification needed for foreground location tracking.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index a8f65ff..4c7e11a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -HyperTrack Ionic Capacitor SDK API - v3.3.0

HyperTrack Ionic Capacitor SDK API - v3.3.0

References

default +HyperTrack Ionic Capacitor SDK API - v3.3.1

HyperTrack Ionic Capacitor SDK API - v3.3.1

References

Enumerations

Classes

Interfaces

References

Renames and re-exports HyperTrack
\ No newline at end of file +

References

Renames and re-exports HyperTrack
\ No newline at end of file diff --git a/docs/interfaces/Subscription.html b/docs/interfaces/Subscription.html index 1a829ab..28b73e8 100644 --- a/docs/interfaces/Subscription.html +++ b/docs/interfaces/Subscription.html @@ -1,2 +1,2 @@ -Subscription | HyperTrack Ionic Capacitor SDK API - v3.3.0
interface Subscription {
    remove: (() => Promise<Object>);
}

Properties

Properties

remove: (() => Promise<Object>)

Type declaration

    • (): Promise<Object>
    • Returns Promise<Object>

\ No newline at end of file +Subscription | HyperTrack Ionic Capacitor SDK API - v3.3.1
interface Subscription {
    remove: (() => Promise<Object>);
}

Properties

Properties

remove: (() => Promise<Object>)

Type declaration

    • (): Promise<Object>
    • Returns Promise<Object>

\ No newline at end of file diff --git a/docs/types/Errors.html b/docs/types/Errors.html index efb29bd..b23291b 100644 --- a/docs/types/Errors.html +++ b/docs/types/Errors.html @@ -1 +1 @@ -Errors | HyperTrack Ionic Capacitor SDK API - v3.3.0
Errors: {
    type: "errors";
    value: HyperTrackError[];
}

Type declaration

\ No newline at end of file +Errors | HyperTrack Ionic Capacitor SDK API - v3.3.1
Errors: {
    type: "errors";
    value: HyperTrackError[];
}

Type declaration

\ No newline at end of file diff --git a/docs/types/Failure.html b/docs/types/Failure.html index 617d37a..1f150ea 100644 --- a/docs/types/Failure.html +++ b/docs/types/Failure.html @@ -1 +1 @@ -Failure | HyperTrack Ionic Capacitor SDK API - v3.3.0
Failure<F>: {
    type: "failure";
    value: F;
}

Type Parameters

  • F

Type declaration

  • type: "failure"
  • value: F
\ No newline at end of file +Failure | HyperTrack Ionic Capacitor SDK API - v3.3.1
Failure<F>: {
    type: "failure";
    value: F;
}

Type Parameters

  • F

Type declaration

  • type: "failure"
  • value: F
\ No newline at end of file diff --git a/docs/types/Location.html b/docs/types/Location.html index eb16feb..97b480a 100644 --- a/docs/types/Location.html +++ b/docs/types/Location.html @@ -1 +1 @@ -Location | HyperTrack Ionic Capacitor SDK API - v3.3.0
Location: {
    latitude: number;
    longitude: number;
}

Type declaration

  • latitude: number
  • longitude: number
\ No newline at end of file +Location | HyperTrack Ionic Capacitor SDK API - v3.3.1
Location: {
    latitude: number;
    longitude: number;
}

Type declaration

  • latitude: number
  • longitude: number
\ No newline at end of file diff --git a/docs/types/LocationError.html b/docs/types/LocationError.html index 87f07da..46ac673 100644 --- a/docs/types/LocationError.html +++ b/docs/types/LocationError.html @@ -1 +1 @@ -LocationError | HyperTrack Ionic Capacitor SDK API - v3.3.0
LocationError: NotRunning | Starting | Errors
\ No newline at end of file +LocationError | HyperTrack Ionic Capacitor SDK API - v3.3.1
LocationError: NotRunning | Starting | Errors
\ No newline at end of file diff --git a/docs/types/LocationWithDeviation.html b/docs/types/LocationWithDeviation.html index c790aa2..d0cd93e 100644 --- a/docs/types/LocationWithDeviation.html +++ b/docs/types/LocationWithDeviation.html @@ -1 +1 @@ -LocationWithDeviation | HyperTrack Ionic Capacitor SDK API - v3.3.0
LocationWithDeviation: {
    location: Location;
    deviation: number;
}

Type declaration

\ No newline at end of file +LocationWithDeviation | HyperTrack Ionic Capacitor SDK API - v3.3.1
LocationWithDeviation: {
    location: Location;
    deviation: number;
}

Type declaration

\ No newline at end of file diff --git a/docs/types/NotRunning.html b/docs/types/NotRunning.html index 404f4e2..72d0bc4 100644 --- a/docs/types/NotRunning.html +++ b/docs/types/NotRunning.html @@ -1 +1 @@ -NotRunning | HyperTrack Ionic Capacitor SDK API - v3.3.0
NotRunning: {
    type: "notRunning";
}

Type declaration

  • type: "notRunning"
\ No newline at end of file +NotRunning | HyperTrack Ionic Capacitor SDK API - v3.3.1
NotRunning: {
    type: "notRunning";
}

Type declaration

  • type: "notRunning"
\ No newline at end of file diff --git a/docs/types/OrderStatus.html b/docs/types/OrderStatus.html index b457b41..f5e1a67 100644 --- a/docs/types/OrderStatus.html +++ b/docs/types/OrderStatus.html @@ -1 +1 @@ -OrderStatus | HyperTrack Ionic Capacitor SDK API - v3.3.0
OrderStatus: {
    type: "orderStatusClockIn";
} | {
    type: "orderStatusClockOut";
} | {
    type: "orderStatusCustom";
    value: string;
}

Type declaration

  • type: "orderStatusClockIn"

Type declaration

  • type: "orderStatusClockOut"

Type declaration

  • type: "orderStatusCustom"
  • value: string
\ No newline at end of file +OrderStatus | HyperTrack Ionic Capacitor SDK API - v3.3.1
OrderStatus: {
    type: "orderStatusClockIn";
} | {
    type: "orderStatusClockOut";
} | {
    type: "orderStatusCustom";
    value: string;
}

Type declaration

  • type: "orderStatusClockIn"

Type declaration

  • type: "orderStatusClockOut"

Type declaration

  • type: "orderStatusCustom"
  • value: string
\ No newline at end of file diff --git a/docs/types/Result.html b/docs/types/Result.html index a1284f9..457d8e0 100644 --- a/docs/types/Result.html +++ b/docs/types/Result.html @@ -1 +1 @@ -Result | HyperTrack Ionic Capacitor SDK API - v3.3.0
Result<S, F>: Success<S> | Failure<F>

Type Parameters

  • S

  • F

\ No newline at end of file +Result | HyperTrack Ionic Capacitor SDK API - v3.3.1
Result<S, F>: Success<S> | Failure<F>

Type Parameters

  • S

  • F

\ No newline at end of file diff --git a/docs/types/Starting.html b/docs/types/Starting.html index 378e938..df5afd7 100644 --- a/docs/types/Starting.html +++ b/docs/types/Starting.html @@ -1 +1 @@ -Starting | HyperTrack Ionic Capacitor SDK API - v3.3.0
Starting: {
    type: "starting";
}

Type declaration

  • type: "starting"
\ No newline at end of file +Starting | HyperTrack Ionic Capacitor SDK API - v3.3.1
Starting: {
    type: "starting";
}

Type declaration

  • type: "starting"
\ No newline at end of file diff --git a/docs/types/Success.html b/docs/types/Success.html index 40c6786..8895c34 100644 --- a/docs/types/Success.html +++ b/docs/types/Success.html @@ -1 +1 @@ -Success | HyperTrack Ionic Capacitor SDK API - v3.3.0
Success<S>: {
    type: "success";
    value: S;
}

Type Parameters

  • S

Type declaration

  • type: "success"
  • value: S
\ No newline at end of file +Success | HyperTrack Ionic Capacitor SDK API - v3.3.1
Success<S>: {
    type: "success";
    value: S;
}

Type Parameters

  • S

Type declaration

  • type: "success"
  • value: S
\ No newline at end of file diff --git a/justfile b/justfile index 3a7bcf2..b76484c 100644 --- a/justfile +++ b/justfile @@ -4,6 +4,8 @@ alias c := clean alias d := docs alias gd := get-dependencies alias od := open-docs +alias ogp := open-github-prs +alias ogr := open-github-releases alias pt := push-tag alias r := release alias us := update-sdk @@ -49,6 +51,16 @@ _latest-ios: open-docs: docs open docs/index.html +open-github-prs: + open "https://github.com/hypertrack/sdk-ionic-capacitor/pulls" + +open-github-releases: + open "https://github.com/hypertrack/sdk-ionic-capacitor/releases" + +_open-github-release-data: + code CHANGELOG.md + just open-github-releases + push-tag: #!/usr/bin/env sh set -euo pipefail @@ -56,6 +68,7 @@ push-tag: VERSION=$(just version) git tag $VERSION git push origin $VERSION + just _open-github-release-data else echo "You are not on main branch" fi @@ -127,6 +140,9 @@ update-sdk wrapper_version ios_version android_version commit="true" branch="tru git add . git commit -m "Update HyperTrack SDK iOS to {{ios_version}} and Android to {{android_version}}" fi + if [ "{{branch}}" = "true" ] && [ "{{commit}}" = "true" ] ; then + just open-github-prs + fi update-sdk-android wrapper_version android_version commit="true" branch="true": build #!/usr/bin/env sh @@ -145,6 +161,9 @@ update-sdk-android wrapper_version android_version commit="true" branch="true": git add . git commit -m "Update HyperTrack SDK Android to {{android_version}}" fi + if [ "{{branch}}" = "true" ] && [ "{{commit}}" = "true" ] ; then + just open-github-prs + fi update-sdk-ios wrapper_version ios_version commit="true" branch="true": build #!/usr/bin/env sh @@ -163,6 +182,9 @@ update-sdk-ios wrapper_version ios_version commit="true" branch="true": build git add . git commit -m "Update HyperTrack SDK iOS to {{ios_version}}" fi + if [ "{{branch}}" = "true" ] && [ "{{commit}}" = "true" ] ; then + just open-github-prs + fi _update-sdk-android-version-file android_version: ./scripts/update_file.sh android/build.gradle 'ext.hypertrack_sdk_version = ".*"' 'ext.hypertrack_sdk_version = "{{android_version}}"' diff --git a/package.json b/package.json index c3c3cb7..8b0c0d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hypertrack-sdk-ionic-capacitor", - "version": "3.3.0", + "version": "3.3.1", "description": "Capacitor plugin for HyperTrack generation SDKs", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js",