Skip to content

Commit ecf8970

Browse files
Verify iOS sample Podfile after Expo prebuild
Assisted-By: devx/058cd5b9-f1cc-431b-b520-15657ace50f1
1 parent b386d2f commit ecf8970

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ up:
3030
- custom:
3131
name: Prebuild React Native sample native projects
3232
met?: "false"
33-
meet: cd platforms/react-native && pnpm run prebuild -- all -- --clean
33+
meet: cd platforms/react-native && pnpm run prebuild -- all
3434

3535
open:
3636
"GitHub": "https://github.com/Shopify/checkout-kit"
@@ -476,12 +476,12 @@ commands:
476476
desc: Prebuild generated native sample projects.
477477
long_desc: |
478478
Runs Expo prebuild for the React Native sample and prepares platform-specific native dependencies.
479-
Existing native folders are preserved unless Expo's --clean arg is passed through.
479+
Native folders are regenerated from a clean Expo prebuild on every run.
480480
481481
dev rn prebuild Prebuild iOS and Android
482482
dev rn prebuild ios Prebuild iOS and install CocoaPods
483483
dev rn prebuild android Prebuild Android
484-
dev rn prebuild all -- --clean Regenerate iOS and Android native projects
484+
dev rn prebuild all Regenerate iOS and Android native projects
485485
dev rn prebuild ios --local Prebuild iOS against in-repo Swift SDK sources
486486
dev rn prebuild android --local Prebuild Android against in-repo Android SDK artifacts
487487

platforms/react-native/sample/scripts/build_ios

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ source "$SCRIPT_DIR/simulator"
2020
dest="$(get_sim_destination)"
2121

2222
"$SCRIPT_DIR/../../scripts/prebuild" ios "$@"
23+
24+
if [ "${USE_LOCAL_SDK:-0}" != "1" ]; then
25+
"$SCRIPT_DIR/../../scripts/check_published_podfile_lock" "$SCRIPT_DIR/../ios/Podfile.lock"
26+
fi
27+
2328
cd "$SCRIPT_DIR/../ios"
2429

2530
xcbeautify_args=""

platforms/react-native/scripts/prebuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if [ "${USE_LOCAL_SDK:-0}" = "1" ] && { [ "$platform" = "android" ] || [ "$platf
5959
fi
6060

6161
cd "$SAMPLE_DIR"
62-
pnpm exec expo prebuild --platform "$platform" --no-install "${expo_args[@]}"
62+
pnpm exec expo prebuild --platform "$platform" --no-install --clean "${expo_args[@]}"
6363

6464
if [ "$platform" = "ios" ] || [ "$platform" = "all" ]; then
6565
bundle check || bundle install

0 commit comments

Comments
 (0)