MotionSettings
Description
MotionSettings allows you to define string settings for you RubyMotion project without putting them in the Rakefile. You can set user level settings and app level settings.
After installation, the first rake will create two files
App level config file take precedence over user level config file.
Installation
gem install 'motion-settings'
require 'motion-settings' in the Rakefile
or
gem 'motion-settings' in your Gemfile
Usage
-
Run rake to create files
-
Edit files ~/.motion_settings.yml or /path/to/your_rm_project/.motion_settings.yml
This is YAML and you can only set strings or this will fail, example yaml config :
api_endpoint: "https://www.google.fr"
FacebookAPPID: "323232DQSDQDDS"
- You now have access to ENV['api_endpoint'] in your app or your Rakefile