react-native-radar 3.10.5 → 3.10.6-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/android/build.gradle +2 -2
- package/android/src/main/java/io/radar/react/RNRadarModule.java +1 -1
- package/dist/package.json +1 -1
- package/dist/src/@types/types.d.ts +13 -2
- package/ios/Cartfile.resolved +1 -1
- package/ios/RNRadar.m +1 -1
- package/package.json +1 -1
- package/react-native-radar.podspec +1 -1
- package/src/@types/types.ts +18 -2
package/android/build.gradle
CHANGED
|
@@ -18,7 +18,7 @@ android {
|
|
|
18
18
|
minSdkVersion 16
|
|
19
19
|
targetSdkVersion 31
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName '3.10.
|
|
21
|
+
versionName '3.10.6-beta.2'
|
|
22
22
|
}
|
|
23
23
|
lintOptions {
|
|
24
24
|
abortOnError false
|
|
@@ -45,5 +45,5 @@ repositories {
|
|
|
45
45
|
|
|
46
46
|
dependencies {
|
|
47
47
|
api 'com.facebook.react:react-native:+'
|
|
48
|
-
api 'io.radar:sdk:3.9.
|
|
48
|
+
api 'io.radar:sdk:3.9.7'
|
|
49
49
|
}
|
|
@@ -95,7 +95,7 @@ public class RNRadarModule extends ReactContextBaseJavaModule implements Permiss
|
|
|
95
95
|
this.fraud = fraud;
|
|
96
96
|
SharedPreferences.Editor editor = getReactApplicationContext().getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit();
|
|
97
97
|
editor.putString("x_platform_sdk_type", "ReactNative");
|
|
98
|
-
editor.putString("x_platform_sdk_version", "3.10.
|
|
98
|
+
editor.putString("x_platform_sdk_version", "3.10.6-beta.2");
|
|
99
99
|
editor.apply();
|
|
100
100
|
if (fraud) {
|
|
101
101
|
Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud);
|
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.6-beta.2",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"android",
|
|
@@ -133,7 +133,7 @@ export interface RadarTripOptions {
|
|
|
133
133
|
destinationGeofenceTag?: string;
|
|
134
134
|
destinationGeofenceExternalId?: string;
|
|
135
135
|
mode?: RadarRouteMode;
|
|
136
|
-
scheduledArrivalAt?:
|
|
136
|
+
scheduledArrivalAt?: number;
|
|
137
137
|
approachingThreshold?: number;
|
|
138
138
|
}
|
|
139
139
|
export interface RadarTrackCallback {
|
|
@@ -287,6 +287,11 @@ export interface RadarTrip {
|
|
|
287
287
|
status: RadarTripStatus;
|
|
288
288
|
scheduledArrivalAt?: Date;
|
|
289
289
|
destinationLocation: Location;
|
|
290
|
+
delay: RadarDelay;
|
|
291
|
+
}
|
|
292
|
+
export interface RadarDelay {
|
|
293
|
+
delayed: boolean;
|
|
294
|
+
scheduledArrivalTimeDelay: number;
|
|
290
295
|
}
|
|
291
296
|
export interface RadarSegment {
|
|
292
297
|
description: string;
|
|
@@ -317,6 +322,7 @@ export interface RadarEvent {
|
|
|
317
322
|
replayed?: boolean;
|
|
318
323
|
createdAt: string;
|
|
319
324
|
actualCreatedAt: string;
|
|
325
|
+
fraud?: RadarFraud;
|
|
320
326
|
}
|
|
321
327
|
export declare enum RadarEventConfidence {
|
|
322
328
|
none = 0,
|
|
@@ -324,7 +330,7 @@ export declare enum RadarEventConfidence {
|
|
|
324
330
|
medium = 2,
|
|
325
331
|
high = 3
|
|
326
332
|
}
|
|
327
|
-
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";
|
|
333
|
+
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" | "user.arrived_at_wrong_trip_destination" | "user.failed_fraud" | "user.delayed_during_trip";
|
|
328
334
|
export type RadarTrackingOptionsDesiredAccuracy = "high" | "medium" | "low" | "none";
|
|
329
335
|
export declare enum RadarEventVerification {
|
|
330
336
|
accept = 1,
|
|
@@ -376,6 +382,10 @@ export interface RadarRegion {
|
|
|
376
382
|
name: string;
|
|
377
383
|
allowed?: boolean;
|
|
378
384
|
flag?: string;
|
|
385
|
+
passed?: boolean;
|
|
386
|
+
inExclusionZone?: boolean;
|
|
387
|
+
inBufferZone?: boolean;
|
|
388
|
+
distanceToBorder?: number;
|
|
379
389
|
}
|
|
380
390
|
export interface RadarAddress {
|
|
381
391
|
addressLabel?: string;
|
|
@@ -442,6 +452,7 @@ export interface RadarFraud {
|
|
|
442
452
|
mocked: boolean;
|
|
443
453
|
compromised: boolean;
|
|
444
454
|
jumped: boolean;
|
|
455
|
+
inaccurate: boolean;
|
|
445
456
|
}
|
|
446
457
|
export type RadarTrackingOptionsReplay = "all" | "stops" | "none";
|
|
447
458
|
export type RadarTrackingOptionsSync = "none" | "stopsAndExits" | "all";
|
package/ios/Cartfile.resolved
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
github "radarlabs/radar-sdk-ios" "3.9.
|
|
1
|
+
github "radarlabs/radar-sdk-ios" "3.9.12"
|
package/ios/RNRadar.m
CHANGED
|
@@ -100,7 +100,7 @@ RCT_EXPORT_MODULE();
|
|
|
100
100
|
|
|
101
101
|
RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud) {
|
|
102
102
|
[[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
|
|
103
|
-
[[NSUserDefaults standardUserDefaults] setObject:@"3.10.
|
|
103
|
+
[[NSUserDefaults standardUserDefaults] setObject:@"3.10.6-beta.2" forKey:@"radar-xPlatformSDKVersion"];
|
|
104
104
|
[Radar initializeWithPublishableKey:publishableKey];
|
|
105
105
|
}
|
|
106
106
|
|
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.6-beta.2",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"android",
|
package/src/@types/types.ts
CHANGED
|
@@ -286,7 +286,7 @@ export interface RadarTripOptions {
|
|
|
286
286
|
destinationGeofenceTag?: string;
|
|
287
287
|
destinationGeofenceExternalId?: string;
|
|
288
288
|
mode?: RadarRouteMode;
|
|
289
|
-
scheduledArrivalAt?:
|
|
289
|
+
scheduledArrivalAt?: number;
|
|
290
290
|
approachingThreshold?: number;
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -505,6 +505,12 @@ export interface RadarTrip {
|
|
|
505
505
|
status: RadarTripStatus;
|
|
506
506
|
scheduledArrivalAt?: Date;
|
|
507
507
|
destinationLocation: Location;
|
|
508
|
+
delay:RadarDelay;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export interface RadarDelay {
|
|
512
|
+
delayed:boolean;
|
|
513
|
+
scheduledArrivalTimeDelay:number;
|
|
508
514
|
}
|
|
509
515
|
|
|
510
516
|
export interface RadarSegment {
|
|
@@ -538,6 +544,7 @@ export interface RadarEvent {
|
|
|
538
544
|
replayed?: boolean;
|
|
539
545
|
createdAt: string;
|
|
540
546
|
actualCreatedAt: string;
|
|
547
|
+
fraud?: RadarFraud;
|
|
541
548
|
}
|
|
542
549
|
|
|
543
550
|
export enum RadarEventConfidence {
|
|
@@ -569,7 +576,11 @@ export type RadarEventType =
|
|
|
569
576
|
| "user.updated_trip"
|
|
570
577
|
| "user.approaching_trip_destination"
|
|
571
578
|
| "user.arrived_at_trip_destination"
|
|
572
|
-
| "user.stopped_trip"
|
|
579
|
+
| "user.stopped_trip"
|
|
580
|
+
| "user.arrived_at_wrong_trip_destination"
|
|
581
|
+
| "user.failed_fraud"
|
|
582
|
+
| "user.delayed_during_trip";
|
|
583
|
+
|
|
573
584
|
|
|
574
585
|
export type RadarTrackingOptionsDesiredAccuracy =
|
|
575
586
|
| "high"
|
|
@@ -634,6 +645,10 @@ export interface RadarRegion {
|
|
|
634
645
|
name: string;
|
|
635
646
|
allowed?: boolean;
|
|
636
647
|
flag?: string;
|
|
648
|
+
passed?: boolean;
|
|
649
|
+
inExclusionZone?: boolean;
|
|
650
|
+
inBufferZone?: boolean;
|
|
651
|
+
distanceToBorder?: number;
|
|
637
652
|
}
|
|
638
653
|
|
|
639
654
|
export interface RadarAddress {
|
|
@@ -713,6 +728,7 @@ export interface RadarFraud {
|
|
|
713
728
|
mocked: boolean;
|
|
714
729
|
compromised: boolean;
|
|
715
730
|
jumped: boolean;
|
|
731
|
+
inaccurate: boolean;
|
|
716
732
|
}
|
|
717
733
|
|
|
718
734
|
export type RadarTrackingOptionsReplay = "all" | "stops" | "none";
|