lib/xcres/analyzer/resources_analyzer/xcassets_analyzer.rb
def build_sections_for_xcassets
        file_refs = find_file_refs_by_extname '.xcassets'

        log "Found #%s asset catalogs in project.", file_refs.count

        file_refs.map do |file_ref|
          bundle = XCAssets::Bundle.open(file_ref.real_path)
          section = build_section_for_xcassets(bundle)
          log 'Add section for %s with %s elements', section.name, section.items.count unless section.nil?
          section
        end.compact
      end
# Build a section for each asset catalog if it contains any resources
#
# @return [Array<Section>]
#         the built sections
#
Build a section for each asset catalog if it contains any resources
Build a section for each asset catalog if it contains any resources
def build_sections_for_xcassets
        file_refs = find_file_refs_by_extname '.xcassets'
        log "Found #%s asset catalogs in project.", file_refs.count
        file_refs.map do |file_ref|
          bundle = XCAssets::Bundle.open(file_ref.real_path)
          section = build_section_for_xcassets(bundle)
          log 'Add section for %s with %s elements', section.name, section.items.count unless section.nil?
          section
        end.compact
      end
def build_sections_for_xcassets file_refs = find_file_refs_by_extname '.xcassets' log "Found #%s asset catalogs in project." , file_refs . count file_refs . map do | file_ref | bundle = XCAssets :: Bundle . open ( file_ref . real_path ) section = build_section_for_xcassets ( bundle ) log 'Add section for %s with %s elements' , section . name , section . items . count unless section . nil? section end . compact end
Build a section for each asset catalog if it contains any resources
Build a section for each asset catalog if it contains any resources
the built sections
the built sections
Array<Section>