Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/src/newarch/java/com/radar/RadarModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class RadarModule(reactContext: ReactApplicationContext) :
override fun initialize(publishableKey: String, fraud: Boolean): Unit {
val editor = reactApplicationContext.getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit()
editor.putString("x_platform_sdk_type", "ReactNative")
editor.putString("x_platform_sdk_version", "3.23.5")
editor.putString("x_platform_sdk_version", "3.23.6-beta.1")
editor.apply()

Radar.initialize(reactApplicationContext, publishableKey, radarReceiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, radarInAppMessageReceiver, currentActivity)
Expand Down
2 changes: 1 addition & 1 deletion android/src/oldarch/java/com/radar/RadarModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void initialize(String publishableKey, boolean fraud) {
this.fraud = fraud;
SharedPreferences.Editor editor = getReactApplicationContext().getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit();
editor.putString("x_platform_sdk_type", "ReactNative");
editor.putString("x_platform_sdk_version", "3.23.5");
editor.putString("x_platform_sdk_version", "3.23.6-beta.1");
editor.apply();
Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, inAppMessageReceiver, getCurrentActivity());
if (fraud) {
Expand Down
2 changes: 1 addition & 1 deletion ios/RNRadar.mm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ - (void)didUpdateToken:(RadarVerifiedLocationToken *)token {

RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud) {
[[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
[[NSUserDefaults standardUserDefaults] setObject:@"3.23.5" forKey:@"radar-xPlatformSDKVersion"];
[[NSUserDefaults standardUserDefaults] setObject:@"3.23.6-beta.1" forKey:@"radar-xPlatformSDKVersion"];
[Radar initializeWithPublishableKey:publishableKey];
}

Expand Down
8 changes: 2 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
"homepage": "https://radar.com",
"license": "Apache-2.0",
"version": "3.23.5",
"version": "3.23.6-beta.1",
"main": "dist/index.js",
"files": [
"dist",
Expand Down Expand Up @@ -56,15 +56,11 @@
]
},
"peerDependencies": {
"@maplibre/maplibre-react-native": ">=10.2.1",
"expo": ">=43.0.5",
"react": ">= 16.8.6",
"react-native": ">= 0.60.0"
},
"peerDependenciesMeta": {
"@maplibre/maplibre-react-native": {
"optional": true
},
"expo": {
"optional": true
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/tsconfig.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":["./src/types.ts","./src/withradar.ts","./src/withradarandroid.ts","./src/withradarios.ts"],"version":"5.8.3"}
{"root":["./src/types.ts","./src/withradar.ts","./src/withradarandroid.ts","./src/withradarios.ts"],"version":"5.9.3"}
17 changes: 0 additions & 17 deletions src/@types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -846,20 +846,3 @@ export type RadarTripStatus =
| "expired"
| "completed"
| "canceled";

export interface RadarMapOptions {
mapStyle?: string;
showUserLocation?: boolean;
onRegionDidChange?: (feature: RadarMapRegionChangeEvent) => void;
onDidFinishLoadingMap?: () => void;
onWillStartLoadingMap?: () => void;
onDidFailLoadingMap?: () => void;
}

export interface RadarMapRegionChangeEvent {
center: [number, number];
zoom: number;
bounds?: [number, number, number, number];
bearing?: number;
pitch?: number;
}
5 changes: 0 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,5 @@ let Autocomplete =
Platform.OS !== "web" ? require("./ui/autocomplete").default : {};
export { Autocomplete };

let Map = Platform.OS !== "web" ? require("./ui/map").default : {};
export { Map };

export type { RadarMapProps } from "./ui/map";

export * from "./@types/types";
export * from "./@types/RadarNativeInterface";
139 changes: 0 additions & 139 deletions src/ui/map.jsx

This file was deleted.

28 changes: 0 additions & 28 deletions src/ui/map.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions src/ui/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,6 @@ const styles = StyleSheet.create({
height: 15,
resizeMode: 'contain',
},
mapContainer: {
flex: 1,
},
map: {
flex: 1,
},
mapLogo: {
position: 'absolute',
bottom: -10,
left: 5,
width: 50,
height: 50,
resizeMode: 'contain',
},
});

export default styles;
Loading