Compressor is a RubyMotion gem that speeds up your RubyMotion compile times by concatenating your source files. It typically speeds up your fresh builds by 70-95%.
gem "compressor"
In your Rakefile, add the following to the bottom of your setup block:
# ...
Motion::Project::App.setup do |app|
# ...
app.concat_files
end
Exclude files by passing in regex or strings:
app.concat_files exclude: [ /app/, "/app/" ]
Choose the number of files to break into, for parallel builds (default is 4):
app.concat_files parallel: 3
A typical setup is:
app.development do
app.concat_files exclude: [ "/app/" ], parallel: 3
end
app.release do
app.concat_files
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request