Skip to content

Commit

Permalink
fix(android): Read User Authentication token from the environment var…
Browse files Browse the repository at this point in the history
…iable (#3917)
  • Loading branch information
lucas-zimerman authored Jul 4, 2024
1 parent 8a28af8 commit b096e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### Fixes

- `sentry-expo-upload-sourcemaps` no longer requires Sentry url when uploading sourcemaps to `sentry.io` ([#3915](https://github.com/getsentry/sentry-react-native/pull/3915))
- Flavor aware Android builds use `SENTRY_AUTH_TOKEN` env as fallback when token not found in `sentry-flavor-type.properties`. ([#3917](https://github.com/getsentry/sentry-react-native/pull/3917))
- `mechanism.handled:false` should crash current session ([#3900](https://github.com/getsentry/sentry-react-native/pull/3900))

### Dependencies
Expand Down
2 changes: 1 addition & 1 deletion sentry.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ gradle.projectsEvaluated {
])
args.addAll(!config.flavorAware ? [] : [
"--url", sentryProps.get("defaults.url"),
"--auth-token", sentryProps.get("auth.token")
"--auth-token", sentryProps.get("auth.token") ?: System.getenv("SENTRY_AUTH_TOKEN")
])
args.addAll(["react-native", "gradle",
"--bundle", bundleOutput, // The path to a bundle that should be uploaded.
Expand Down

0 comments on commit b096e3b

Please sign in to comment.