mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add the ENTERPRISE_REPOSITORY env var to let user consume artifacts from their personal maven mirror
This commit is contained in:
@@ -134,7 +134,10 @@ class ReactNativeDependenciesUtils
|
||||
end
|
||||
|
||||
def self.release_tarball_url(version, build_type)
|
||||
maven_repo_url = "https://repo1.maven.org/maven2"
|
||||
maven_repo_url =
|
||||
ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ?
|
||||
ENV['ENTERPRISE_REPOSITORY'] :
|
||||
"https://repo1.maven.org/maven2"
|
||||
group = "com/facebook/react"
|
||||
# Sample url from Maven:
|
||||
# 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
|
||||
|
||||
@@ -204,7 +204,10 @@ def hermestag_file(react_native_path)
|
||||
end
|
||||
|
||||
def release_tarball_url(version, build_type)
|
||||
maven_repo_url = "https://repo1.maven.org/maven2"
|
||||
maven_repo_url =
|
||||
ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ?
|
||||
ENV['ENTERPRISE_REPOSITORY'] :
|
||||
"https://repo1.maven.org/maven2"
|
||||
namespace = "com/facebook/react"
|
||||
# Sample url from Maven:
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user