Sha256: def36e4a4f5c19516b4b8fb3935e6edf0812251484b691ee8aab76f8e179d863

Contents?: true

Size: 735 Bytes

Versions: 2

Compression:

Stored size: 735 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.0.0 motion/joybox-ios/configuration/file_utils.rb
joybox-0.0.6 motion/joybox-ios/configuration/file_utils.rb