Class: Pod::Podfile

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-jiffy.rb

Instance Method Summary collapse

Instance Method Details

#_podObject



186
# File 'lib/cocoapods-jiffy.rb', line 186

alias _pod pod

#cachedpod(name, *args) ⇒ Object



197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'lib/cocoapods-jiffy.rb', line 197

def cachedpod(name, *args)
  if CocoapodsJiffy.use_jiffy
    CocoapodsJiffy.ensure_podfile_jiffy_loaded(defined_in_file)

    platform = CocoapodsJiffy::PLATFORM_SYMBOL_HASH[current_target_definition.platform.name]
    dependencies = CocoapodsJiffy.collect_dependencies(name)
    for dependency_name in dependencies
      CocoapodsJiffy.register_cached_dependency(dependency_name, name)
      CocoapodsJiffy::CONFIGURATION_MAPPINGS.each do |project_configuration, jiffy_configuration|
        _pod "#{dependency_name}.#{jiffy_configuration}", path: File.join("Pods/#{jiffy_configuration}/#{platform}/#{dependency_name}"), integrate_target: false, configuration: [project_configuration]
      end
    end
  else
    _pod(name, *args)
  end
end

#pod(name, *args) ⇒ Object



188
189
190
191
192
193
194
195
# File 'lib/cocoapods-jiffy.rb', line 188

def pod(name, *args)
  unless CocoapodsJiffy.build_jiffy
    _pod(name, *args)
    for dependency_name in CocoapodsJiffy.collect_dependencies(name)
      CocoapodsJiffy.register_normal_dependency(dependency_name, name)
      end
  end
end