Sha256: 58e8cf255e556a8e01c19902717a1364ee5352faf1879ecf44a0124e35f3a59d

Contents?: true

Size: 731 Bytes

Versions: 2

Compression:

Stored size: 731 Bytes

Contents

module Joybox
  module Configuration

    class FileUtils < CCFileUtils

      def self.default_configuration
        {
          set_iphone_retina_display_suffix: "-hd",
          set_ipad_suffix: "-ipad",
          set_ipad_retina_display_suffix: "-ipadhd"
        }
      end

      def self.configure(options = {})
        options = options.nil? ? default_configuration : default_configuration.merge!(options)

        file_utils = FileUtils.sharedFileUtils
        file_utils.setiPhoneRetinaDisplaySuffix(options[:set_iphone_retina_display_suffix])
        file_utils.setiPadSuffix(options[:set_ipad_suffix])
        file_utils.setiPadRetinaDisplaySuffix(options[:set_ipad_retina_display_suffix])
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 motion/joybox-ios/configuration/file_utils.rb
joybox-1.1.0 motion/joybox-ios/configuration/file_utils.rb