react-native-radar 3.23.4 → 3.23.5

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/Radar.podspec CHANGED
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,cpp}"
17
17
  s.private_header_files = "ios/**/*.h"
18
18
 
19
- s.dependency "RadarSDK", "3.23.2"
19
+ s.dependency "RadarSDK", "3.23.3"
20
20
 
21
21
  install_modules_dependencies(s)
22
22
  end
@@ -143,7 +143,7 @@ class RadarModule(reactContext: ReactApplicationContext) :
143
143
  override fun initialize(publishableKey: String, fraud: Boolean): Unit {
144
144
  val editor = reactApplicationContext.getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit()
145
145
  editor.putString("x_platform_sdk_type", "ReactNative")
146
- editor.putString("x_platform_sdk_version", "3.23.4")
146
+ editor.putString("x_platform_sdk_version", "3.23.5")
147
147
  editor.apply()
148
148
 
149
149
  Radar.initialize(reactApplicationContext, publishableKey, radarReceiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, radarInAppMessageReceiver, currentActivity)
@@ -102,7 +102,7 @@ public class RadarModule extends ReactContextBaseJavaModule implements Permissio
102
102
  this.fraud = fraud;
103
103
  SharedPreferences.Editor editor = getReactApplicationContext().getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit();
104
104
  editor.putString("x_platform_sdk_type", "ReactNative");
105
- editor.putString("x_platform_sdk_version", "3.23.4");
105
+ editor.putString("x_platform_sdk_version", "3.23.5");
106
106
  editor.apply();
107
107
  Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, inAppMessageReceiver, getCurrentActivity());
108
108
  if (fraud) {
@@ -543,6 +543,7 @@ export interface RadarTrackingOptionsForegroundService {
543
543
  export type RadarTripStatus = "unknown" | "started" | "approaching" | "arrived" | "expired" | "completed" | "canceled";
544
544
  export interface RadarMapOptions {
545
545
  mapStyle?: string;
546
+ showUserLocation?: boolean;
546
547
  onRegionDidChange?: (feature: RadarMapRegionChangeEvent) => void;
547
548
  onDidFinishLoadingMap?: () => void;
548
549
  onWillStartLoadingMap?: () => void;
package/dist/ui/map.jsx CHANGED
@@ -24,6 +24,7 @@ const createStyleURL = async (style = DEFAULT_STYLE) => {
24
24
  * @param {Object} props - Component props
25
25
  * @param {Object} [props.mapOptions] - Map configuration options
26
26
  * @param {string} [props.mapOptions.mapStyle] - Map style identifier (defaults to 'radar-default-v1')
27
+ * @param {boolean} [props.mapOptions.showUserLocation] - Whether to show the user's location on the map (default: true)
27
28
  * @param {function} [props.mapOptions.onRegionDidChange] - Callback fired when the map region changes
28
29
  * @param {Object} props.mapOptions.onRegionDidChange.feature - The region feature data
29
30
  * @param {function} [props.mapOptions.onDidFinishLoadingMap] - Callback fired when the map finishes loading
@@ -124,7 +125,7 @@ const RadarMap = ({ mapOptions, children }) => {
124
125
  onWillStartLoadingMap={mapOptions?.onWillStartLoadingMap ? mapOptions.onWillStartLoadingMap : null}
125
126
  onDidFailLoadingMap={mapOptions?.onDidFailLoadingMap ? mapOptions.onDidFailLoadingMap : null}
126
127
  mapStyle={styleURL}>
127
- {userLocationMapIndicator}
128
+ {mapOptions?.showUserLocation !== false && userLocationMapIndicator}
128
129
  {children}
129
130
  </MapLibreGL.MapView>
130
131
  <Image
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.23.4";
1
+ export declare const VERSION = "3.23.5";
package/dist/version.js CHANGED
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // This file contains the version of the react-native-radar package
5
5
  // It should be updated to match the version in package.json
6
- exports.VERSION = '3.23.4';
6
+ exports.VERSION = '3.23.5';
package/ios/RNRadar.mm CHANGED
@@ -186,7 +186,7 @@ RCT_EXPORT_MODULE()
186
186
 
187
187
  RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud) {
188
188
  [[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
189
- [[NSUserDefaults standardUserDefaults] setObject:@"3.23.4" forKey:@"radar-xPlatformSDKVersion"];
189
+ [[NSUserDefaults standardUserDefaults] setObject:@"3.23.5" forKey:@"radar-xPlatformSDKVersion"];
190
190
  [Radar initializeWithPublishableKey:publishableKey];
191
191
  }
192
192
 
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.23.4",
6
+ "version": "3.23.5",
7
7
  "main": "dist/index.js",
8
8
  "files": [
9
9
  "dist",
@@ -56,7 +56,7 @@
56
56
  ]
57
57
  },
58
58
  "peerDependencies": {
59
- "@maplibre/maplibre-react-native": ">=10.0.1",
59
+ "@maplibre/maplibre-react-native": ">=10.2.1",
60
60
  "expo": ">=43.0.5",
61
61
  "react": ">= 16.8.6",
62
62
  "react-native": ">= 0.60.0"
@@ -108,7 +108,6 @@
108
108
  },
109
109
  "dependencies": {
110
110
  "@babel/runtime": "^7.21.0",
111
- "@react-native-community/netinfo": "^7.1.3",
112
111
  "radar-sdk-js": "^3.7.1"
113
112
  },
114
113
  "codegenConfig": {
@@ -849,6 +849,7 @@ export type RadarTripStatus =
849
849
 
850
850
  export interface RadarMapOptions {
851
851
  mapStyle?: string;
852
+ showUserLocation?: boolean;
852
853
  onRegionDidChange?: (feature: RadarMapRegionChangeEvent) => void;
853
854
  onDidFinishLoadingMap?: () => void;
854
855
  onWillStartLoadingMap?: () => void;
package/src/ui/map.jsx CHANGED
@@ -24,6 +24,7 @@ const createStyleURL = async (style = DEFAULT_STYLE) => {
24
24
  * @param {Object} props - Component props
25
25
  * @param {Object} [props.mapOptions] - Map configuration options
26
26
  * @param {string} [props.mapOptions.mapStyle] - Map style identifier (defaults to 'radar-default-v1')
27
+ * @param {boolean} [props.mapOptions.showUserLocation] - Whether to show the user's location on the map (default: true)
27
28
  * @param {function} [props.mapOptions.onRegionDidChange] - Callback fired when the map region changes
28
29
  * @param {Object} props.mapOptions.onRegionDidChange.feature - The region feature data
29
30
  * @param {function} [props.mapOptions.onDidFinishLoadingMap] - Callback fired when the map finishes loading
@@ -124,7 +125,7 @@ const RadarMap = ({ mapOptions, children }) => {
124
125
  onWillStartLoadingMap={mapOptions?.onWillStartLoadingMap ? mapOptions.onWillStartLoadingMap : null}
125
126
  onDidFailLoadingMap={mapOptions?.onDidFailLoadingMap ? mapOptions.onDidFailLoadingMap : null}
126
127
  mapStyle={styleURL}>
127
- {userLocationMapIndicator}
128
+ {mapOptions?.showUserLocation !== false && userLocationMapIndicator}
128
129
  {children}
129
130
  </MapLibreGL.MapView>
130
131
  <Image
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file contains the version of the react-native-radar package
2
2
  // It should be updated to match the version in package.json
3
- export const VERSION = '3.23.4';
3
+ export const VERSION = '3.23.5';