Skip to content

Commit b096e3b

Browse files
fix(android): Read User Authentication token from the environment variable (#3917)
1 parent 8a28af8 commit b096e3b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Fixes
1111

1212
- `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))
13+
- 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))
1314
- `mechanism.handled:false` should crash current session ([#3900](https://github.com/getsentry/sentry-react-native/pull/3900))
1415

1516
### Dependencies

sentry.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ gradle.projectsEvaluated {
183183
])
184184
args.addAll(!config.flavorAware ? [] : [
185185
"--url", sentryProps.get("defaults.url"),
186-
"--auth-token", sentryProps.get("auth.token")
186+
"--auth-token", sentryProps.get("auth.token") ?: System.getenv("SENTRY_AUTH_TOKEN")
187187
])
188188
args.addAll(["react-native", "gradle",
189189
"--bundle", bundleOutput, // The path to a bundle that should be uploaded.

0 commit comments

Comments
 (0)