Skip to content

Commit

Permalink
bump version (#351)
Browse files Browse the repository at this point in the history
* bump version

* actaully bump android
  • Loading branch information
KennyHuRadar authored Sep 13, 2024
1 parent ce71efb commit 6d35aac
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions 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.17.0'
versionName '3.18.0'
}
lintOptions {
abortOnError false
Expand All @@ -45,6 +45,6 @@ repositories {

dependencies {
api 'com.facebook.react:react-native:+'
api 'io.radar:sdk:3.17.1'
api 'io.radar:sdk:3.18.0'
}

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.17.0");
editor.putString("x_platform_sdk_version", "3.18.0");
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.17.0"
github "radarlabs/radar-sdk-ios" "3.18.0"
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.17.0" forKey:@"radar-xPlatformSDKVersion"];
[[NSUserDefaults standardUserDefaults] setObject:@"3.18.0" 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.17.0",
"version": "3.18.0",
"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.17.0'") === -1) {
if (contents.indexOf("pod 'RadarSDKMotion', '3.18.0'") === -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.17.0'`);
const updatedTargetBlock = targetBlock.replace(/(target '(\w+)' do)/, `$1\n pod 'RadarSDKMotion', '3.18.0'`);
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.17.0"
s.dependency "RadarSDK", "~> 3.18.0"
end

0 comments on commit 6d35aac

Please sign in to comment.