bugsnag / bugsnag-android-gradle-plugin

Gradle plugin for BugSnag which uploads ProGuard, DexGuard and NDK mapping files, and sends build notifications
https://docs.bugsnag.com/build-integrations/gradle/
MIT License
70 stars 38 forks source link

Append sourcemap path to endpoint provided by plugin #352

Closed fractalwrench closed 3 years ago

fractalwrench commented 3 years ago

Goal

The plugin needs to add the ~/sourcemap~ /react-native-source-map route when a custom endpoint is provided, which is then passed to the source map CLI.

Changeset

If the endpoint is upload.bugsnag.com, ~just pass that~ pass nothing. Otherwise, ~sourcemap~ react-native-source-map should be appended onto the route.

The version of bugsnag-sourcemaps was also bumped to the latest available from npm.

Testing

Added to existing unit tests to verify that the endpoint is calculated correctly.