Skip to content

Commit 3e071df

Browse files
fix(gradle): Waif for has-sourcemap-debugid process to exit (#3336)
1 parent 6b7f53b commit 3e071df

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixes
6+
7+
- Waif for `has-sourcemap-debugid` process to exit ([#3336](https://github.com/getsentry/sentry-react-native/pull/3336))
8+
39
## 5.11.0
410

511
### Features

sentry.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ gradle.projectsEvaluated {
128128

129129
// Add release and dist for backward compatibility if no Debug ID detected in output soruce map
130130
def process = ["node", hasSourceMapDebugIdScript, sourcemapOutput].execute(null, new File("$reactRoot"))
131+
def exitValue = process.waitFor()
131132
project.logger.lifecycle("Check generated source map for Debug ID: ${process.text}")
132-
def notIncludeRelease = "$bundleCommand" == "bundle" && process.exitValue() == 0
133+
def notIncludeRelease = "$bundleCommand" == "bundle" && exitValue == 0
133134
def not = notIncludeRelease ? 'not ' : ''
134135
project.logger.lifecycle("Sentry Source Maps upload will ${not}include the release name and dist.")
135136
extraArgs.addAll(notIncludeRelease ? [] : [

0 commit comments

Comments
 (0)