5.11.0
Features
-
Add
buildFeatures.buildConfig=trueto support AGP 8 (#3298) -
Add Debug IDs support (#3164)
This is optional. Your current setup will keep working as is.
Add Sentry Metro Serializer to
metro.config.jsto generate Debug ID for the application bundle and source map.const {createSentryMetroSerializer} = require('@sentry/react-native/dist/js/tools/sentryMetroSerializer'); const config = {serializer: {customSerializer: createSentryMetroSerializer()}};
On iOS update
Bundle React Native Code and ImagesandUpload Debug Symbols to Sentrybuild phases.set -e WITH_ENVIRONMENT="../node_modules/react-native/scripts/xcode/with-environment.sh" REACT_NATIVE_XCODE="../node_modules/react-native/scripts/react-native-xcode.sh" /bin/sh -c "$WITH_ENVIRONMENT \"/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode.sh $REACT_NATIVE_XCODE\""
/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh
More information about the new setup can be found here.
-
Add
SENTRY_DISABLE_AUTO_UPLOADflag (#3323)How to use in Android project? It works by default, just set
export SENTRY_DISABLE_AUTO_UPLOAD=truein your build environment. For Sentry Android Gradle Plugin add the following to yourandroid/app/build.gradle.apply from: "../../node_modules/@sentry/react-native/sentry.gradle" sentry { autoUploadProguardMapping = shouldSentryAutoUpload() uploadNativeSymbols = shouldSentryAutoUpload() }
How to use in Xcode? Make sure you are using
scripts/sentry-xcode.shandscripts/sentry-xcode-debug-files.shin your
build phases. And add the following to yourios/.xcode.env.localfile.export SENTRY_DISABLE_AUTO_UPLOAD=true
Fixes
- App start time span no longer created if too long (#3299)
- Change log output to show what paths are considered when collecting modules (#3316)
Sentry.wrapdoesn't enforce any keys on the wrapped component props (#3332)- Ignore defaults when warning about duplicate definition of trace propagation targets (#3327)
- Screenshots are not taken when the SDK is disabled (#3333)
- Use deprecated
ReactNativeTracingOptions.tracingOriginsif set in the options (#3331) - Cancel auto instrumentation transaction when app goes to background (#3307)