Class: Pod::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-byte-csjm/gm.rb

Instance Method Summary collapse

Instance Method Details

#original_search_forObject



575
# File 'lib/cocoapods-byte-csjm/gm.rb', line 575

alias_method :original_search_for, :search_for

#original_specifications_for_dependencyObject



584
# File 'lib/cocoapods-byte-csjm/gm.rb', line 584

alias_method :original_specifications_for_dependency, :specifications_for_dependency

#search_for(dependency) ⇒ Object



576
577
578
579
580
581
582
# File 'lib/cocoapods-byte-csjm/gm.rb', line 576

def search_for(dependency)
    possibilities = original_search_for(dependency) ##返回不可变数组
    CSJMPlugin.action do |recoder|
      GM::SpecificationInfo.update dependency.name , possibilities
    end
    possibilities
end

#specifications_for_dependency(dependency, additional_requirements = []) ⇒ Object



585
586
587
588
589
590
591
592
593
# File 'lib/cocoapods-byte-csjm/gm.rb', line 585

def specifications_for_dependency(dependency, additional_requirements = [])
  CSJMPlugin.action do |recoder|
    if additional_requirements.length > 0 && GM::Adn_Adapter.is_adapter?(dependency.name)
      additional_requirements = []
      dependency = Pod::Dependency.new(dependency.name)
    end
  end
  original_specifications_for_dependency(dependency, additional_requirements)
end