Add http downloader #224

Merged
merged 6 commits into from Apr 24, 2012

Projects

None yet

2 participants

@siuying

Http downloader download dependencies with http and then decompress them.

They will be usful for case where VCS repo is not available, and only HTTP URL is provided from source.

This make podfile/spec such as following possible:

platform :ios

dependency do |s|
  s.name     = 'TestFlightSDK'
  s.version  = '1.0.0'
  s.license  = 'Commercial'
  s.summary  = 'TestFlightSDK for over-the-air beta testing and crash reporting.'
  s.homepage = 'http://www.testflightapp.com'

  s.author        = { 'TestFlight' => 'support@testflightapp.com' }
  s.source        = { :http => 'https://testflightapp.com/media/sdk-downloads/TestFlightSDK1.0.zip' }
  s.description   = 'TestFlightSDK for over-the-air beta testing and crash reporting.'
  s.platform      = :ios

  s.xcconfig      = { 'LIBRARY_SEARCH_PATHS' => "$(SRCROOT)/Pods/TestFlightSDK/" }
  s.source_files  = 'TestFlight.h'
  s.library       = 'TestFlight', 'z'
end

Reference: #66, #98 and CocoaPods/Specs#132

@alloy alloy and 1 other commented on an outdated diff Apr 23, 2012
lib/cocoapods/command/repo.rb
@@ -1,4 +1,5 @@
require 'fileutils'
+require 'yaml'
@alloy
alloy Apr 23, 2012

Why is this needed here?

@siuying
siuying Apr 23, 2012

Sorry I just got a YAML error later at line 65. Not related to this commit.

@alloy
alloy Apr 23, 2012

Ah gotcha, can you move it to just after def check_versions(dir)? This way it will only be loaded when really needed :)

@alloy
CocoaPods member
@siuying

@alloy I added some unit/functional tests!

@alloy
CocoaPods member

At the moment I’m unable to pull from GitHub, I’ll try again later. Thanks!

@alloy alloy merged commit f9e77af into CocoaPods:master Apr 24, 2012
@alloy
CocoaPods member

Thanks!!

You now have push access to this repo.

@siuying

@alloy shall i build new Specs based on this, or wait for 0.6 release?

@alloy
CocoaPods member

@siuying Go ahead, but be sure to push them to the ‘0.6’ branch of the specs repo!

@siuying

@alloy Cool, thanks!

@ligaz ligaz referenced this pull request in NativeScript/nativescript-cli Sep 30, 2015
Closed

Support xcconfig file from plugin #883

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment