diff --git a/packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts b/packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts index d8b0d5f382f..5e6019d12c9 100644 --- a/packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts +++ b/packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts @@ -90,21 +90,22 @@ val prefabHeadersDir = File("$buildDir/prefab-headers") // We inject the JSI directory used inside the Hermes build with the -DJSI_DIR config. val jsiDir = File(reactNativeRootDir, "ReactCommon/jsi") +val downloadHermesDest = File(downloadsDir, "hermes.tar.gz") val downloadHermes by - tasks.creating(Download::class) { + tasks.registering(Download::class) { src("https://github.com/facebook/hermes/tarball/${hermesVersion}") onlyIfModified(true) overwrite(true) quiet(true) useETag("all") retries(5) - dest(File(downloadsDir, "hermes.tar.gz")) + dest(downloadHermesDest) } val unzipHermes by tasks.registering(Copy::class) { dependsOn(downloadHermes) - from(tarTree(downloadHermes.dest)) { + from(tarTree(downloadHermesDest)) { eachFile { // We flatten the unzip as the tarball contains a `facebook-hermes-` // folder at the top level.