Skip to content

Provide a way to set SENTRY_DISABLE_AUTO_UPLOAD without access to the env (Expo managed projects) #3552

@leemhenson

Description

@leemhenson

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.17.0

react-native version: 0.73.0

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

If you are using sentry.io, please post a link to your issue so we can take a look:

N/A

Configuration:

(@sentry/react-native)

withSentry({
  // .. my expo config
}, {
  organization: "my-organization",
  project: "my-project",
});

I have the following issue:

I can't see an easy way to set the SENTRY_DISABLE_AUTO_UPLOAD environment variable in .xcode.env.local so that building my app in xcode locally completes without popping up an warning about failure to upload:

image

and clicking "Show details" reveals:

image

As an Expo managed workflow user I am not in control of .xcode.env.local, it gets generated by expo prebuild. I can write a custom Expo plugin to modify that file but it seems like a lot of effort. Ideally I'd like to see this supported:

withSentry({
  // .. my expo config
}, {
  organization: "my-organization",
  project: "my-project",
  uploadSourcemaps: false, // for example
});

Steps to reproduce:

  • Create Expo app with managed workflow
  • Install @sentry/react-native per the docs
  • expo prebuild
  • Open xcode and attempt to build the app

Actual result:

As described above.

Expected result:

No errors about uploads when I'm building locally.

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

Status

No status

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions