lib/motion/project/xcode_config.rb
# Assigns the application icon information, found in the `Info.plist`
# generated by compiling the asset bundles, to the configuration's `icons`.
#
# @return [void]
#
Assigns the application icon information, found in the `Info.plist`
generated by compiling the asset bundles, to the configuration's `icons`.
Assigns the application icon information found in the ` Info . plist ` generated by compiling the asset bundles to the configuration ' s ` icons ` .
def add_images_from_asset_bundles(platform)
      if app_icons_asset_bundle
        path = asset_bundle_partial_info_plist_path(platform)
        if File.exist?(path)
          content = `/usr/libexec/PlistBuddy -c 'Print :CFBundleIcons:CFBundlePrimaryIcon:CFBundleIconFiles' "#{path}" 2>&1`.strip
          if $?.success?
            self.icons = content.split("\n")[1..-2].map(&:strip)
          end
        end
      end
    end
def add_images_from_asset_bundles ( platform ) if app_icons_asset_bundle path = asset_bundle_partial_info_plist_path ( platform ) if File . exist? ( path ) content = ` /usr/libexec/PlistBuddy -c 'Print :CFBundleIcons:CFBundlePrimaryIcon:CFBundleIconFiles' " #{ path } " 2>&1 ` . strip if $? . success? self . icons = content . split ( "\n" ) [ 1 .. - 2 ] . map ( & :strip ) end end end end
Assigns the application icon information, found in the `Info.plist`
generated by compiling the asset bundles, to the configuration's `icons`.
Assigns the application icon information found in the ` Info . plist ` generated by compiling the asset bundles to the configuration ' s ` icons ` .
None
void
platform