diff --git a/android/build.gradle b/android/build.gradle index 792e5eaa..0218e6a1 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.1.17' + api 'com.onesignal:OneSignal:5.1.20' 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 f88dea50..03240d0a 100644 --- a/android/src/main/java/com/onesignal/rnonesignalandroid/RNOneSignal.java +++ b/android/src/main/java/com/onesignal/rnonesignalandroid/RNOneSignal.java @@ -229,7 +229,7 @@ public void onCatalystInstanceDestroy() { public void initialize(String appId) { Context context = mReactApplicationContext.getCurrentActivity(); OneSignalWrapper.setSdkType("reactnative"); - OneSignalWrapper.setSdkVersion("050202"); + OneSignalWrapper.setSdkVersion("050203"); 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 c11d2b27..3bbf8366 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 = @"050202"; + OneSignalWrapper.sdkVersion = @"050203"; // 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 7bd72c24..8aad1fdb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-onesignal", - "version": "5.2.2", + "version": "5.2.3", "description": "React Native OneSignal SDK", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/react-native-onesignal.podspec b/react-native-onesignal.podspec index 8533faf5..94520a6e 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.2.2' + s.dependency 'OneSignalXCFramework', '5.2.3' end