lib/xcres/analyzer/resources_analyzer/bundle_resources_analyzer.rb
def build_section_for_bundle bundle_file_ref
        bundle_files = find_files_in_dir(bundle_file_ref.real_path)
        image_files = find_image_files(bundle_files)

        log "Found bundle %s with #%s image files of #%s total files.", bundle_file_ref.path, image_files.count, bundle_files.count

        section_name = basename_without_ext(bundle_file_ref.path)
        section_data = build_images_section_data(image_files)
        new_section(section_name, section_data)
      end
# Build a section for a resources bundle
#
# @param  [PBXFileReference] bundle_file_ref
#         the file reference to the resources bundle file
#
# @return [Section]
#         a section or nil
#
Build a section for a resources bundle
Build a section for a resources bundle
def build_section_for_bundle bundle_file_ref
        bundle_files = find_files_in_dir(bundle_file_ref.real_path)
        image_files = find_image_files(bundle_files)
        log "Found bundle %s with #%s image files of #%s total files.", bundle_file_ref.path, image_files.count, bundle_files.count
        section_name = basename_without_ext(bundle_file_ref.path)
        section_data = build_images_section_data(image_files)
        new_section(section_name, section_data)
      end
def build_section_for_bundle bundle_file_ref bundle_files = find_files_in_dir ( bundle_file_ref . real_path ) image_files = find_image_files ( bundle_files ) log "Found bundle %s with #%s image files of #%s total files." , bundle_file_ref . path , image_files . count , bundle_files . count section_name = basename_without_ext ( bundle_file_ref . path ) section_data = build_images_section_data ( image_files ) new_section ( section_name , section_data ) end
Build a section for a resources bundle
Build a section for a resources bundle
a section or nil
a section or nil
Section
bundle_file_ref
bundle_file_ref the file reference to the resources bundle file
bundle_file_ref the file reference to the resources bundle file