File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 88
99## Unreleased
1010
11+ ### Features
12+
13+ - Adds support for Gradle 9 ([ #5233 ] ( https://github.com/getsentry/sentry-react-native/pull/5233 ) )
14+
1115### Fixes
1216
1317- Fixes .env file loading in Expo sourcemap uploads ([ #5210 ] ( https://github.com/getsentry/sentry-react-native/pull/5210 ) )
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ project.ext.shouldSentryAutoUpload = { ->
1515 return shouldSentryAutoUploadGeneral() && shouldSentryAutoUploadNative()
1616}
1717
18+ interface InjectedExecOps {
19+ @Inject // @javax.inject.Inject
20+ ExecOperations getExecOps ()
21+ }
22+
1823def config = project. hasProperty(" sentryCli" ) ? project. sentryCli : [];
1924
2025// gradle.projectsEvaluated doesn't work with --configure-on-demand
@@ -122,9 +127,10 @@ project.afterEvaluate {
122127 ? file(config. hasSourceMapDebugIdScript). getAbsolutePath()
123128 : " $sentryPackage /scripts/has-sourcemap-debugid.js"
124129
130+ def injected = project. objects. newInstance(InjectedExecOps )
125131 doFirst {
126132 // Copy Debug ID from packager source map to Hermes composed source map
127- exec {
133+ injected . execOps . exec {
128134 def args = [" node" ,
129135 copyDebugIdScript,
130136 packagerSourcemapOutput,
@@ -146,7 +152,7 @@ project.afterEvaluate {
146152 }
147153
148154 doLast {
149- exec {
155+ injected . execOps . exec {
150156 workingDir reactRoot
151157
152158 def propertiesFile = config. sentryProperties
You can’t perform that action at this time.
0 commit comments