Created
July 20, 2012 05:34
-
-
Save kevinthompson/3148876 to your computer and use it in GitHub Desktop.
Alternate config definition in RubyMotion Rakefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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