Module: CocoapodsRepoSq::DownloaderExtensions

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 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 to be used in the the podfile source setting Square is included to add support for Square SDK repository hosted podspecs and pods.

Returns:

  • (Hash{Symbol=>Class})

    Returns 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



38
39
40
# File 'lib/cocoapods_repo_sq/downloader.rb', line 38

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