Sentry-react-native: Ability to disable autoUpload source maps

Created on 25 Aug 2020  路  2Comments  路  Source: getsentry/sentry-react-native

OS:

  • [x] Windows
  • [ ] MacOS
  • [ ] Linux

Platform:

  • [ ] iOS
  • [x] Android

SDK:

  • [x] @sentry/react-native (>= 1.7.1)
  • [ ] react-native-sentry (<= 0.43.2)

react-native version: 0.63.2 with hermes

Are you using Expo?

  • [ ] Yes
  • [x] No

Are you using sentry.io or on-premise?

  • [x] sentry.io (SaaS)
  • [ ] on-premise

I have following issue:

Look like source maps got uploaded everytime I run react-native run-android event with debug mode. It take alot of time to start to dev my app. If it upload my local source maps, will it affect to our production? And I don't want to use sentry for local dev.

Looking around documents but not found any where mention How to disable autoUpload source maps.

Android

Most helpful comment

I agree with this, we will investigate adding this in the near future.

All 2 comments

Could this be an added feature? Now that Release builds automatically try to upload assets, team members don't even have creds to upload it - thus it fails. I mean Release builds are uncommon locally, but they have to happen for certain things to test.

I thought there would be some simple environment variable or even property file, but the only way I've found out to patch this is overriding our gradle file with something like:

gradle.projectsEvaluated {
    def tasksToSkip = project.tasks.matching {
        it.name.contains("SentryUpload")
    }
    tasksToSkip.all { enabled = false }
}

I agree with this, we will investigate adding this in the near future.

Was this page helpful?
0 / 5 - 0 ratings