Skip to content

Commit aabbe3d

Browse files
committed
chore(demo): bump iOS deployment target to 15.1
1 parent 1d1c777 commit aabbe3d

4 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/actions/setup-demo/action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ runs:
2020
cache: true
2121
run-install: true
2222

23-
- name: Set up Bun
24-
uses: oven-sh/setup-bun@v2
25-
2623
- name: Cache bun dependencies
2724
uses: actions/cache@v5
2825
with:

.github/workflows/create-release-pr.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,19 @@ jobs:
140140
sed -i '' "s/s\.dependency 'OneSignalXCFramework', '[^']*'/s.dependency 'OneSignalXCFramework', '$VERSION'/" react-native-onesignal.podspec
141141
echo "✓ Updated react-native-onesignal.podspec with iOS SDK ${VERSION}"
142142
143+
# Update demo app's Podfile.lock with the new iOS SDK version.
144+
# setup.sh repacks the SDK tarball (so node_modules sees the new pin),
145+
# then pod update rewrites the OneSignalXCFramework lock entry only.
146+
# --no-repo-update is fine because trunk is a CDN and serves the new
147+
# spec on demand without a local refresh.
148+
(
149+
cd examples/demo
150+
bun run setup
151+
cd ios
152+
pod update OneSignalXCFramework --no-repo-update
153+
)
154+
echo "✓ Updated examples/demo/ios/Podfile.lock to OneSignalXCFramework ${VERSION}"
155+
143156
# Only commit if there are changes
144157
git add -A
145158
git diff --staged --quiet && exit 0

examples/demo/ios/demo.xcodeproj/project.pbxproj

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,10 @@
366366
inputFileListPaths = (
367367
"${PODS_ROOT}/Target Support Files/Pods-demo/Pods-demo-frameworks-${CONFIGURATION}-input-files.xcfilelist",
368368
);
369-
inputPaths = (
370-
);
371369
name = "[CP] Embed Pods Frameworks";
372370
outputFileListPaths = (
373371
"${PODS_ROOT}/Target Support Files/Pods-demo/Pods-demo-frameworks-${CONFIGURATION}-output-files.xcfilelist",
374372
);
375-
outputPaths = (
376-
);
377373
runOnlyForDeploymentPostprocessing = 0;
378374
shellPath = /bin/sh;
379375
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-demo/Pods-demo-frameworks.sh\"\n";
@@ -431,14 +427,10 @@
431427
inputFileListPaths = (
432428
"${PODS_ROOT}/Target Support Files/Pods-demo/Pods-demo-resources-${CONFIGURATION}-input-files.xcfilelist",
433429
);
434-
inputPaths = (
435-
);
436430
name = "[CP] Copy Pods Resources";
437431
outputFileListPaths = (
438432
"${PODS_ROOT}/Target Support Files/Pods-demo/Pods-demo-resources-${CONFIGURATION}-output-files.xcfilelist",
439433
);
440-
outputPaths = (
441-
);
442434
runOnlyForDeploymentPostprocessing = 0;
443435
shellPath = /bin/sh;
444436
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-demo/Pods-demo-resources.sh\"\n";
@@ -750,7 +742,7 @@
750742
CURRENT_PROJECT_VERSION = 1;
751743
DEVELOPMENT_TEAM = 99SW8E36CT;
752744
INFOPLIST_FILE = OneSignalNotificationServiceExtension/Info.plist;
753-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
745+
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
754746
LD_RUNPATH_SEARCH_PATHS = (
755747
"$(inherited)",
756748
"@executable_path/Frameworks",
@@ -776,7 +768,7 @@
776768
DEVELOPMENT_TEAM = "";
777769
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 99SW8E36CT;
778770
INFOPLIST_FILE = OneSignalNotificationServiceExtension/Info.plist;
779-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
771+
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
780772
LD_RUNPATH_SEARCH_PATHS = (
781773
"$(inherited)",
782774
"@executable_path/Frameworks",

examples/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"preios": "bun run setup",
99
"android": "bash ../run-android.sh",
1010
"ios": "bash ../run-ios.sh",
11-
"update:pods": "cd ios && pod update OneSignalXCFramework --no-repo-update && cd ..",
11+
"update:pods": "cd ios && pod update OneSignalXCFramework && cd ..",
1212
"clean:android": "rm -rf android/app/build android/app/.cxx android/build && adb uninstall com.onesignal.example >/dev/null 2>&1 || true",
1313
"clean:ios": "rm -rf ios/build ios/Pods",
1414
"start": "react-native start"

0 commit comments

Comments
 (0)