Module: CocoapodsRepoSq::Downloader::Extensions

Defined in:
lib/cocoapods_repo_sq/downloader.rb

Overview

Helper module used to override the Pod::Downloader::downloader_class_by_key method to include a :square key pointing to CocoapodsRepoSq::Downloader. This allows square to be defined as the protocol for downloading Pods on the podfile source setting

Instance Method Summary collapse

Instance Method Details

#downloader_class_by_keyHash{Symbol=>Class}

Map of downloaded classes supported by Cocoapods available to the podfile source setting. Square is included to add support for Square SDK repository hosted podspecs and pods.

Returns:

  • (Hash{Symbol=>Class})

    a map where the key is a symbol used in the podspec source setting such as :http, :git, :square and the class is the one responsible for implementing a particular download strategy



44
45
46
# File 'lib/cocoapods_repo_sq/downloader.rb', line 44

def downloader_class_by_key
  super.merge(:square => Downloader)
end