Method: AppInfo::IPA#icons_path
- Defined in:
- lib/app_info/ipa.rb
#icons_path ⇒ Array<String>
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/app_info/ipa.rb', line 94 def icons_path @icons_path ||= lambda { icon_keys.each_with_object([]) do |name, icons| filenames = info.try(:[], name) .try(:[], 'CFBundlePrimaryIcon') .try(:[], 'CFBundleIconFiles') next if filenames.nil? || filenames.empty? filenames.each do |filename| Dir.glob(::File.join(app_path, "#{filename}*")).find_all.each do |file| icons << file end end end }.call end |