react-native-radar 3.10.6-beta.2 → 3.10.7-beta.1
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 +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +3 -2
- package/ios/RNRadar.m +1 -1
- package/package.json +1 -1
- package/src/@types/types.ts +2 -3
- package/src/index.ts +5 -1
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.7-beta.1'
|
|
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.8'
|
|
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.7-beta.1");
|
|
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.7-beta.1",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"android",
|
|
@@ -330,7 +330,7 @@ export declare enum RadarEventConfidence {
|
|
|
330
330
|
medium = 2,
|
|
331
331
|
high = 3
|
|
332
332
|
}
|
|
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.
|
|
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.delayed_during_trip" | "user.failed_fraud";
|
|
334
334
|
export type RadarTrackingOptionsDesiredAccuracy = "high" | "medium" | "low" | "none";
|
|
335
335
|
export declare enum RadarEventVerification {
|
|
336
336
|
accept = 1,
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { RadarNativeInterface } from "./@types/RadarNativeInterface";
|
|
2
2
|
declare let module: RadarNativeInterface;
|
|
3
3
|
export default module;
|
|
4
|
-
|
|
4
|
+
declare let RadarRNWeb: any;
|
|
5
|
+
export { RadarRNWeb };
|
|
5
6
|
export { default as Autocomplete } from "./ui/autocomplete";
|
|
6
7
|
export { default as Map } from "./ui/map";
|
|
7
8
|
export * from "./@types/types";
|
package/dist/src/index.js
CHANGED
|
@@ -18,11 +18,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.Map = exports.Autocomplete = exports.RadarRNWeb = void 0;
|
|
21
|
+
const react_native_1 = require("react-native");
|
|
21
22
|
let module;
|
|
22
23
|
module = require("./index.native").default;
|
|
23
24
|
exports.default = module;
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
let RadarRNWeb = react_native_1.Platform.OS === 'web' ? require("./index.web").default : {};
|
|
26
|
+
exports.RadarRNWeb = RadarRNWeb;
|
|
26
27
|
var autocomplete_1 = require("./ui/autocomplete");
|
|
27
28
|
Object.defineProperty(exports, "Autocomplete", { enumerable: true, get: function () { return __importDefault(autocomplete_1).default; } });
|
|
28
29
|
var map_1 = require("./ui/map");
|
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.7-beta.1" 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.7-beta.1",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"android",
|
package/src/@types/types.ts
CHANGED
|
@@ -578,9 +578,8 @@ export type RadarEventType =
|
|
|
578
578
|
| "user.arrived_at_trip_destination"
|
|
579
579
|
| "user.stopped_trip"
|
|
580
580
|
| "user.arrived_at_wrong_trip_destination"
|
|
581
|
-
| "user.
|
|
582
|
-
| "user.
|
|
583
|
-
|
|
581
|
+
| "user.delayed_during_trip"
|
|
582
|
+
| "user.failed_fraud";
|
|
584
583
|
|
|
585
584
|
export type RadarTrackingOptionsDesiredAccuracy =
|
|
586
585
|
| "high"
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RadarNativeInterface } from "./@types/RadarNativeInterface";
|
|
2
|
+
import {Platform} from "react-native";
|
|
2
3
|
|
|
3
4
|
let module: RadarNativeInterface;
|
|
4
5
|
|
|
@@ -6,7 +7,10 @@ module = require("./index.native").default;
|
|
|
6
7
|
|
|
7
8
|
export default module;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
let RadarRNWeb = Platform.OS === 'web'? require("./index.web").default: {};
|
|
11
|
+
|
|
12
|
+
export { RadarRNWeb };
|
|
13
|
+
|
|
10
14
|
export { default as Autocomplete } from "./ui/autocomplete";
|
|
11
15
|
export { default as Map } from "./ui/map";
|
|
12
16
|
|