From b54f295d6b5632a21fb630b49a716a34e04e17c0 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 28 Oct 2026 23:27:58 +0200 Subject: [PATCH] Fix Hermes source extraction after the repository moved to meta/hermes --- .../ReactAndroid/hermes-engine/build.gradle.kts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts b/packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts index 7db67e79333a..c22bca5d5d5c 100644 --- a/packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts +++ b/packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts @@ -104,7 +104,7 @@ val downloadHermes by tasks.registering(Download::class) { src( providers.provider { - "https://github.com/facebook/hermes/tarball/${hermesVersionProvider.get()}" + "https://github.com/meta/hermes/tarball/${hermesVersionProvider.get()}" }, ) onlyIfModified(true) @@ -120,11 +120,11 @@ val unzipHermes by dependsOn(downloadHermes) from(tarTree(downloadHermesDest)) { eachFile { - // We flatten the unzip as the tarball contains a `facebook-hermes-` - // folder at the top level. - if (this.path.startsWith("facebook-hermes-")) { - this.path = this.path.substringAfter("/") - } + // We flatten the unzip as the tarball contains a single + // `-hermes-` folder at the top level. Strip it regardless + // of the owner, which changes when the repository moves (it went + // from `facebook-hermes-` to `meta-hermes-`). + this.path = this.path.substringAfter("/") } } into(hermesDir)