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 8
8
9
9
## Unreleased
10
10
11
+ ### Features
12
+
13
+ - Adds support for Gradle 9 ([ #5233 ] ( https://github.com/getsentry/sentry-react-native/pull/5233 ) )
14
+
11
15
### Fixes
12
16
13
17
- 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 = { ->
15
15
return shouldSentryAutoUploadGeneral() && shouldSentryAutoUploadNative()
16
16
}
17
17
18
+ interface InjectedExecOps {
19
+ @Inject // @javax.inject.Inject
20
+ ExecOperations getExecOps ()
21
+ }
22
+
18
23
def config = project. hasProperty(" sentryCli" ) ? project. sentryCli : [];
19
24
20
25
// gradle.projectsEvaluated doesn't work with --configure-on-demand
@@ -122,9 +127,10 @@ project.afterEvaluate {
122
127
? file(config. hasSourceMapDebugIdScript). getAbsolutePath()
123
128
: " $sentryPackage /scripts/has-sourcemap-debugid.js"
124
129
130
+ def injected = project. objects. newInstance(InjectedExecOps )
125
131
doFirst {
126
132
// Copy Debug ID from packager source map to Hermes composed source map
127
- exec {
133
+ injected . execOps . exec {
128
134
def args = [" node" ,
129
135
copyDebugIdScript,
130
136
packagerSourcemapOutput,
@@ -146,7 +152,7 @@ project.afterEvaluate {
146
152
}
147
153
148
154
doLast {
149
- exec {
155
+ injected . execOps . exec {
150
156
workingDir reactRoot
151
157
152
158
def propertiesFile = config. sentryProperties
You can’t perform that action at this time.
0 commit comments