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
22 changes: 5 additions & 17 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,24 +135,12 @@ jobs:
git diff --staged --quiet && exit 0
git commit -m "Update Android SDK to ${VERSION}" && git push

- name: Update iOS SDK version
- name: Skip iOS SDK version
if: inputs.ios_version != ''
run: |
VERSION="${{ inputs.ios_version }}"
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
sed -i -E "s/const string Version = \"[0-9][0-9.]*\"/const string Version = \"$VERSION\"/" com.onesignal.unity.ios/Editor/OneSignaliOSDependencies.cs
sed -i -E "s/version=\"[0-9][0-9.]*\"/version=\"$VERSION\"/" examples/demo/Assets/OneSignal/Editor/OneSignaliOSDependencies.xml

# Only commit if there are changes
git add -A
git diff --staged --quiet && exit 0
git commit -m "Update iOS SDK to ${VERSION}" && git push
# 5.x installs the iOS SDK through CocoaPods, and trunk is read-only,
# so OneSignalXCFramework stays at the last version published there.
echo "::warning::Skipping iOS SDK ${{ inputs.ios_version }}: 5.x stays on the last OneSignalXCFramework published to CocoaPods trunk"

- name: Update Unity SDK version
env:
Expand Down Expand Up @@ -192,4 +180,4 @@ jobs:
android_from: ${{ needs.update_version.outputs.android_from }}
android_to: ${{ inputs.android_version }}
ios_from: ${{ needs.update_version.outputs.ios_from }}
ios_to: ${{ inputs.ios_version }}
ios_to: ''
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ internal static void WriteDependencies()
}
}

// CocoaPods trunk is read-only, so newer OneSignalXCFramework versions ship only via SPM.
internal const string Version = "5.8.1";

private static readonly string _dependenciesPath = Path.Combine(
Expand Down