Skip to content

Instantly share code, notes, and snippets.

@kevinthompson
Created July 20, 2012 05:34
Show Gist options
  • Save kevinthompson/3148876 to your computer and use it in GitHub Desktop.
Save kevinthompson/3148876 to your computer and use it in GitHub Desktop.
Alternate config definition in RubyMotion Rakefile
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
Motion::Project::App.setup do |app|
# Dependencies
app.files.unshift(*Dir['vendor/teacup/lib/**/*.rb'])
# Config – Use `rake config' to see complete project settings.
config = {
name: 'hello',
codesign_certificate: '...',
delegate_class: 'AppDelegate',
deployment_target: '5.1',
device_family: :iphone
}
# Load Configuration
config.each{ |key,val| app.send("#{key}=",val) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment