bugsnag / bugsnag-react-native

Error monitoring and reporting tool for native exceptions and JS errors in React Native apps
https://docs.bugsnag.com/platforms/react-native
MIT License
369 stars 121 forks source link

Please add back JS releaseStage and appVersion #481

Closed cristianoccazinsp closed 4 years ago

cristianoccazinsp commented 4 years ago

Description

The new @bugsnag/react-native removed the option to set releaseStage and appVersion from JS. While I understand this makes more sense to be set on the native side, this was a great feature from the JS side.

For example, our app has multiple dev environments with the exact same native code but just a different configuration/endpoints, so it doesn't make sense to setup different native build processes just to set this new environment there.

Describe the solution you'd like

Allow releaseStage and appVersion from JS.

Describe alternatives you've considered

On android, we need multiple build flavors and manifest files for each one just to set the release stage/app version variables. This is not ideal and adds a lot of work even for building.

Additional context Migrating from the previous version.

cristianoccazinsp commented 4 years ago

Well, after some work, I've done the following changes so this is really not needed anymore for us, and perhaps for the best.

Took some work, but I guess it was for the better.