Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

## Unreleased

### Features

- Adds support for Gradle 9 ([#5233](https://github.com/getsentry/sentry-react-native/pull/5233))

### Fixes

- Fixes .env file loading in Expo sourcemap uploads ([#5210](https://github.com/getsentry/sentry-react-native/pull/5210))
Expand Down
10 changes: 8 additions & 2 deletions packages/core/sentry.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ project.ext.shouldSentryAutoUpload = { ->
return shouldSentryAutoUploadGeneral() && shouldSentryAutoUploadNative()
}

interface InjectedExecOps {
@Inject //@javax.inject.Inject
ExecOperations getExecOps()
}

def config = project.hasProperty("sentryCli") ? project.sentryCli : [];

// gradle.projectsEvaluated doesn't work with --configure-on-demand
Expand Down Expand Up @@ -122,9 +127,10 @@ project.afterEvaluate {
? file(config.hasSourceMapDebugIdScript).getAbsolutePath()
: "$sentryPackage/scripts/has-sourcemap-debugid.js"

def injected = project.objects.newInstance(InjectedExecOps)
doFirst {
// Copy Debug ID from packager source map to Hermes composed source map
exec {
injected.execOps.exec {
def args = ["node",
copyDebugIdScript,
packagerSourcemapOutput,
Expand All @@ -146,7 +152,7 @@ project.afterEvaluate {
}

doLast {
exec {
injected.execOps.exec {
workingDir reactRoot

def propertiesFile = config.sentryProperties
Expand Down
Loading