hypertrack-sdk-react-native 8.2.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -1
- package/CONTRIBUTING.md +32 -110
- package/{LICENSE → LICENSE.md} +2 -0
- package/README.md +20 -40
- package/android/build.gradle +112 -113
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/reactnativehypertracksdk/HyperTrackReactNativePlugin.kt +209 -0
- package/android/src/main/java/com/reactnativehypertracksdk/HyperTrackSdkPackage.kt +2 -4
- package/android/src/main/java/com/reactnativehypertracksdk/ReactNativeSerialization.kt +88 -0
- package/android/src/main/java/com/reactnativehypertracksdk/common/Geotag.kt +9 -0
- package/android/src/main/java/com/reactnativehypertracksdk/common/HyperTrackError.kt +27 -0
- package/android/src/main/java/com/reactnativehypertracksdk/common/HyperTrackSdkWrapper.kt +243 -0
- package/android/src/main/java/com/reactnativehypertracksdk/common/LocationError.kt +9 -0
- package/android/src/main/java/com/reactnativehypertracksdk/common/Result.kt +48 -0
- package/android/src/main/java/com/reactnativehypertracksdk/common/SdkInitParams.kt +46 -0
- package/android/src/main/java/com/reactnativehypertracksdk/common/SdkMethod.kt +20 -0
- package/android/src/main/java/com/reactnativehypertracksdk/common/Serialization.kt +196 -0
- package/hypertrack-sdk-react-native.podspec +1 -1
- package/ios/HyperTrackReactNativePlugin.m +54 -0
- package/ios/HyperTrackReactNativePlugin.swift +253 -0
- package/ios/HyperTrackSdk-Bridging-Header.h +2 -0
- package/ios/HyperTrackSdk.xcodeproj/project.pbxproj +8 -11
- package/ios/common/DictionaryDecoder.swift +28 -0
- package/ios/common/HyperTrackError.swift +20 -0
- package/ios/common/HyperTrackSDKWrapper.swift +118 -0
- package/ios/common/SDKInitParams.swift +11 -0
- package/ios/common/SDKMethod.swift +14 -0
- package/ios/common/Serialization.swift +270 -0
- package/lib/commonjs/HyperTrack/HyperTrack.js +141 -142
- package/lib/commonjs/HyperTrack/HyperTrack.js.map +1 -1
- package/lib/commonjs/HyperTrack/data_types/HyperTrackError.js +31 -0
- package/lib/commonjs/HyperTrack/data_types/HyperTrackError.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/Location.js +2 -0
- package/lib/commonjs/HyperTrack/data_types/Location.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/LocationError.js +6 -0
- package/lib/commonjs/HyperTrack/data_types/LocationError.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/SdkInitParams.js +2 -0
- package/lib/commonjs/HyperTrack/data_types/SdkInitParams.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/internal/DeviceId.js +2 -0
- package/lib/commonjs/HyperTrack/data_types/internal/DeviceId.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/internal/DeviceName.js +2 -0
- package/lib/commonjs/HyperTrack/data_types/internal/DeviceName.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/internal/Geotag.js +2 -0
- package/lib/commonjs/HyperTrack/data_types/internal/Geotag.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/internal/HyperTrackErrorInternal.js +2 -0
- package/lib/commonjs/HyperTrack/data_types/internal/HyperTrackErrorInternal.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/internal/IsAvailable.js +2 -0
- package/lib/commonjs/HyperTrack/data_types/internal/IsAvailable.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/internal/IsTracking.js +2 -0
- package/lib/commonjs/HyperTrack/data_types/internal/IsTracking.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/internal/LocationErrorInternal.js +6 -0
- package/lib/commonjs/HyperTrack/data_types/internal/LocationErrorInternal.js.map +1 -0
- package/lib/commonjs/HyperTrack/data_types/internal/LocationResponse.js +6 -0
- package/lib/commonjs/HyperTrack/data_types/internal/LocationResponse.js.map +1 -0
- package/lib/commonjs/index.js +28 -17
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/HyperTrack/HyperTrack.js +140 -134
- package/lib/module/HyperTrack/HyperTrack.js.map +1 -1
- package/lib/module/HyperTrack/data_types/HyperTrackError.js +24 -0
- package/lib/module/HyperTrack/data_types/HyperTrackError.js.map +1 -0
- package/lib/module/HyperTrack/data_types/Location.js +2 -0
- package/lib/module/HyperTrack/data_types/Location.js.map +1 -0
- package/lib/module/HyperTrack/data_types/LocationError.js +2 -0
- package/lib/module/HyperTrack/data_types/LocationError.js.map +1 -0
- package/lib/module/HyperTrack/data_types/SdkInitParams.js +2 -0
- package/lib/module/HyperTrack/data_types/SdkInitParams.js.map +1 -0
- package/lib/module/HyperTrack/data_types/internal/DeviceId.js +2 -0
- package/lib/module/HyperTrack/data_types/internal/DeviceId.js.map +1 -0
- package/lib/module/HyperTrack/data_types/internal/DeviceName.js +2 -0
- package/lib/module/HyperTrack/data_types/internal/DeviceName.js.map +1 -0
- package/lib/module/HyperTrack/data_types/internal/Geotag.js +2 -0
- package/lib/module/HyperTrack/data_types/internal/Geotag.js.map +1 -0
- package/lib/module/HyperTrack/data_types/internal/HyperTrackErrorInternal.js +2 -0
- package/lib/module/HyperTrack/data_types/internal/HyperTrackErrorInternal.js.map +1 -0
- package/lib/module/HyperTrack/data_types/internal/IsAvailable.js +2 -0
- package/lib/module/HyperTrack/data_types/internal/IsAvailable.js.map +1 -0
- package/lib/module/HyperTrack/data_types/internal/IsTracking.js +2 -0
- package/lib/module/HyperTrack/data_types/internal/IsTracking.js.map +1 -0
- package/lib/module/HyperTrack/data_types/internal/LocationErrorInternal.js +2 -0
- package/lib/module/HyperTrack/data_types/internal/LocationErrorInternal.js.map +1 -0
- package/lib/module/HyperTrack/data_types/internal/LocationResponse.js +2 -0
- package/lib/module/HyperTrack/data_types/internal/LocationResponse.js.map +1 -0
- package/lib/module/index.js +4 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/HyperTrack/HyperTrack.d.ts +66 -100
- package/lib/typescript/HyperTrack/data_types/HyperTrackError.d.ts +20 -0
- package/lib/typescript/HyperTrack/data_types/Location.d.ts +7 -0
- package/lib/typescript/HyperTrack/data_types/LocationError.d.ts +8 -0
- package/lib/typescript/HyperTrack/data_types/SdkInitParams.d.ts +5 -0
- package/lib/typescript/HyperTrack/data_types/internal/DeviceId.d.ts +4 -0
- package/lib/typescript/HyperTrack/data_types/internal/DeviceName.d.ts +4 -0
- package/lib/typescript/HyperTrack/data_types/internal/Geotag.d.ts +3 -0
- package/lib/typescript/HyperTrack/data_types/internal/HyperTrackErrorInternal.d.ts +4 -0
- package/lib/typescript/HyperTrack/data_types/internal/IsAvailable.d.ts +4 -0
- package/lib/typescript/HyperTrack/data_types/internal/IsTracking.d.ts +4 -0
- package/lib/typescript/HyperTrack/data_types/internal/LocationErrorInternal.d.ts +12 -0
- package/lib/typescript/HyperTrack/data_types/internal/LocationResponse.d.ts +11 -0
- package/lib/typescript/index.d.ts +4 -1
- package/package.json +156 -156
- package/src/HyperTrack/HyperTrack.ts +163 -163
- package/src/HyperTrack/data_types/HyperTrackError.ts +22 -0
- package/src/HyperTrack/data_types/Location.ts +7 -0
- package/src/HyperTrack/data_types/LocationError.ts +11 -0
- package/src/HyperTrack/data_types/SdkInitParams.ts +5 -0
- package/src/HyperTrack/data_types/internal/DeviceId.ts +4 -0
- package/src/HyperTrack/data_types/internal/DeviceName.ts +4 -0
- package/src/HyperTrack/data_types/internal/Geotag.ts +3 -0
- package/src/HyperTrack/data_types/internal/HyperTrackErrorInternal.ts +4 -0
- package/src/HyperTrack/data_types/internal/IsAvailable.ts +4 -0
- package/src/HyperTrack/data_types/internal/IsTracking.ts +4 -0
- package/src/HyperTrack/data_types/internal/LocationErrorInternal.ts +14 -0
- package/src/HyperTrack/data_types/internal/LocationResponse.ts +14 -0
- package/src/index.tsx +4 -7
- package/android/src/main/java/com/reactnativehypertracksdk/HyperTrackModule.kt +0 -284
- package/ios/HyperTrack.h +0 -7
- package/ios/HyperTrack.m +0 -384
|
@@ -1,110 +1,75 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
GENERAL = 0,
|
|
6
|
-
/**
|
|
7
|
-
* Publishable key is invalid. Check your key on hypertrack dashboard setup.
|
|
8
|
-
*/
|
|
9
|
-
INVALID_PUBLISHABLE_KEY = 1,
|
|
10
|
-
/**
|
|
11
|
-
* Your free trial ended or account was not renewed. Check your account on hypertrack dashboard.
|
|
12
|
-
*/
|
|
13
|
-
AUTHORIZATION_FAILED = 2,
|
|
14
|
-
/**
|
|
15
|
-
* Tracking won't start due to denied (or absent) permission.
|
|
16
|
-
*/
|
|
17
|
-
PERMISSION_DENIED = 3
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A base interface for errors in SDK.
|
|
21
|
-
*/
|
|
22
|
-
export declare type Error = {
|
|
23
|
-
code: SDKError;
|
|
24
|
-
message?: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Interface for accessing adding geotag result.
|
|
28
|
-
*/
|
|
29
|
-
export declare enum GeotagError {
|
|
30
|
-
/** Expected location is not supported on this platform */
|
|
31
|
-
PLATFORM_NOT_SUPPORTED = 0,
|
|
32
|
-
/** Expected vs actual location difference is greater then required */
|
|
33
|
-
LOCATION_MISMATCH = 1,
|
|
34
|
-
/** SDK can't get actual location from OS sensors */
|
|
35
|
-
LOCATION_NOT_AVAILABLE = 2,
|
|
36
|
-
/** Invalid arguments */
|
|
37
|
-
INVALID_ARGUMENTS = 3
|
|
38
|
-
}
|
|
39
|
-
export interface Location {
|
|
40
|
-
location: {
|
|
41
|
-
latitude: number;
|
|
42
|
-
longitude: number;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export declare enum LocationError {
|
|
46
|
-
LOCATION_PERMISSIONS_NOT_DETERMINED = "location_permissions_not_determined",
|
|
47
|
-
LOCATION_PERMISSIONS_CANT_BE_ASKED_IN_BACKGROUND = "location_permissions_cant_be_asked_in_background",
|
|
48
|
-
LOCATION_PERMISSIONS_INSUFFICIENT_FOR_BACKGROUND = "location_permissions_insufficient_for_background",
|
|
49
|
-
LOCATION_PERMISSIONS_RESTRICTED = "location_permissions_restricted",
|
|
50
|
-
LOCATION_PERMISSIONS_REDUCED_ACCURACY = "location_permissions_reduced_accuracy",
|
|
51
|
-
LOCATION_PERMISSIONS_DENIED = "location_permissions_denied",
|
|
52
|
-
LOCATION_SERVICES_DISABLED = "location_services_disabled",
|
|
53
|
-
MOTION_ACTIVITY_PERMISSIONS_NOT_DETERMINED = "motion_activity_permissions_not_determined",
|
|
54
|
-
MOTION_ACTIVITY_PERMISSIONS_CANT_BE_ASKED_IN_BACKGROUND = "motion_activity_permissions_cant_be_asked_in_background",
|
|
55
|
-
MOTION_ACTIVITY_PERMISSIONS_DENIED = "motion_activity_permissions_denied",
|
|
56
|
-
MOTION_ACTIVITY_SERVICES_DISABLED = "motion_activity_services_disabled",
|
|
57
|
-
NOT_RUNNING = "not_running",
|
|
58
|
-
GPS_SIGNAL_LOST = "gps_signal_lost",
|
|
59
|
-
STARTING = "starting",
|
|
60
|
-
LOCATION_MOCKED = "location_mocked"
|
|
61
|
-
}
|
|
1
|
+
import { HyperTrackError } from './data_types/HyperTrackError';
|
|
2
|
+
import type { Location } from './data_types/Location';
|
|
3
|
+
import type { LocationError } from './data_types/LocationError';
|
|
4
|
+
import type { SdkInitParams } from './data_types/SdkInitParams';
|
|
62
5
|
export default class HyperTrack {
|
|
63
|
-
constructor();
|
|
64
|
-
static createInstance(publishableKey: string, automaticallyRequestPermissions?: boolean): Promise<HyperTrack>;
|
|
6
|
+
private constructor();
|
|
65
7
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
8
|
+
* Creates an SDK instance
|
|
9
|
+
*
|
|
10
|
+
* @param publishableKey publishable key provided in HyperTrack’s dashboard setup page
|
|
11
|
+
* @param sdkInitParams
|
|
12
|
+
* @returns HyperTrack instance
|
|
68
13
|
*/
|
|
69
|
-
static
|
|
14
|
+
static initialize(publishableKey: string, sdkInitParams?: SdkInitParams): Promise<HyperTrack>;
|
|
70
15
|
/**
|
|
71
|
-
* Returns a string
|
|
16
|
+
* Returns a string that is used to uniquely identify the device
|
|
72
17
|
*/
|
|
73
|
-
|
|
18
|
+
getDeviceId(): Promise<string>;
|
|
74
19
|
/**
|
|
75
|
-
*
|
|
20
|
+
* Reflects availability of the device for the Nearby search
|
|
76
21
|
*
|
|
77
22
|
* @returns true when is available or false when unavailable
|
|
78
23
|
*/
|
|
79
24
|
isAvailable(): Promise<boolean>;
|
|
80
25
|
/**
|
|
81
|
-
*
|
|
26
|
+
* Sets the availability of the device for the Nearby search
|
|
82
27
|
*
|
|
83
28
|
* @param availability true when is available or false when unavailable
|
|
84
29
|
*/
|
|
85
|
-
setAvailability(
|
|
30
|
+
setAvailability(isAvailable: boolean): void;
|
|
86
31
|
/**
|
|
87
|
-
*
|
|
32
|
+
* Reflects the tracking intent for the device
|
|
33
|
+
*
|
|
88
34
|
* @return {boolean} Whether the user's movement data is getting tracked or not.
|
|
89
35
|
*/
|
|
90
36
|
isTracking(): Promise<boolean>;
|
|
91
37
|
/**
|
|
92
|
-
*
|
|
38
|
+
* Syncs the device state with the HyperTrack servers
|
|
93
39
|
*/
|
|
94
|
-
|
|
40
|
+
sync(): void;
|
|
95
41
|
/**
|
|
96
|
-
*
|
|
42
|
+
* Expresses an intent to start location tracking for the device
|
|
97
43
|
*/
|
|
98
44
|
startTracking(): void;
|
|
99
45
|
/**
|
|
100
|
-
* Stops
|
|
46
|
+
* Stops location tracking immediately
|
|
101
47
|
*/
|
|
102
48
|
stopTracking(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Reflects the current location of the user or an outage reason
|
|
51
|
+
*/
|
|
103
52
|
getLocation(): Promise<LocationError | Location>;
|
|
104
53
|
/**
|
|
105
|
-
*
|
|
54
|
+
* Sets the name for the device
|
|
55
|
+
* @param {string} name
|
|
56
|
+
*/
|
|
57
|
+
setName(name: string): void;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the metadata for the device
|
|
60
|
+
* @param {Object} data - Metadata JSON
|
|
61
|
+
*/
|
|
62
|
+
setMetadata(data: Object): void;
|
|
63
|
+
/**
|
|
64
|
+
* Adds a new geotag
|
|
65
|
+
* @param {Object} data - Geotad data JSON
|
|
66
|
+
* @returns current location if success or LocationError if failure
|
|
67
|
+
*/
|
|
68
|
+
addGeotag(data: Object): Promise<LocationError | Location>;
|
|
69
|
+
/**
|
|
70
|
+
* Subscribe to tracking errors
|
|
106
71
|
*
|
|
107
|
-
* @param listener
|
|
72
|
+
* @param listener
|
|
108
73
|
* @returns EmitterSubscription
|
|
109
74
|
* @example
|
|
110
75
|
* ```js
|
|
@@ -118,11 +83,11 @@ export default class HyperTrack {
|
|
|
118
83
|
* subscription.remove()
|
|
119
84
|
* ```
|
|
120
85
|
*/
|
|
121
|
-
subscribeToErrors(listener: (errors:
|
|
86
|
+
subscribeToErrors(listener: (errors: HyperTrackError[]) => void): import("react-native").EmitterSubscription;
|
|
122
87
|
/**
|
|
123
|
-
*
|
|
88
|
+
* Subscribe to tracking intent changes
|
|
124
89
|
*
|
|
125
|
-
* @param listener
|
|
90
|
+
* @param listener
|
|
126
91
|
* @returns EmitterSubscription
|
|
127
92
|
* @example
|
|
128
93
|
* ```js
|
|
@@ -138,24 +103,25 @@ export default class HyperTrack {
|
|
|
138
103
|
*/
|
|
139
104
|
subscribeToTracking(listener: (isTracking: boolean) => void): import("react-native").EmitterSubscription;
|
|
140
105
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Add geotag
|
|
158
|
-
* @param {Object} data - Include anything that can be parsed into JSON.
|
|
106
|
+
* Subscribe to availability changes
|
|
107
|
+
*
|
|
108
|
+
* @param listener
|
|
109
|
+
* @returns EmitterSubscription
|
|
110
|
+
* @example
|
|
111
|
+
* ```js
|
|
112
|
+
* const subscription = HyperTrack.subscribeToAvailability(isAvailable => {
|
|
113
|
+
* if (isAvailable) {
|
|
114
|
+
* // ... ready to go
|
|
115
|
+
* }
|
|
116
|
+
* })
|
|
117
|
+
*
|
|
118
|
+
* // later, to stop listening
|
|
119
|
+
* subscription.remove()
|
|
120
|
+
* ```
|
|
159
121
|
*/
|
|
160
|
-
|
|
122
|
+
subscribeToAvailability(listener: (isAvailable: boolean) => void): import("react-native").EmitterSubscription;
|
|
123
|
+
/** @ignore */
|
|
124
|
+
private deserializeHyperTrackErrors;
|
|
125
|
+
/** @ignore */
|
|
126
|
+
private deserializeLocationResponse;
|
|
161
127
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum HyperTrackError {
|
|
2
|
+
gpsSignalLost = "gpsSignalLost",
|
|
3
|
+
locationMocked = "locationMocked",
|
|
4
|
+
locationPermissionsDenied = "locationPermissionsDenied",
|
|
5
|
+
locationPermissionsInsufficientForBackground = "locationPermissionsInsufficientForBackground",
|
|
6
|
+
locationPermissionsNotDetermined = "locationPermissionsNotDetermined",
|
|
7
|
+
locationPermissionsReducedAccuracy = "locationPermissionsReducedAccuracy",
|
|
8
|
+
locationPermissionsProvisional = "locationPermissionsProvisional",
|
|
9
|
+
locationPermissionsRestricted = "locationPermissionsRestricted",
|
|
10
|
+
locationServicesDisabled = "locationServicesDisabled",
|
|
11
|
+
locationServicesUnavailable = "locationServicesUnavailable",
|
|
12
|
+
motionActivityPermissionsNotDetermined = "motionActivityPermissionsNotDetermined",
|
|
13
|
+
motionActivityPermissionsDenied = "motionActivityPermissionsDenied",
|
|
14
|
+
motionActivityServicesDisabled = "motionActivityServicesDisabled",
|
|
15
|
+
motionActivityServicesUnavailable = "motionActivityServicesUnavailable",
|
|
16
|
+
motionActivityPermissionsRestricted = "motionActivityPermissionsRestricted",
|
|
17
|
+
networkConnectionUnavailable = "networkConnectionUnavailable",
|
|
18
|
+
invalidPublishableKey = "invalidPublishableKey",
|
|
19
|
+
blockedFromRunning = "blockedFromRunning"
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HyperTrackError } from './HyperTrackError';
|
|
2
|
+
import type { NotRunning, Starting } from './internal/LocationErrorInternal';
|
|
3
|
+
export { NotRunning, Starting };
|
|
4
|
+
export type Errors = {
|
|
5
|
+
type: 'errors';
|
|
6
|
+
value: HyperTrackError[];
|
|
7
|
+
};
|
|
8
|
+
export type LocationError = NotRunning | Starting | Errors;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HyperTrackErrorInternal } from './HyperTrackErrorInternal';
|
|
2
|
+
export type NotRunning = {
|
|
3
|
+
type: 'notRunning';
|
|
4
|
+
};
|
|
5
|
+
export type Starting = {
|
|
6
|
+
type: 'starting';
|
|
7
|
+
};
|
|
8
|
+
export type ErrorsInternal = {
|
|
9
|
+
type: 'errors';
|
|
10
|
+
value: HyperTrackErrorInternal[];
|
|
11
|
+
};
|
|
12
|
+
export type LocationErrorInternal = NotRunning | Starting | ErrorsInternal;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Location } from '../Location';
|
|
2
|
+
import type { LocationErrorInternal } from './LocationErrorInternal';
|
|
3
|
+
export type LocationSuccess = {
|
|
4
|
+
type: 'success';
|
|
5
|
+
value: Location;
|
|
6
|
+
};
|
|
7
|
+
export type LocationFailure = {
|
|
8
|
+
type: 'failure';
|
|
9
|
+
value: LocationErrorInternal;
|
|
10
|
+
};
|
|
11
|
+
export type LocationResponse = LocationSuccess | LocationFailure;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import HyperTrack from './HyperTrack/HyperTrack';
|
|
2
2
|
export default HyperTrack;
|
|
3
3
|
export { HyperTrack };
|
|
4
|
-
export {
|
|
4
|
+
export { HyperTrackError } from './HyperTrack/data_types/HyperTrackError';
|
|
5
|
+
export { LocationError, NotRunning, Starting, Errors } from './HyperTrack/data_types/LocationError';
|
|
6
|
+
export { Location } from './HyperTrack/data_types/Location';
|
|
7
|
+
export { SdkInitParams } from './HyperTrack/data_types/SdkInitParams';
|
package/package.json
CHANGED
|
@@ -1,163 +1,163 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
"keywords": [
|
|
38
|
-
"react-native",
|
|
39
|
-
"ios",
|
|
40
|
-
"android",
|
|
41
|
-
"hypertrack",
|
|
42
|
-
"location",
|
|
43
|
-
"tracking"
|
|
44
|
-
],
|
|
45
|
-
"repository": "https://github.com/hypertrack/sdk-react-native",
|
|
46
|
-
"author": "HyperTrack <help@hypertrack.com> (https://hypertrack.com)",
|
|
47
|
-
"license": "MIT",
|
|
48
|
-
"bugs": {
|
|
49
|
-
"url": "https://github.com/hypertrack/sdk-react-native/issues"
|
|
50
|
-
},
|
|
51
|
-
"homepage": "https://github.com/hypertrack/sdk-react-native#readme",
|
|
52
|
-
"publishConfig": {
|
|
53
|
-
"registry": "https://registry.npmjs.org/"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@babel/eslint-parser": "^7.18.2",
|
|
57
|
-
"@commitlint/config-conventional": "^17.0.2",
|
|
58
|
-
"@react-native-community/eslint-config": "^3.0.2",
|
|
59
|
-
"@release-it/bumper": "^4.0.0",
|
|
60
|
-
"@release-it/conventional-changelog": "^5.1.0",
|
|
61
|
-
"@types/jest": "^28.1.2",
|
|
62
|
-
"@types/react": "~17.0.21",
|
|
63
|
-
"@types/react-native": "0.68.0",
|
|
64
|
-
"@typescript-eslint/parser": "^5.30.5",
|
|
65
|
-
"auto-changelog": "^2.4.0",
|
|
66
|
-
"commitlint": "^17.0.2",
|
|
67
|
-
"eslint": "^8.4.1",
|
|
68
|
-
"eslint-config-prettier": "^8.5.0",
|
|
69
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
70
|
-
"jest": "^28.1.1",
|
|
71
|
-
"pod-install": "^0.1.0",
|
|
72
|
-
"prettier": "^2.0.5",
|
|
73
|
-
"react": "18.0.0",
|
|
74
|
-
"react-native": "0.70.0",
|
|
75
|
-
"react-native-builder-bob": "^0.18.3",
|
|
76
|
-
"release-it": "^15.4.1",
|
|
77
|
-
"typedoc": "^0.23.14",
|
|
78
|
-
"typedoc-plugin-merge-modules": "^3.1.0",
|
|
79
|
-
"typedoc-plugin-rename-defaults": "^0.6.1",
|
|
80
|
-
"typescript": "^4.5.2"
|
|
81
|
-
},
|
|
82
|
-
"resolutions": {
|
|
83
|
-
"@types/react": "17.0.21"
|
|
84
|
-
},
|
|
85
|
-
"peerDependencies": {
|
|
86
|
-
"react": "*",
|
|
87
|
-
"react-native": "*"
|
|
88
|
-
},
|
|
89
|
-
"jest": {
|
|
90
|
-
"preset": "react-native",
|
|
91
|
-
"modulePathIgnorePatterns": [
|
|
92
|
-
"<rootDir>/lib/"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"commitlint": {
|
|
96
|
-
"extends": [
|
|
97
|
-
"@commitlint/config-conventional"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"release-it": {
|
|
101
|
-
"git": {
|
|
102
|
-
"changelog": "auto-changelog --stdout --commit-limit false --unreleased --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs",
|
|
103
|
-
"commitMessage": "Release ${version}",
|
|
104
|
-
"requireCleanWorkingDir": false,
|
|
105
|
-
"tagName": "${version}",
|
|
106
|
-
"requireCommits": true
|
|
2
|
+
"name": "hypertrack-sdk-react-native",
|
|
3
|
+
"version": "9.0.0",
|
|
4
|
+
"description": "React Native HyperTrack SDK is a wrapper around native iOS and Android SDKs that allows to integrate HyperTrack into React Native apps.",
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"lib",
|
|
13
|
+
"android",
|
|
14
|
+
"ios",
|
|
15
|
+
"cpp",
|
|
16
|
+
"hypertrack-sdk-react-native.podspec",
|
|
17
|
+
"LICENSE.txt",
|
|
18
|
+
"README.md",
|
|
19
|
+
"CHANGELOG.md",
|
|
20
|
+
"CONTRIBUTING.md",
|
|
21
|
+
"!lib/typescript/example",
|
|
22
|
+
"!android/build",
|
|
23
|
+
"!ios/build",
|
|
24
|
+
"!**/__tests__",
|
|
25
|
+
"!**/__fixtures__",
|
|
26
|
+
"!**/__mocks__"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"test": "jest",
|
|
30
|
+
"typescript": "tsc --noEmit",
|
|
31
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
32
|
+
"prepare": "bob build",
|
|
33
|
+
"release": "release-it",
|
|
34
|
+
"docs": "typedoc --options typedoc.json",
|
|
35
|
+
"bootstrap": "yarn && yarn docs"
|
|
107
36
|
},
|
|
108
|
-
"
|
|
109
|
-
|
|
37
|
+
"keywords": [
|
|
38
|
+
"react-native",
|
|
39
|
+
"ios",
|
|
40
|
+
"android",
|
|
41
|
+
"hypertrack",
|
|
42
|
+
"location",
|
|
43
|
+
"tracking"
|
|
44
|
+
],
|
|
45
|
+
"repository": "https://github.com/hypertrack/sdk-react-native",
|
|
46
|
+
"author": "HyperTrack <help@hypertrack.com> (https://hypertrack.com)",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/hypertrack/sdk-react-native/issues"
|
|
110
50
|
},
|
|
111
|
-
"
|
|
112
|
-
|
|
51
|
+
"homepage": "https://github.com/hypertrack/sdk-react-native#readme",
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"registry": "https://registry.npmjs.org/"
|
|
113
54
|
},
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@babel/eslint-parser": "^7.18.2",
|
|
57
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
58
|
+
"@react-native-community/eslint-config": "^3.0.2",
|
|
59
|
+
"@release-it/bumper": "^4.0.0",
|
|
60
|
+
"@release-it/conventional-changelog": "^5.1.0",
|
|
61
|
+
"@types/jest": "^28.1.2",
|
|
62
|
+
"@types/react": "~17.0.21",
|
|
63
|
+
"@types/react-native": "0.68.0",
|
|
64
|
+
"@typescript-eslint/parser": "^5.30.5",
|
|
65
|
+
"auto-changelog": "^2.4.0",
|
|
66
|
+
"commitlint": "^17.0.2",
|
|
67
|
+
"eslint": "^8.4.1",
|
|
68
|
+
"eslint-config-prettier": "^8.5.0",
|
|
69
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
70
|
+
"jest": "^28.1.1",
|
|
71
|
+
"pod-install": "^0.1.0",
|
|
72
|
+
"prettier": "^2.0.5",
|
|
73
|
+
"react": "^18.0.0",
|
|
74
|
+
"react-native": "^0.70.0",
|
|
75
|
+
"react-native-builder-bob": "^0.18.3",
|
|
76
|
+
"release-it": "^15.4.1",
|
|
77
|
+
"typedoc": "^0.23.14",
|
|
78
|
+
"typedoc-plugin-merge-modules": "^4.0.0",
|
|
79
|
+
"typedoc-plugin-rename-defaults": "^0.6.1",
|
|
80
|
+
"typescript": "^4.5.2"
|
|
81
|
+
},
|
|
82
|
+
"resolutions": {
|
|
83
|
+
"@types/react": "17.0.21"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"react": "*",
|
|
87
|
+
"react-native": "*"
|
|
88
|
+
},
|
|
89
|
+
"jest": {
|
|
90
|
+
"preset": "react-native",
|
|
91
|
+
"modulePathIgnorePatterns": [
|
|
92
|
+
"<rootDir>/lib/"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"commitlint": {
|
|
96
|
+
"extends": [
|
|
97
|
+
"@commitlint/config-conventional"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"release-it": {
|
|
101
|
+
"git": {
|
|
102
|
+
"changelog": "auto-changelog --stdout --commit-limit false --unreleased --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs",
|
|
103
|
+
"commitMessage": "Release ${version}",
|
|
104
|
+
"requireCleanWorkingDir": false,
|
|
105
|
+
"tagName": "${version}",
|
|
106
|
+
"requireCommits": true
|
|
107
|
+
},
|
|
108
|
+
"github": {
|
|
109
|
+
"release": true
|
|
110
|
+
},
|
|
111
|
+
"hooks": {
|
|
112
|
+
"after:bump": "auto-changelog --package --commit-limit false --template https://raw.githubusercontent.com/release-it/release-it/master/templates/keepachangelog.hbs"
|
|
113
|
+
},
|
|
114
|
+
"npm": {
|
|
115
|
+
"publish": true
|
|
134
116
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"module",
|
|
155
|
-
[
|
|
156
|
-
"typescript",
|
|
157
|
-
{
|
|
158
|
-
"project": "tsconfig.build.json"
|
|
117
|
+
},
|
|
118
|
+
"eslintConfig": {
|
|
119
|
+
"root": true,
|
|
120
|
+
"parser": "@typescript-eslint/parser",
|
|
121
|
+
"extends": [
|
|
122
|
+
"@react-native-community",
|
|
123
|
+
"prettier"
|
|
124
|
+
],
|
|
125
|
+
"rules": {
|
|
126
|
+
"prettier/prettier": [
|
|
127
|
+
"error",
|
|
128
|
+
{
|
|
129
|
+
"quoteProps": "consistent",
|
|
130
|
+
"singleQuote": true,
|
|
131
|
+
"tabWidth": 2,
|
|
132
|
+
"trailingComma": "es5",
|
|
133
|
+
"useTabs": false
|
|
134
|
+
}
|
|
135
|
+
]
|
|
159
136
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
137
|
+
},
|
|
138
|
+
"eslintIgnore": [
|
|
139
|
+
"node_modules/",
|
|
140
|
+
"lib/"
|
|
141
|
+
],
|
|
142
|
+
"prettier": {
|
|
143
|
+
"quoteProps": "consistent",
|
|
144
|
+
"singleQuote": true,
|
|
145
|
+
"tabWidth": 2,
|
|
146
|
+
"trailingComma": "es5",
|
|
147
|
+
"useTabs": false
|
|
148
|
+
},
|
|
149
|
+
"react-native-builder-bob": {
|
|
150
|
+
"source": "src",
|
|
151
|
+
"output": "lib",
|
|
152
|
+
"targets": [
|
|
153
|
+
"commonjs",
|
|
154
|
+
"module",
|
|
155
|
+
[
|
|
156
|
+
"typescript",
|
|
157
|
+
{
|
|
158
|
+
"project": "tsconfig.build.json"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
163
|
}
|