-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43999 from margelo/fix/uploading-source-maps-ios
fix: CI upload source maps when deploying a new app version
- Loading branch information
Showing
4 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
patches/react-native+0.73.4+017+iOS-fix-whitespace-support-sourcemap.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/node_modules/react-native/scripts/react-native-xcode.sh b/node_modules/react-native/scripts/react-native-xcode.sh | ||
index d6c382b..3e1742c 100755 | ||
--- a/node_modules/react-native/scripts/react-native-xcode.sh | ||
+++ b/node_modules/react-native/scripts/react-native-xcode.sh | ||
@@ -104,7 +104,7 @@ fi | ||
|
||
BUNDLE_FILE="$CONFIGURATION_BUILD_DIR/main.jsbundle" | ||
|
||
-EXTRA_ARGS= | ||
+EXTRA_ARGS=() | ||
|
||
case "$PLATFORM_NAME" in | ||
"macosx") | ||
@@ -131,12 +131,12 @@ if [[ $EMIT_SOURCEMAP == true ]]; then | ||
else | ||
PACKAGER_SOURCEMAP_FILE="$SOURCEMAP_FILE" | ||
fi | ||
- EXTRA_ARGS="$EXTRA_ARGS --sourcemap-output $PACKAGER_SOURCEMAP_FILE" | ||
+ EXTRA_ARGS+=("--sourcemap-output" "$PACKAGER_SOURCEMAP_FILE") | ||
fi | ||
|
||
# Hermes doesn't require JS minification. | ||
if [[ $USE_HERMES != false && $DEV == false ]]; then | ||
- EXTRA_ARGS="$EXTRA_ARGS --minify false" | ||
+ EXTRA_ARGS+=("--minify" "false") | ||
fi | ||
|
||
"$NODE_BINARY" $NODE_ARGS "$CLI_PATH" $BUNDLE_COMMAND \ | ||
@@ -147,7 +147,7 @@ fi | ||
--reset-cache \ | ||
--bundle-output "$BUNDLE_FILE" \ | ||
--assets-dest "$DEST" \ | ||
- $EXTRA_ARGS \ | ||
+ "${EXTRA_ARGS[@]}" \ | ||
$EXTRA_PACKAGER_ARGS | ||
|
||
if [[ $USE_HERMES == false ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters