Skip to content

Commit

Permalink
bump iOS to 3.19.7-beta.1 and rn to 3.18.9-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeier committed Dec 30, 2024
1 parent 0bebe25 commit 4cb2aa4
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {
minSdkVersion 16
targetSdkVersion 31
versionCode 1
versionName '3.18.9-beta.1'
versionName '3.18.9-beta.2'
}
lintOptions {
abortOnError false
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/io/radar/react/RNRadarModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,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.18.9-beta.1");
editor.putString("x_platform_sdk_version", "3.18.9-beta.2");
editor.apply();
if (fraud) {
Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud);
Expand Down
4 changes: 2 additions & 2 deletions example/package-lock.json

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

2 changes: 1 addition & 1 deletion ios/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "radarlabs/radar-sdk-ios" "3.19.4"
github "radarlabs/radar-sdk-ios" "3.19.7-beta.1"
2 changes: 1 addition & 1 deletion ios/RNRadar.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,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.18.9-beta.1" forKey:@"radar-xPlatformSDKVersion"];
[[NSUserDefaults standardUserDefaults] setObject:@"3.18.9-beta.2" forKey:@"radar-xPlatformSDKVersion"];
[Radar initializeWithPublishableKey:publishableKey];
}

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

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

2 changes: 1 addition & 1 deletion 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.18.9-beta.1",
"version": "3.18.9-beta.2",
"main": "dist/index.js",
"files": [
"/android",
Expand Down
4 changes: 2 additions & 2 deletions plugin/src/withRadarIOS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const withRadarIOS: ConfigPlugin<RadarPluginProps> = (config, args) => {
const contents = await fs.readFile(filePath, 'utf-8');

// Check if the pod declaration already exists
if (contents.indexOf("pod 'RadarSDKMotion', '3.19.4'") === -1) {
if (contents.indexOf("pod 'RadarSDKMotion', '3.19.7-beta.1'") === -1) {
// Find the target block
const targetRegex = /target '(\w+)' do/g;
const match = targetRegex.exec(contents);
Expand All @@ -62,7 +62,7 @@ export const withRadarIOS: ConfigPlugin<RadarPluginProps> = (config, args) => {

// Insert the pod declaration within the target block
const targetBlock = contents.substring(targetStartIndex, targetEndIndex);
const updatedTargetBlock = targetBlock.replace(/(target '(\w+)' do)/, `$1\n pod 'RadarSDKMotion', '3.19.4'`);
const updatedTargetBlock = targetBlock.replace(/(target '(\w+)' do)/, `$1\n pod 'RadarSDKMotion', '3.19.7-beta.1'`);
const newContents = contents.replace(targetBlock, updatedTargetBlock);

// Write the updated contents back to the Podfile
Expand Down
2 changes: 1 addition & 1 deletion react-native-radar.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Pod::Spec.new do |s|
s.platform = :ios, "10.0"

s.dependency "React"
s.dependency "RadarSDK", "~> 3.19.4"
s.dependency "RadarSDK", "~> 3.19.7-beta.1"
end

0 comments on commit 4cb2aa4

Please sign in to comment.