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

  • ~/.motion_settings.yml # this is the user level config file

  • /path/to/your_rm_project/.motion_settings.yml # this is the app level config file

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

1) Run rake to create files

2) 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"

3) You now have access to ENV['api_endpoint'] in your app or your Rakefile