From 7bbb13c9be014c0e63f0deaad809d669c15325ad Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 11 Jul 2025 03:01:30 -0700 Subject: [PATCH] Fix ENTERPRISE_REPOSITORY usage (#52553) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52553 This change fixes the usage of `ENTERPRISE_REPOSITORY` in Ruby ## Changelog [Internal] - Reviewed By: cortinico Differential Revision: D78152641 fbshipit-source-id: e4ace014f1b7cbeb1ec5a0dea955d1fc2bae5b67 --- packages/react-native/scripts/cocoapods/rncore.rb | 4 ++-- packages/react-native/scripts/cocoapods/rndependencies.rb | 4 ++-- packages/react-native/sdks/hermes-engine/hermes-utils.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-native/scripts/cocoapods/rncore.rb b/packages/react-native/scripts/cocoapods/rncore.rb index df861b60f35..7108f147cf1 100644 --- a/packages/react-native/scripts/cocoapods/rncore.rb +++ b/packages/react-native/scripts/cocoapods/rncore.rb @@ -134,8 +134,8 @@ class ReactNativeCoreUtils ## You can use the `ENTERPRISE_REPOSITORY` ariable to customise the base url from which artifacts will be downloaded. ## The mirror's structure must be the same of the Maven repo the react-native core team publishes on Maven Central. maven_repo_url = - ENV[ENTERPRISE_REPOSITORY] != nil && ENV[ENTERPRISE_REPOSITORY] != "" ? - ENV[ENTERPRISE_REPOSITORY] : + ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ? + ENV['ENTERPRISE_REPOSITORY'] : "https://repo1.maven.org/maven2" group = "com/facebook/react" # Sample url from Maven: diff --git a/packages/react-native/scripts/cocoapods/rndependencies.rb b/packages/react-native/scripts/cocoapods/rndependencies.rb index ec364e3b3f9..2717ab09e6b 100644 --- a/packages/react-native/scripts/cocoapods/rndependencies.rb +++ b/packages/react-native/scripts/cocoapods/rndependencies.rb @@ -169,8 +169,8 @@ class ReactNativeDependenciesUtils ## You can use the `ENTERPRISE_REPOSITORY` ariable to customise the base url from which artifacts will be downloaded. ## The mirror's structure must be the same of the Maven repo the react-native core team publishes on Maven Central. maven_repo_url = - ENV[ENTERPRISE_REPOSITORY] != nil && ENV[ENTERPRISE_REPOSITORY] != "" ? - ENV[ENTERPRISE_REPOSITORY] : + ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ? + ENV['ENTERPRISE_REPOSITORY'] : "https://repo1.maven.org/maven2" group = "com/facebook/react" # Sample url from Maven: diff --git a/packages/react-native/sdks/hermes-engine/hermes-utils.rb b/packages/react-native/sdks/hermes-engine/hermes-utils.rb index f769f3063d5..d01a1d33006 100644 --- a/packages/react-native/sdks/hermes-engine/hermes-utils.rb +++ b/packages/react-native/sdks/hermes-engine/hermes-utils.rb @@ -207,8 +207,8 @@ def release_tarball_url(version, build_type) ## You can use the `ENTERPRISE_REPOSITORY` ariable to customise the base url from which artifacts will be downloaded. ## The mirror's structure must be the same of the Maven repo the react-native core team publishes on Maven Central. maven_repo_url = - ENV[ENTERPRISE_REPOSITORY] != nil && ENV[ENTERPRISE_REPOSITORY] != "" ? - ENV[ENTERPRISE_REPOSITORY] : + ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ? + ENV['ENTERPRISE_REPOSITORY'] : "https://repo1.maven.org/maven2" namespace = "com/facebook/react" # Sample url from Maven: