react-native-radar 3.10.1 → 3.10.2-beta.2
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/dist/package.json +1 -1
- package/dist/src/@types/types.d.ts +3 -1
- package/ios/Cartfile.resolved +1 -1
- package/ios/RNRadar.m +2 -0
- package/package.json +1 -1
- package/react-native-radar.podspec +1 -1
- package/src/@types/types.ts +3 -0
package/dist/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
|
|
4
4
|
"homepage": "https://radar.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "3.10.
|
|
6
|
+
"version": "3.10.2-beta.2",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"android",
|
|
@@ -20,6 +20,8 @@ export interface RadarTrackingOptions {
|
|
|
20
20
|
desiredAccuracy: RadarTrackingOptionsDesiredAccuracy;
|
|
21
21
|
stopDuration: number;
|
|
22
22
|
stopDistance: number;
|
|
23
|
+
rampUpRadius?: number;
|
|
24
|
+
rampedUpInterval?: number;
|
|
23
25
|
sync: "all" | "stopsAndExits" | "none";
|
|
24
26
|
replay: "all" | "stops" | "none";
|
|
25
27
|
useStoppedGeofence: boolean;
|
|
@@ -316,7 +318,7 @@ export declare enum RadarEventConfidence {
|
|
|
316
318
|
high = 3
|
|
317
319
|
}
|
|
318
320
|
export type RadarEventType = "unknown" | "user.entered_geofence" | "user.entered_beacon" | "user.dwelled_in_geofence" | "user.entered_place" | "user.entered_region_country" | "user.entered_region_dma" | "user.entered_region_state" | "user.entered_region_postal_code" | "user.exited_geofence" | "user.exited_beacon" | "user.exited_place" | "user.exited_region_country" | "user.exited_region_dma" | "user.exited_region_state" | "user.exited_region_postal_code" | "user.nearby_place_chain" | "user.started_trip" | "user.updated_trip" | "user.approaching_trip_destination" | "user.arrived_at_trip_destination" | "user.stopped_trip";
|
|
319
|
-
export type RadarTrackingOptionsDesiredAccuracy = "high" | "medium" | "low" | "none";
|
|
321
|
+
export type RadarTrackingOptionsDesiredAccuracy = "high" | "mediumHigh" | "medium" | "low" | "none";
|
|
320
322
|
export declare enum RadarEventVerification {
|
|
321
323
|
accept = 1,
|
|
322
324
|
unverify = 0,
|
package/ios/Cartfile.resolved
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
github "radarlabs/radar-sdk-ios" "3.9.
|
|
1
|
+
github "radarlabs/radar-sdk-ios" "3.9.8"
|
package/ios/RNRadar.m
CHANGED
|
@@ -206,6 +206,8 @@ RCT_EXPORT_METHOD(getLocation:(NSString *)desiredAccuracy resolve:(RCTPromiseRes
|
|
|
206
206
|
NSString *lowerAccuracy = [desiredAccuracy lowercaseString];
|
|
207
207
|
if ([lowerAccuracy isEqualToString:@"high"]) {
|
|
208
208
|
accuracy = RadarTrackingOptionsDesiredAccuracyHigh;
|
|
209
|
+
} else if ([lowerAccuracy isEqualToString:@"mediumhigh"]) {
|
|
210
|
+
accuracy = RadarTrackingOptionsDesiredAccuracyMediumHigh;
|
|
209
211
|
} else if ([lowerAccuracy isEqualToString:@"medium"]) {
|
|
210
212
|
accuracy = RadarTrackingOptionsDesiredAccuracyMedium;
|
|
211
213
|
} else if ([lowerAccuracy isEqualToString:@"low"]) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
|
|
4
4
|
"homepage": "https://radar.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "3.10.
|
|
6
|
+
"version": "3.10.2-beta.2",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"android",
|
package/src/@types/types.ts
CHANGED
|
@@ -23,6 +23,8 @@ export interface RadarTrackingOptions {
|
|
|
23
23
|
desiredAccuracy: RadarTrackingOptionsDesiredAccuracy;
|
|
24
24
|
stopDuration: number;
|
|
25
25
|
stopDistance: number;
|
|
26
|
+
rampUpRadius?: number;
|
|
27
|
+
rampedUpInterval?: number;
|
|
26
28
|
sync: "all" | "stopsAndExits" | "none";
|
|
27
29
|
replay: "all" | "stops" | "none";
|
|
28
30
|
useStoppedGeofence: boolean;
|
|
@@ -427,6 +429,7 @@ export type RadarEventType =
|
|
|
427
429
|
|
|
428
430
|
export type RadarTrackingOptionsDesiredAccuracy =
|
|
429
431
|
| "high"
|
|
432
|
+
| "mediumHigh"
|
|
430
433
|
| "medium"
|
|
431
434
|
| "low"
|
|
432
435
|
| "none";
|