Cleans up the Rakefile mess that occurs when integrating with Facebook in your RubyMotion App.
gem "motion-fb", github: "silasjmatson/motion-fb"
In your Rakefile, add the following to the bottom of your setup block:
# ...
Motion::Project::App.setup do |app|
# ...
# Pod keys correspond to their cocoapod
# :core 'FBSDKCoreKit',
# :login 'FBSDKLoginKit',
# :messenger 'FBSDKMessengerShareKit',
# :share 'FBSDKShareKit',
app.facebook(app_id: "MYAPPID", display_name: "MYDISPLAY_NAME", pods: [:login, :core, :share, :messenger])
end
Note: Be sure to run rake pod:install
to install the cocoapods
- Sets up all the info.plist stuff
- Sets up URL Schemes
- Sets up the required CocoaPods
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request