From ebad1a2adf10e252bff34a9aa298b25d3f4fe036 Mon Sep 17 00:00:00 2001 From: Jenna Antilla <46546946+jennantilla@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:53:28 -0800 Subject: [PATCH 1/3] release commit sdk version bumps --- android/build.gradle | 2 +- .../main/java/com/onesignal/rnonesignalandroid/RNOneSignal.java | 2 +- ios/RCTOneSignal/RCTOneSignal.m | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 3b0ae63c..805c3e7e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -31,7 +31,7 @@ dependencies { // api is used instead of implementation so the parent :app project can access any of the OneSignal Java // classes if needed. Such as com.onesignal.NotificationExtenderService - api 'com.onesignal:OneSignal:5.0.3' + api 'com.onesignal:OneSignal:5.0.4' testImplementation 'junit:junit:4.12' } \ No newline at end of file diff --git a/android/src/main/java/com/onesignal/rnonesignalandroid/RNOneSignal.java b/android/src/main/java/com/onesignal/rnonesignalandroid/RNOneSignal.java index 11993212..b17e614d 100644 --- a/android/src/main/java/com/onesignal/rnonesignalandroid/RNOneSignal.java +++ b/android/src/main/java/com/onesignal/rnonesignalandroid/RNOneSignal.java @@ -216,7 +216,7 @@ public void onCatalystInstanceDestroy() { public void initialize(String appId) { Context context = mReactApplicationContext.getCurrentActivity(); OneSignalWrapper.setSdkType("reactnative"); - OneSignalWrapper.setSdkVersion("050002"); + OneSignalWrapper.setSdkVersion("050003"); if (oneSignalInitDone) { Log.e("OneSignal", "Already initialized the OneSignal React-Native SDK"); diff --git a/ios/RCTOneSignal/RCTOneSignal.m b/ios/RCTOneSignal/RCTOneSignal.m index dfa6ee4e..275cbefc 100644 --- a/ios/RCTOneSignal/RCTOneSignal.m +++ b/ios/RCTOneSignal/RCTOneSignal.m @@ -47,7 +47,7 @@ - (void)initOneSignal:(NSDictionary *)launchOptions { return; OneSignalWrapper.sdkType = @"reactnative"; - OneSignalWrapper.sdkVersion = @"050002"; + OneSignalWrapper.sdkVersion = @"050003"; // initialize the SDK with a nil app ID so cold start click listeners can be triggered [OneSignal initialize:nil withLaunchOptions:launchOptions]; didInitialize = true; diff --git a/package.json b/package.json index 9d85c192..61591c8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-onesignal", - "version": "5.0.2", + "version": "5.0.3", "description": "React Native OneSignal SDK", "main": "dist/index.js", "types": "dist/index.d.ts", From 323b31d4654aea45e19265153b4ac467bee47210 Mon Sep 17 00:00:00 2001 From: Jenna Antilla <46546946+jennantilla@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:32:59 -0800 Subject: [PATCH 2/3] Update iOS SDK version --- ios/RCTOneSignal/RCTOneSignal.m | 2 +- react-native-onesignal.podspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/RCTOneSignal/RCTOneSignal.m b/ios/RCTOneSignal/RCTOneSignal.m index 275cbefc..050aafbd 100644 --- a/ios/RCTOneSignal/RCTOneSignal.m +++ b/ios/RCTOneSignal/RCTOneSignal.m @@ -47,7 +47,7 @@ - (void)initOneSignal:(NSDictionary *)launchOptions { return; OneSignalWrapper.sdkType = @"reactnative"; - OneSignalWrapper.sdkVersion = @"050003"; + OneSignalWrapper.sdkVersion = @"050004"; // initialize the SDK with a nil app ID so cold start click listeners can be triggered [OneSignal initialize:nil withLaunchOptions:launchOptions]; didInitialize = true; diff --git a/react-native-onesignal.podspec b/react-native-onesignal.podspec index b2ec463b..a7447852 100644 --- a/react-native-onesignal.podspec +++ b/react-native-onesignal.podspec @@ -22,5 +22,5 @@ Pod::Spec.new do |s| # pod 'React', :path => '../node_modules/react-native/' # The Native OneSignal-iOS-SDK XCFramework from cocoapods. - s.dependency 'OneSignalXCFramework', '5.0.2' + s.dependency 'OneSignalXCFramework', '5.0.4' end From af49bb2072ea90ee4e7791796a96c251877a64df Mon Sep 17 00:00:00 2001 From: Jenna Antilla <46546946+jennantilla@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:48:14 -0800 Subject: [PATCH 3/3] Correct wrapper sdk version --- ios/RCTOneSignal/RCTOneSignal.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RCTOneSignal/RCTOneSignal.m b/ios/RCTOneSignal/RCTOneSignal.m index 050aafbd..275cbefc 100644 --- a/ios/RCTOneSignal/RCTOneSignal.m +++ b/ios/RCTOneSignal/RCTOneSignal.m @@ -47,7 +47,7 @@ - (void)initOneSignal:(NSDictionary *)launchOptions { return; OneSignalWrapper.sdkType = @"reactnative"; - OneSignalWrapper.sdkVersion = @"050004"; + OneSignalWrapper.sdkVersion = @"050003"; // initialize the SDK with a nil app ID so cold start click listeners can be triggered [OneSignal initialize:nil withLaunchOptions:launchOptions]; didInitialize = true;