module Pod

Provide a special “download” process for prebuilded pods.

As the frameworks is already exsited in local folder. We just create a symlink to the original target folder.

Let cocoapods use the prebuild framework files in install process.

the code only effect the second pod install process.

A fix in embeded frameworks script.

The framework file in pod target folder is a symblink. The EmbedFrameworksScript use `readlink` to read the read path. As the symlink is a relative symlink, readlink cannot handle it well. So we override the `readlink` to a fixed version.

patch prebuild ability

Tool to transform Pod_name to target efficiently

Public Class Methods

fast_get_targets_for_pod_name(pod_name, targets, cache) click to toggle source
# File lib/cocoapods-binary-gcp/helper/names.rb, line 19
def self.fast_get_targets_for_pod_name(pod_name, targets, cache)
    pod_name_to_targets_hash = nil
    if cache.empty?
        pod_name_to_targets_hash = targets.reduce({}) do |sum, target|
            array = sum[target.pod_name] || []
            array << target
            sum[target.pod_name] = array
            sum
        end
        cache << pod_name_to_targets_hash
    else
        pod_name_to_targets_hash = cache.first
    end
    
    pod_name_to_targets_hash[pod_name] || []
end