Skip to content

Instantly share code, notes, and snippets.

@htakeuchi
Last active August 29, 2015 14:15
Show Gist options
  • Save htakeuchi/5ee2fb0265aaf36ade35 to your computer and use it in GitHub Desktop.
Save htakeuchi/5ee2fb0265aaf36ade35 to your computer and use it in GitHub Desktop.
Rakefile for using fabric in RubyMotion
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
begin
require 'bundler'
Bundler.require
rescue LoadError
end
Motion::Project::App.setup do |app|
app.name = 'TweetMotionSample'
app.identifier = 'YOUR_IDENTEIFIER'
app.seed_id = 'YOUR_SEED_ID'
app.entitlements['application-identifier'] = app.seed_id + '.' + app.identifier
app.info_plist['Fabric'] = { 'APIKey' => 'YOUR_API_KEY',
'Kits' => [{'KitInfo' => {
'consumerKey' => 'YOUR_COSUMER_KEY',
'consumerSecret' => '',
'KitName' => 'Twitter'}}]
}
app.vendor_project('vendor/Fabric.framework', :static, :products => ['Fabric'], :headers_dir => 'Headers')
app.vendor_project('vendor/TwitterKit.framework', :static, :products => ['TwitterKit'], :headers_dir => 'Headers')
app.frameworks += ['Social', 'CoreData']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment