Sha256: d888393500cd436de39b51b9ce5a27e8abe45e3dea5bc6695ad993dae5d23d05

Contents?: true

Size: 1.7 KB

Versions: 1

Compression:

Stored size: 1.7 KB

Contents

unless defined?(Motion::Project::Config)
  raise "The ProMotion gem must be required within a RubyMotion project Rakefile."
end

Motion::Project::App.setup do |app|
  core_lib = File.join(File.dirname(__FILE__), 'ProMotion')
  insert_point = app.files.find_index { |file| file =~ /^(?:\.\/)?app\// } || 0

  Dir.glob(File.join(core_lib, '**/*.rb')).reverse.each do |file|
    app.files.insert(insert_point, file)
  end

  # For compatibility with libraries that don't use detect_dependencies. :-(
  app.files_dependencies({
    "#{core_lib}/version.rb" => [ "#{core_lib}/pro_motion.rb" ],
    "#{core_lib}/cocoatouch/table_view_cell.rb" => [ "#{core_lib}/table/cell/table_view_cell_module.rb" ],
    "#{core_lib}/table/cell/table_view_cell_module.rb" => [ "#{core_lib}/styling/styling.rb" ],
    "#{core_lib}/delegate/delegate.rb" => [ "#{core_lib}/delegate/delegate_parent.rb" ],
    "#{core_lib}/delegate/delegate_parent.rb" => [ "#{core_lib}/delegate/delegate_module.rb" ],
    "#{core_lib}/delegate/delegate_module.rb" => [ "#{core_lib}/tabs/tabs.rb", "#{core_lib}/ipad/split_screen.rb" ],
    "#{core_lib}/screen/screen.rb" => [ "#{core_lib}/screen/screen_module.rb" ],
    "#{core_lib}/screen/screen_module.rb" => [ "#{core_lib}/screen/screen_navigation.rb" ],
    "#{core_lib}/table/data/table_data.rb" => [ "#{core_lib}/table/table.rb" ],
    "#{core_lib}/table/table.rb" => [
      "#{core_lib}/table/table_utils.rb",
      "#{core_lib}/table/extensions/searchable.rb",
      "#{core_lib}/table/extensions/refreshable.rb",
      "#{core_lib}/table/extensions/indexable.rb",
      "#{core_lib}/table/extensions/longpressable.rb"
    ],
    "#{core_lib}/web/web_screen.rb" => [ "#{core_lib}/web/web_screen_module.rb" ],
  })
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ProMotion-2.2.2 lib/ProMotion.rb