Recommended way to specify release for sentry_dart_plugin
when uploading debug symbols?
#2234
Replies: 2 comments
-
Hey, the plugin in this case doesn't know anything about the release you set during the build process so by default it uses the version specificed in What you can also do is update the puspec version, the sentry flutter sdk reads it automatically and sets it as release. So both plugin and flutter have access to pubspec.yaml |
Beta Was this translation helpful? Give feedback.
-
You can automate the release version for both the app build and the debug symbol upload by dynamically setting the Also, consider using the |
Beta Was this translation helpful? Give feedback.
-
I'm building my Flutter app for iOS using
flutter build ipa --release --dart-define "TAIKI_API_ENDPOINT=..." --dart-define "SENTRY_DSN=..." --dart-define "SENTRY_RELEASE=..." --dart-define "SENTRY_ENVIRONMENT=release" --obfuscate --split-debug-info=./debug-info
. Then, I upload the debug symbols by runningdart run sentry_dart_plugin
.sentry_dart_plugin
computes the release to be[email protected]+1
. Am I supposed to hard-code theSENTRY_RELEASE=
when runningflutter build
beforesentry_dart_plugin
? Is there a convenient way to run both of these steps such that I don't need to manually specify the release when building, while still having the debug symbols and built app point to the same Sentry release?Beta Was this translation helpful? Give feedback.
All reactions