Class: Pod::Generator::EmbedFrameworksScript

Inherits:
Object
  • Object
show all
Defined in:
lib/pod_builder/swizzles.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ EmbedFrameworksScript

Returns a new instance of EmbedFrameworksScript.



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/pod_builder/swizzles.rb', line 128

def initialize(*args)
  raise "\n\nUnsupported CocoaPods version\n".red if (args.count == 0 || args.count > 2)

  frameworks_by_config = args[0]
  frameworks_by_config.keys.each do |key|
    items = frameworks_by_config[key]
    items.uniq! { |t| t.source_path }
    frameworks_by_config[key] = items
  end

  if args.count == 2
    # CocoaPods 1.10.0 and newer
    xcframeworks_by_config = args[1]
    xcframeworks_by_config.keys.each do |key|
      items = xcframeworks_by_config[key]
      items.uniq! { |t| t.path }
      xcframeworks_by_config[key] = items
    end
  end

  swz_initialize(*args)
end

Instance Method Details

#swz_initializeObject



126
# File 'lib/pod_builder/swizzles.rb', line 126

alias_method :swz_initialize, :initialize