@react-native/gradle-plugin 0.77.0-rc.1 → 0.77.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
4
4
  networkTimeout=10000
5
5
  validateDistributionUrl=true
6
6
  zipStoreBase=GRADLE_USER_HOME
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/gradle-plugin",
3
- "version": "0.77.0-rc.1",
3
+ "version": "0.77.0-rc.3",
4
4
  "description": "Gradle Plugin for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,6 +12,7 @@ import com.facebook.react.utils.detectOSAwareHermesCommand
12
12
  import com.facebook.react.utils.moveTo
13
13
  import com.facebook.react.utils.windowsAwareCommandLine
14
14
  import java.io.File
15
+ import javax.inject.Inject
15
16
  import org.gradle.api.DefaultTask
16
17
  import org.gradle.api.file.ConfigurableFileTree
17
18
  import org.gradle.api.file.DirectoryProperty
@@ -19,6 +20,7 @@ import org.gradle.api.file.RegularFileProperty
19
20
  import org.gradle.api.provider.ListProperty
20
21
  import org.gradle.api.provider.Property
21
22
  import org.gradle.api.tasks.*
23
+ import org.gradle.process.ExecOperations
22
24
 
23
25
  abstract class BundleHermesCTask : DefaultTask() {
24
26
 
@@ -26,6 +28,8 @@ abstract class BundleHermesCTask : DefaultTask() {
26
28
  group = "react"
27
29
  }
28
30
 
31
+ @get:Inject abstract val execOperations: ExecOperations
32
+
29
33
  @get:Internal abstract val root: DirectoryProperty
30
34
 
31
35
  @get:InputFiles
@@ -127,9 +131,9 @@ abstract class BundleHermesCTask : DefaultTask() {
127
131
  File(jsIntermediateSourceMapsDir.get().asFile, "$bundleAssetName.compiler.map")
128
132
 
129
133
  private fun runCommand(command: List<Any>) {
130
- project.exec {
131
- it.workingDir(root.get().asFile)
132
- it.commandLine(command)
134
+ execOperations.exec { exec ->
135
+ exec.workingDir(root.get().asFile)
136
+ exec.commandLine(command)
133
137
  }
134
138
  }
135
139