Skip to content

Commit 183be8e

Browse files
committed
Add the ENTERPRISE_REPOSITORY env var to let user consume artifacts from their personal maven mirror
1 parent 8e47e54 commit 183be8e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/react-native/scripts/cocoapods/rndependencies.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ def self.podspec_source_download_prebuild_release_tarball()
134134
end
135135

136136
def self.release_tarball_url(version, build_type)
137-
maven_repo_url = "https://repo1.maven.org/maven2"
137+
maven_repo_url =
138+
ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ?
139+
ENV['ENTERPRISE_REPOSITORY'] :
140+
"https://repo1.maven.org/maven2"
138141
group = "com/facebook/react"
139142
# Sample url from Maven:
140143
# https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.79.0-rc.0/react-native-artifacts-0.79.0-rc.0-reactnative-dependencies-debug.tar.gz

packages/react-native/sdks/hermes-engine/hermes-utils.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ def hermestag_file(react_native_path)
204204
end
205205

206206
def release_tarball_url(version, build_type)
207-
maven_repo_url = "https://repo1.maven.org/maven2"
207+
maven_repo_url =
208+
ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ?
209+
ENV['ENTERPRISE_REPOSITORY'] :
210+
"https://repo1.maven.org/maven2"
208211
namespace = "com/facebook/react"
209212
# Sample url from Maven:
210213
# https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.0/react-native-artifacts-0.71.0-hermes-ios-debug.tar.gz

0 commit comments

Comments
 (0)