Last active
August 29, 2015 14:15
-
-
Save htakeuchi/5ee2fb0265aaf36ade35 to your computer and use it in GitHub Desktop.
Rakefile for using fabric in RubyMotion
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/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