diff --git a/CHANGELOG.md b/CHANGELOG.md index ba305f7..d7f4d3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.3.0] - 2024-05-13 + +### Added + +- Now the plugin takes into account project's `kotlin_version` to align Kotlin versions. + +### Changed + +- Default Kotlin version is updated to `1.9.10` +- Updated HyperTrack SDK iOS to [5.5.4](https://github.com/hypertrack/sdk-ios/releases/tag/5.5.4) +- Updated HyperTrack SDK Android to [7.5.4](https://github.com/hypertrack/sdk-android/releases/tag/7.5.4) + +### Removed + +- `@capacitor/core` item in `peerDependencies` + ## [3.2.2] - 2024-05-03 ### Changed @@ -191,3 +207,4 @@ We are excited to announce the release of HyperTrack Ionic Capacitor SDK 2.0.0, [3.2.0]: https://github.com/hypertrack/sdk-ionic-capacitor/releases/tag/3.2.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 diff --git a/HypertrackSdkIonicCapacitor.podspec b/HypertrackSdkIonicCapacitor.podspec index fab0103..8ef81c2 100644 --- a/HypertrackSdkIonicCapacitor.podspec +++ b/HypertrackSdkIonicCapacitor.podspec @@ -14,5 +14,5 @@ Pod::Spec.new do |s| s.ios.deployment_target = '12.0' s.dependency 'Capacitor' s.swift_version = '5.1' - s.dependency 'HyperTrack','5.5.3' + s.dependency 'HyperTrack','5.5.4' end diff --git a/README.md b/README.md index 1005b8c..c580b41 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![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.3-brightgreen.svg)](https://github.com/hypertrack/sdk-ios) -[![Android SDK](https://img.shields.io/badge/Android%20SDK-7.5.3-brightgreen.svg)](https://github.com/hypertrack/sdk-android) +[![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) [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 7a6cb74..91e8b10 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,8 +6,8 @@ ext { } buildscript { - ext.kotlin_version = "1.7.21" - ext.hypertrack_sdk_version = "7.5.3" + ext.kotlin_version = project.hasProperty('kotlin_version') ? rootProject.ext.kotlin_version : '1.9.10' + ext.hypertrack_sdk_version = "7.5.4" ext.firebase_messaging_version = "23.1.1" repositories { diff --git a/docs/classes/HyperTrack.html b/docs/classes/HyperTrack.html index 74b0609..c3f51ec 100644 --- a/docs/classes/HyperTrack.html +++ b/docs/classes/HyperTrack.html @@ -1,4 +1,4 @@ -HyperTrack | HyperTrack Ionic Capacitor SDK API - v3.2.2

Constructors

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

Constructors

Properties

Methods

addGeotag getDeviceId @@ -78,4 +78,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 b835cca..bbbd231 100644 --- a/docs/enums/HyperTrackError.html +++ b/docs/enums/HyperTrackError.html @@ -1,4 +1,4 @@ -HyperTrackError | HyperTrack Ionic Capacitor SDK API - v3.2.2

Enumeration Members

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

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 b5b77c6..a8f65ff 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -HyperTrack Ionic Capacitor SDK API - v3.2.2

HyperTrack Ionic Capacitor SDK API - v3.2.2

References

default +HyperTrack Ionic Capacitor SDK API - v3.3.0

HyperTrack Ionic Capacitor SDK API - v3.3.0

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 76601cc..1a829ab 100644 --- a/docs/interfaces/Subscription.html +++ b/docs/interfaces/Subscription.html @@ -1,2 +1,2 @@ -Subscription | HyperTrack Ionic Capacitor SDK API - v3.2.2
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.0
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 d87fa32..efb29bd 100644 --- a/docs/types/Errors.html +++ b/docs/types/Errors.html @@ -1 +1 @@ -Errors | HyperTrack Ionic Capacitor SDK API - v3.2.2
Errors: {
    type: "errors";
    value: HyperTrackError[];
}

Type declaration

\ No newline at end of file +Errors | HyperTrack Ionic Capacitor SDK API - v3.3.0
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 154cb54..617d37a 100644 --- a/docs/types/Failure.html +++ b/docs/types/Failure.html @@ -1 +1 @@ -Failure | HyperTrack Ionic Capacitor SDK API - v3.2.2
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.0
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 ecc38bf..eb16feb 100644 --- a/docs/types/Location.html +++ b/docs/types/Location.html @@ -1 +1 @@ -Location | HyperTrack Ionic Capacitor SDK API - v3.2.2
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.0
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 3b000ca..87f07da 100644 --- a/docs/types/LocationError.html +++ b/docs/types/LocationError.html @@ -1 +1 @@ -LocationError | HyperTrack Ionic Capacitor SDK API - v3.2.2
LocationError: NotRunning | Starting | Errors
\ No newline at end of file +LocationError | HyperTrack Ionic Capacitor SDK API - v3.3.0
LocationError: NotRunning | Starting | Errors
\ No newline at end of file diff --git a/docs/types/LocationWithDeviation.html b/docs/types/LocationWithDeviation.html index acd55d2..c790aa2 100644 --- a/docs/types/LocationWithDeviation.html +++ b/docs/types/LocationWithDeviation.html @@ -1 +1 @@ -LocationWithDeviation | HyperTrack Ionic Capacitor SDK API - v3.2.2
LocationWithDeviation: {
    location: Location;
    deviation: number;
}

Type declaration

\ No newline at end of file +LocationWithDeviation | HyperTrack Ionic Capacitor SDK API - v3.3.0
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 402d0f5..404f4e2 100644 --- a/docs/types/NotRunning.html +++ b/docs/types/NotRunning.html @@ -1 +1 @@ -NotRunning | HyperTrack Ionic Capacitor SDK API - v3.2.2
NotRunning: {
    type: "notRunning";
}

Type declaration

  • type: "notRunning"
\ No newline at end of file +NotRunning | HyperTrack Ionic Capacitor SDK API - v3.3.0
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 629d259..b457b41 100644 --- a/docs/types/OrderStatus.html +++ b/docs/types/OrderStatus.html @@ -1 +1 @@ -OrderStatus | HyperTrack Ionic Capacitor SDK API - v3.2.2
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.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 diff --git a/docs/types/Result.html b/docs/types/Result.html index ad9eef0..a1284f9 100644 --- a/docs/types/Result.html +++ b/docs/types/Result.html @@ -1 +1 @@ -Result | HyperTrack Ionic Capacitor SDK API - v3.2.2
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.0
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 0f78cdb..378e938 100644 --- a/docs/types/Starting.html +++ b/docs/types/Starting.html @@ -1 +1 @@ -Starting | HyperTrack Ionic Capacitor SDK API - v3.2.2
Starting: {
    type: "starting";
}

Type declaration

  • type: "starting"
\ No newline at end of file +Starting | HyperTrack Ionic Capacitor SDK API - v3.3.0
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 94a1c9f..40c6786 100644 --- a/docs/types/Success.html +++ b/docs/types/Success.html @@ -1 +1 @@ -Success | HyperTrack Ionic Capacitor SDK API - v3.2.2
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.0
Success<S>: {
    type: "success";
    value: S;
}

Type Parameters

  • S

Type declaration

  • type: "success"
  • value: S
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c62941a..c65e3be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hypertrack-sdk-ionic-capacitor", - "version": "3.2.1", + "version": "3.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hypertrack-sdk-ionic-capacitor", - "version": "3.2.1", + "version": "3.3.0", "license": "MIT", "devDependencies": { "@capacitor/android": "^5.6.0", @@ -24,9 +24,6 @@ "swiftlint": "^1.0.2", "typedoc": "^0.25.4", "typescript": "^5.3.3" - }, - "peerDependencies": { - "@capacitor/core": "^5.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index ae04270..c3c3cb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hypertrack-sdk-ionic-capacitor", - "version": "3.2.2", + "version": "3.3.0", "description": "Capacitor plugin for HyperTrack generation SDKs", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js", @@ -61,9 +61,7 @@ "typedoc": "^0.25.4", "typescript": "^5.3.3" }, - "peerDependencies": { - "@capacitor/core": "^5.0.0" - }, + "peerDependencies": {}, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", "eslintConfig": { diff --git a/src/HyperTrack.ts b/src/HyperTrack.ts index 0e8db9e..8b0690c 100644 --- a/src/HyperTrack.ts +++ b/src/HyperTrack.ts @@ -274,7 +274,7 @@ export default class HyperTrack { /** * Sets the availability of the device for the Nearby search * - * @param availability true when is available or false when unavailable + * @param isAvailable true when is available or false when unavailable */ static async setIsAvailable(isAvailable: boolean) { hyperTrackPlugin.setIsAvailable({