fix: re-enable sentry on ios build, fix react-native-flipper not building on ios
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
||||||
|
|
||||||
|
const {
|
||||||
|
createSentryMetroSerializer
|
||||||
|
} = require('@sentry/react-native/dist/js/tools/sentryMetroSerializer');
|
||||||
|
|
||||||
const defaultConfig = getDefaultConfig(__dirname);
|
const defaultConfig = getDefaultConfig(__dirname);
|
||||||
const { assetExts, sourceExts } = defaultConfig.resolver;
|
const { assetExts, sourceExts } = defaultConfig.resolver;
|
||||||
|
|
||||||
@@ -24,17 +28,9 @@ const config = {
|
|||||||
'md'
|
'md'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
serializer: {
|
||||||
// plugins: [
|
customSerializer: createSentryMetroSerializer()
|
||||||
// ['content-transformer', {
|
}
|
||||||
// transformers: [
|
|
||||||
// {
|
|
||||||
// file: /\.md$/,
|
|
||||||
// format: 'string'
|
|
||||||
// }
|
|
||||||
// ],
|
|
||||||
// }],
|
|
||||||
// ]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = mergeConfig(defaultConfig, config);
|
module.exports = mergeConfig(defaultConfig, config);
|
||||||
25
patches/@sentry+react-native+5.17.0.patch
Normal file
25
patches/@sentry+react-native+5.17.0.patch
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
diff --git a/node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh b/node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh
|
||||||
|
index 6427338..c84ac33 100755
|
||||||
|
--- a/node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh
|
||||||
|
+++ b/node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh
|
||||||
|
@@ -2,8 +2,8 @@
|
||||||
|
# Upload Debug Symbols to Sentry Xcode Build Phase
|
||||||
|
# PWD=ios
|
||||||
|
|
||||||
|
-# print commands before executing them and stop on first error
|
||||||
|
-set -x -e
|
||||||
|
+# print commands before executing them
|
||||||
|
+set -x
|
||||||
|
|
||||||
|
[ -z "$WITH_ENVIRONMENT" ] && WITH_ENVIRONMENT="../node_modules/react-native/scripts/xcode/with-environment.sh"
|
||||||
|
|
||||||
|
@@ -12,6 +12,9 @@ if [ -f "$WITH_ENVIRONMENT" ]; then
|
||||||
|
. "$WITH_ENVIRONMENT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
+# stop on first error (we can't use -e before as any failed command in WITH_ENVIRONMENT would stop the debug files upload)
|
||||||
|
+set -e
|
||||||
|
+
|
||||||
|
LOCAL_NODE_BINARY=${NODE_BINARY:-node}
|
||||||
|
|
||||||
|
[ -z "$SENTRY_PROPERTIES" ] && export SENTRY_PROPERTIES=sentry.properties
|
||||||
@@ -4,4 +4,12 @@ module.exports = {
|
|||||||
android: {}
|
android: {}
|
||||||
},
|
},
|
||||||
assets: ['./src/assets/fonts/'],
|
assets: ['./src/assets/fonts/'],
|
||||||
|
dependencies: {
|
||||||
|
// Deal with unruly react-native-flipper dependencies, per: https://github.com/facebook/flipper/issues/5266
|
||||||
|
'react-native-flipper': {
|
||||||
|
platforms: {
|
||||||
|
ios: null,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user