lib/swift/swift_dependencies_generator.rb
# Creates set of ignored classes from CocoaPods
Creates set of ignored classes from CocoaPods
Creates set of ignored classes from CocoaPods
def ignoredClasses(object_files_dir)
    ignoredClasses = Set.new
    pods_deps_files_in_dir(object_files_dir) do |pods_text_file|
      begin
        dependencies = YAML.load_file(pods_text_file)
      rescue Exception => e
        $stderr.puts 'Cannot read file  ' + pods_text_file + ' : This is possibly because output file was changed:' + e.message
        next
      end
      class_name = dependencies['provides']
      class_name = dependencies['provides-top-level'] if class_name.nil?
      next if class_name.nil?
      class_name.each do |source|
        ignoredClasses.add(source)
      end
    end
    objc_pods_deps_files_in_dir(object_files_dir) do |pods_text_file|
      filename = File.basename(pods_text_file, '.o')
      ignoredClasses.add(filename)
    end
    return ignoredClasses
  end
def ignoredClasses ( object_files_dir ) ignoredClasses = Set . new pods_deps_files_in_dir ( object_files_dir ) do | pods_text_file | begin dependencies = YAML . load_file ( pods_text_file ) rescue Exception => e $stderr . puts 'Cannot read file  ' + pods_text_file + ' : This is possibly because output file was changed:' + e . message next end class_name = dependencies [ 'provides' ] class_name = dependencies [ 'provides-top-level' ] if class_name . nil? next if class_name . nil? class_name . each do | source | ignoredClasses . add ( source ) end end objc_pods_deps_files_in_dir ( object_files_dir ) do | pods_text_file | filename = File . basename ( pods_text_file , '.o' ) ignoredClasses . add ( filename ) end return ignoredClasses end
Creates set of ignored classes from CocoaPods
Creates set of ignored classes from CocoaPods
# ignoredClasses.add(String(class_name))
object_files_dir
<not_specific>