File tree Expand file tree Collapse file tree
packages/react-native/scripts/cocoapods Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def self.podspec_source_download_prebuild_stable_tarball()
160160 rncore_log ( " #{ Pathname . new ( destinationDebug ) . relative_path_from ( Pathname . pwd ) . to_s } " )
161161 rncore_log ( " #{ Pathname . new ( destinationRelease ) . relative_path_from ( Pathname . pwd ) . to_s } " )
162162
163- return { :http => URI :: File . build ( path : destinationDebug ) . to_s }
163+ return { :http => stable_tarball_url ( @@react_native_version , :debug ) }
164164 end
165165
166166 def self . podspec_source_download_prebuilt_nightly_tarball ( )
@@ -196,7 +196,7 @@ def self.podspec_source_download_prebuilt_nightly_tarball()
196196 rncore_log ( "Resolved nightly ReactNativeCore-prebuilt version:" )
197197 rncore_log ( " #{ Pathname . new ( destinationDebug ) . relative_path_from ( Pathname . pwd ) . to_s } " )
198198 rncore_log ( " #{ Pathname . new ( destinationRelease ) . relative_path_from ( Pathname . pwd ) . to_s } " )
199- return { :http => URI :: File . build ( path : destinationDebug ) . to_s }
199+ return { :http => nightly_tarball_url ( @@react_native_version , :debug ) }
200200 end
201201
202202 def self . process_dsyms ( frameworkTarball , dSymsTarball )
Original file line number Diff line number Diff line change @@ -158,10 +158,10 @@ def self.podspec_source_download_prebuild_release_tarball()
158158
159159 url = release_tarball_url ( @@react_native_version , :debug )
160160 rndeps_log ( "Using tarball from URL: #{ url } " )
161- destinationDebug = download_stable_rndeps ( @@react_native_path , @@react_native_version , :debug )
161+ download_stable_rndeps ( @@react_native_path , @@react_native_version , :debug )
162162 download_stable_rndeps ( @@react_native_path , @@react_native_version , :release )
163163
164- return { :http => URI :: File . build ( path : destinationDebug ) . to_s }
164+ return { :http => url }
165165 end
166166
167167 def self . release_tarball_url ( version , build_type )
@@ -225,10 +225,9 @@ def self.podspec_source_download_prebuilt_nightly_tarball(version)
225225
226226 url = nightly_tarball_url ( version , :debug )
227227 rndeps_log ( "Using tarball from URL: #{ url } " )
228- destinationDebug = download_nightly_rndeps ( @@react_native_path , @@react_native_version , :debug )
228+ download_nightly_rndeps ( @@react_native_path , @@react_native_version , :debug )
229229 download_nightly_rndeps ( @@react_native_path , @@react_native_version , :release )
230230
231- return { :http => URI ::File . build ( path : destinationDebug ) . to_s }
232231 return { :http => url }
233232 end
234233
You can’t perform that action at this time.
0 commit comments