Skip to content

Commit 63f0879

Browse files
Add categories to RadarAddress (#400)
* prepare for release * update native module versions * add categories to RadarAddress * Update ios/RNRadar.mm Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update android/src/newarch/java/com/radar/RadarModule.kt Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update android/src/oldarch/java/com/radar/RadarModule.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 83c900b commit 63f0879

File tree

8 files changed

+24
-50
lines changed

8 files changed

+24
-50
lines changed

Radar.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.source_files = "ios/**/*.{h,m,mm,cpp}"
1717
s.private_header_files = "ios/**/*.h"
1818

19-
s.dependency "RadarSDK", "~> 3.22.0"
19+
s.dependency "RadarSDK", "~> 3.23.1"
2020

2121
install_modules_dependencies(s)
2222
end

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ dependencies {
8383
// Keep Kotlin stdlib internal to this module
8484
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
8585

86-
api 'io.radar:sdk:3.22.0'
86+
api 'io.radar:sdk:3.23.2'
8787
}
8888

8989
react {

android/src/newarch/java/com/radar/RadarModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class RadarModule(reactContext: ReactApplicationContext) :
105105
override fun initialize(publishableKey: String, fraud: Boolean): Unit {
106106
val editor = reactApplicationContext.getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit()
107107
editor.putString("x_platform_sdk_type", "ReactNative")
108-
editor.putString("x_platform_sdk_version", "3.22.0")
108+
editor.putString("x_platform_sdk_version", "3.22.1")
109109
editor.apply()
110110

111111
if (fraud) {

android/src/oldarch/java/com/radar/RadarModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void initialize(String publishableKey, boolean fraud) {
9898
this.fraud = fraud;
9999
SharedPreferences.Editor editor = getReactApplicationContext().getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit();
100100
editor.putString("x_platform_sdk_type", "ReactNative");
101-
editor.putString("x_platform_sdk_version", "3.22.0");
101+
editor.putString("x_platform_sdk_version", "3.22.1");
102102
editor.apply();
103103
if (fraud) {
104104
Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud);

ios/RNRadar.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ - (void)didUpdateToken:(RadarVerifiedLocationToken *)token {
139139

140140
RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud) {
141141
[[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
142-
[[NSUserDefaults standardUserDefaults] setObject:@"3.22.0" forKey:@"radar-xPlatformSDKVersion"];
142+
[[NSUserDefaults standardUserDefaults] setObject:@"3.22.1" forKey:@"radar-xPlatformSDKVersion"];
143143
[Radar initializeWithPublishableKey:publishableKey];
144144
}
145145

package-lock.json

Lines changed: 15 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
44
"homepage": "https://radar.com",
55
"license": "Apache-2.0",
6-
"version": "3.22.0",
6+
"version": "3.22.1",
77
"main": "dist/index.js",
88
"files": [
99
"dist",
@@ -80,6 +80,7 @@
8080
"@react-native/eslint-config": "^0.78.0",
8181
"@release-it/conventional-changelog": "^9.0.2",
8282
"@types/jest": "^29.5.5",
83+
"@types/node": "^24.3.0",
8384
"@types/react": "^19.0.0",
8485
"commitlint": "^19.6.1",
8586
"del-cli": "^5.1.0",
@@ -123,4 +124,4 @@
123124
}
124125
}
125126
}
126-
}
127+
}

src/@types/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ export interface RadarRegion {
696696
export interface RadarAddress {
697697
addressLabel?: string;
698698
borough?: string;
699+
categories?: string[];
699700
city?: string;
700701
confidence?: string;
701702
country?: string;

0 commit comments

Comments
 (0)