mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-25 01:31:37 +08:00
14 lines
502 B
Ruby
14 lines
502 B
Ruby
unless defined?(Motion::Project::Config)
|
|
raise "This file must be required within a RubyMotion project Rakefile."
|
|
end
|
|
|
|
require "ProMotion/version"
|
|
|
|
Motion::Project::App.setup do |app|
|
|
app.detect_dependencies = true
|
|
original_files = app.files
|
|
delegate = File.join(File.dirname(__FILE__), 'ProMotion/delegate/delegate.rb')
|
|
promotion_files = FileList[File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')].exclude(delegate).to_a
|
|
app.files = (promotion_files << delegate) + original_files
|
|
end
|