Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,10 @@ jobs:
VERSION="${{ inputs.android_version }}"

# Validate version exists on GitHub
# -sf: silent + fail on HTTP >= 400 so RELEASE stays empty
# on 404, otherwise GitHub's JSON error body would defeat the
# `[ -z ]` guard below.
RELEASE=$(curl -sf -H "Authorization: token ${{ github.token }}" \
"https://api.github.com/repos/OneSignal/OneSignal-Android-SDK/releases/tags/${VERSION}" || true)


if [ -z "$RELEASE" ]; then
if ! curl --fail --silent --show-error --retry 4 --retry-delay 30 \
-H "Authorization: token ${{ github.token }}" \
"https://api.github.com/repos/OneSignal/OneSignal-Android-SDK/releases/tags/${VERSION}" \
>/dev/null; then
echo "✗ Android SDK version ${VERSION} not found"
exit 1
fi
Expand All @@ -145,13 +141,10 @@ jobs:
VERSION="${{ inputs.ios_version }}"

# Validate version exists on GitHub
# -sf: silent + fail on HTTP >= 400 so RELEASE stays empty
# on 404, otherwise GitHub's JSON error body would defeat the
# `[ -z ]` guard below.
RELEASE=$(curl -sf -H "Authorization: token ${{ github.token }}" \
"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/releases/tags/${VERSION}" || true)

if [ -z "$RELEASE" ]; then
if ! curl --fail --silent --show-error --retry 4 --retry-delay 30 \
-H "Authorization: token ${{ github.token }}" \
"https://api.github.com/repos/OneSignal/OneSignal-iOS-SDK/releases/tags/${VERSION}" \
>/dev/null; then
echo "✗ iOS SDK version ${VERSION} not found"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def safeFlagGet(envProp, gradleProp) {
return normalizedValue != null && (normalizedValue.equalsIgnoreCase('true') || normalizedValue == '1')
}

def oneSignalVersion = '5.9.6'
def oneSignalVersion = '5.9.7'
def oneSignalDisableLocation = safeFlagGet('ONESIGNAL_DISABLE_LOCATION', 'onesignal.disableLocation')

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void invalidate() {
@Override
public void initialize(String appId) {
OneSignalWrapper.setSdkType("reactnative");
OneSignalWrapper.setSdkVersion("050504");
OneSignalWrapper.setSdkVersion("050505");

if (oneSignalInitDone) {
Logging.debug("Already initialized the OneSignal React-Native SDK", null);
Expand Down
2 changes: 1 addition & 1 deletion ios/RCTOneSignal/RCTOneSignal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ - (void)initOneSignal:(NSDictionary *)launchOptions {
return;

OneSignalWrapper.sdkType = @"reactnative";
OneSignalWrapper.sdkVersion = @"050504";
OneSignalWrapper.sdkVersion = @"050505";
// initialize the SDK with a nil app ID so cold start click listeners can be
// triggered
[OneSignal initialize:nil withLaunchOptions:launchOptions];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-onesignal",
"version": "5.5.4",
"version": "5.5.5",
"description": "React Native OneSignal SDK",
"keywords": [
"android",
Expand Down
Loading