Skip to content

Instantly share code, notes, and snippets.

@jaunesarmiento
Created February 5, 2014 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaunesarmiento/8834319 to your computer and use it in GitHub Desktop.
Save jaunesarmiento/8834319 to your computer and use it in GitHub Desktop.
RubyMotion Example Rakefile
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion2.18/lib")
require 'motion/project/template/ios'
begin
require 'bundler'
require 'bubble-wrap'
require 'motion-stump'
require 'sugarcube-repl'
Bundler.require
rescue LoadError
end
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'Example App'
app.identifier = 'com.example.ios'
app.version = '0.0.1'
app.icons = ['icon-iphone', 'icon-iphone@2x']
app.libs += ['/usr/lib/libz.1.1.3.dylib', '/usr/lib/libsqlite3.dylib']
app.frameworks += ['Accelerate', 'AdSupport', 'AudioToolbox', 'CFNetwork', 'CoreGraphics', 'CoreLocation', 'MobileCoreServices', 'QuartzCore', 'SystemConfiguration', 'Security', 'StoreKit', 'MessageUI']
app.weak_frameworks += ['Accounts', 'Social']
app.interface_orientations = [:portrait]
app.info_plist['FacebookAppID'] = 'XXXXXXXX'
app.info_plist['CFBundleURLTypes'] = [
{ 'CFBundleURLName' => 'com.example.ios.fbXXXXXXX' },
{ 'CFBundleURLSchemes' => ['fbXXXXXXX'] }
]
app.info_plist['UIViewControllerBasedStatusBarAppearance'] = false
app.vendor_project('vendor/Parse.framework',
:static,
:products => ['Parse'],
:headers_dir => 'Headers')
app.pods do
pod 'Facebook-iOS-SDK'
pod 'MBProgressHUD'
pod 'SDWebImage'
pod 'UIActivityIndicator-for-SDWebImage'
pod 'NanoStore'
pod 'MDHTMLLabel'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment