Skip to content

Commit a6fc8fc

Browse files
DavidMina96David MinaAli Abdelfattah
authored
[MOB-8647] Add support for skipping iOS sourcemap auto upload (#694)
* Add support for skipping iOS sourcemap auto upload * Update CHANGELOG.md * Change env var name and reverse the logic * Update CHANGELOG.md Co-authored-by: David Mina <[email protected]> Co-authored-by: Ali Abdelfattah <[email protected]>
1 parent e1d10c1 commit a6fc8fc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## master
22

3-
* Adds dynamic entry file support
3+
* Adds the ability to opt out of iOS source maps auto upload through the INSTABUG_SOURCEMAPS_UPLOAD_DISABLE env variable
4+
* Adds dynamic entry file support through the INSTABUG_ENTRY_FILE env variable
45
* Fixes an issue with swipe invocation event not working on Android
56

67
## 10.13.0 (2022-03-17)

ios/upload_sourcemap.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ elif [ -x "$(command -v brew)" ] && [ -s "$(brew --prefix nvm)/nvm.sh" ]; then
88
fi
99
export NODE_BINARY=node
1010

11+
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE=$(echo $INSTABUG_SOURCEMAPS_UPLOAD_DISABLE | tr 'A-Z' 'a-z')
12+
if [ "${INSTABUG_SOURCEMAPS_UPLOAD_DISABLE}" = "true" ]; then
13+
echo "Instabug: Environment variable INSTABUG_SOURCEMAPS_UPLOAD_DISABLE was set to true, skipping sourcemap upload"
14+
exit 0
15+
fi
16+
1117
if [ ! "$INFOPLIST_FILE" ] || [ -z "$INFOPLIST_FILE" ]; then
1218
echo "Instabug: INFOPLIST_FILE not found in Xcode build settings, skipping sourcemap upload"
1319
exit 0

0 commit comments

Comments
 (0)