Sentry Integration
If you’re using Sentry for crash reporting, it will work out-of-the-box with Patchwing releases and patches. However, if you have multiple patches, it can be unclear which patch caused the crash. This document shows how to include the Patchwing patch number in your Sentry events so you can differentiate between patches.
Add the patchwing_code_push package to your project.
Section titled “Add the patchwing_code_push package to your project.”patchwing_code_push is available on pub.dev and lets you programmatically determine your app’s current patch number. To add it to your project, follow the instructions on the package’s pub.dev page.
Configure Sentry
Section titled “Configure Sentry”If you haven’t already, follow the Sentry getting started with Flutter guide.
Update the Sentry init code to include the patch number as a tag. This will look something like: